public abstract class HttpHeaderReader
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpHeaderReader.Event
TODO javadoc.
|
private static interface |
HttpHeaderReader.ListElementCreator<T> |
| Modifier and Type | Field and Description |
|---|---|
private static HttpHeaderReader.ListElementCreator<AcceptableMediaType> |
ACCEPTABLE_MEDIA_TYPE_CREATOR |
private static HttpHeaderReader.ListElementCreator<AcceptableToken> |
ACCEPTABLE_TOKEN_CREATOR |
private static HttpHeaderReader.ListElementCreator<AcceptableLanguageTag> |
LANGUAGE_CREATOR |
private static HttpHeaderReader.ListElementCreator<MatchingEntityTag> |
MATCHING_ENTITY_TAG_CREATOR |
private static HttpHeaderReader.ListElementCreator<javax.ws.rs.core.MediaType> |
MEDIA_TYPE_CREATOR |
private static HttpHeaderReader.ListElementCreator<QualitySourceMediaType> |
QUALITY_SOURCE_MEDIA_TYPE_CREATOR |
| Constructor and Description |
|---|
HttpHeaderReader() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract HttpHeaderReader.Event |
getEvent()
FIXME remove.
|
abstract java.lang.CharSequence |
getEventValue()
TODO javadoc.
|
abstract int |
getIndex()
TODO javadoc.
|
abstract java.lang.CharSequence |
getRemainder()
TODO javadoc.
|
abstract boolean |
hasNext()
TODO javadoc.
|
abstract boolean |
hasNextSeparator(char separator,
boolean skipWhiteSpace)
TODO javadoc.
|
static HttpHeaderReader |
newInstance(java.lang.String header)
TODO javadoc.
|
static HttpHeaderReader |
newInstance(java.lang.String header,
boolean processComments)
TODO javadoc.
|
abstract HttpHeaderReader.Event |
next()
TODO javadoc.
|
abstract HttpHeaderReader.Event |
next(boolean skipWhiteSpace)
TODO javadoc.
|
protected abstract HttpHeaderReader.Event |
next(boolean skipWhiteSpace,
boolean preserveBackslash)
TODO javadoc.
|
java.lang.CharSequence |
nextQuotedString()
TODO javadoc.
|
protected abstract java.lang.CharSequence |
nextSeparatedString(char startSeparator,
char endSeparator)
FIXME remove.
|
void |
nextSeparator(char c)
TODO javadoc.
|
java.lang.CharSequence |
nextToken()
TODO javadoc.
|
java.lang.CharSequence |
nextTokenOrQuotedString()
TODO javadoc.
|
private java.lang.CharSequence |
nextTokenOrQuotedString(boolean preserveBackslash) |
static java.util.List<AcceptableLanguageTag> |
readAcceptLanguage(java.lang.String header)
TODO javadoc.
|
static java.util.List<AcceptableMediaType> |
readAcceptMediaType(java.lang.String header)
TODO javadoc.
|
static java.util.List<AcceptableMediaType> |
readAcceptMediaType(java.lang.String header,
java.util.List<QualitySourceMediaType> priorityMediaTypes)
TODO javadoc.
|
static java.util.List<AcceptableToken> |
readAcceptToken(java.lang.String header)
TODO javadoc.
|
static javax.ws.rs.core.Cookie |
readCookie(java.lang.String header)
TODO javadoc.
|
static java.util.Map<java.lang.String,javax.ws.rs.core.Cookie> |
readCookies(java.lang.String header)
TODO javadoc.
|
static java.util.Date |
readDate(java.lang.String date)
TODO javadoc.
|
private static <T> java.util.List<T> |
readList(HttpHeaderReader.ListElementCreator<T> c,
java.lang.String header) |
private static <T> java.util.List<T> |
readList(java.util.List<T> l,
HttpHeaderReader.ListElementCreator<T> c,
java.lang.String header) |
static java.util.Set<MatchingEntityTag> |
readMatchingEntityTag(java.lang.String header)
TODO javadoc.
|
static java.util.List<javax.ws.rs.core.MediaType> |
readMediaTypes(java.util.List<javax.ws.rs.core.MediaType> l,
java.lang.String header)
TODO javadoc.
|
static javax.ws.rs.core.NewCookie |
readNewCookie(java.lang.String header)
TODO javadoc.
|
static java.util.Map<java.lang.String,java.lang.String> |
readParameters(HttpHeaderReader reader)
TODO javadoc.
|
static java.util.Map<java.lang.String,java.lang.String> |
readParameters(HttpHeaderReader reader,
boolean fileNameFix)
TODO javadoc.
|
private static <T> java.util.List<T> |
readQualifiedList(java.util.Comparator<T> comparator,
HttpHeaderReader.ListElementCreator<T> c,
java.lang.String header) |
private static <T extends Qualified> |
readQualifiedList(HttpHeaderReader.ListElementCreator<T> c,
java.lang.String header) |
static int |
readQualityFactor(java.lang.CharSequence q)
TODO javadoc.
|
static int |
readQualityFactorParameter(HttpHeaderReader reader)
TODO javadoc.
|
static java.util.List<QualitySourceMediaType> |
readQualitySourceMediaType(java.lang.String header)
FIXME use somewhere in production code or remove.
|
static java.util.List<QualitySourceMediaType> |
readQualitySourceMediaType(java.lang.String[] header)
TODO javadoc.
|
static java.util.List<java.lang.String> |
readStringList(java.lang.String header)
TODO javadoc.
|
private static final HttpHeaderReader.ListElementCreator<MatchingEntityTag> MATCHING_ENTITY_TAG_CREATOR
private static final HttpHeaderReader.ListElementCreator<javax.ws.rs.core.MediaType> MEDIA_TYPE_CREATOR
private static final HttpHeaderReader.ListElementCreator<AcceptableMediaType> ACCEPTABLE_MEDIA_TYPE_CREATOR
private static final HttpHeaderReader.ListElementCreator<QualitySourceMediaType> QUALITY_SOURCE_MEDIA_TYPE_CREATOR
private static final HttpHeaderReader.ListElementCreator<AcceptableToken> ACCEPTABLE_TOKEN_CREATOR
private static final HttpHeaderReader.ListElementCreator<AcceptableLanguageTag> LANGUAGE_CREATOR
public abstract boolean hasNext()
public abstract boolean hasNextSeparator(char separator,
boolean skipWhiteSpace)
public abstract HttpHeaderReader.Event next() throws java.text.ParseException
java.text.ParseExceptionpublic abstract HttpHeaderReader.Event next(boolean skipWhiteSpace) throws java.text.ParseException
java.text.ParseExceptionprotected abstract HttpHeaderReader.Event next(boolean skipWhiteSpace, boolean preserveBackslash) throws java.text.ParseException
java.text.ParseExceptionprotected abstract java.lang.CharSequence nextSeparatedString(char startSeparator,
char endSeparator)
throws java.text.ParseException
java.text.ParseExceptionprotected abstract HttpHeaderReader.Event getEvent()
public abstract java.lang.CharSequence getEventValue()
public abstract java.lang.CharSequence getRemainder()
public abstract int getIndex()
public final java.lang.CharSequence nextToken()
throws java.text.ParseException
java.text.ParseExceptionpublic final void nextSeparator(char c)
throws java.text.ParseException
java.text.ParseExceptionpublic final java.lang.CharSequence nextQuotedString()
throws java.text.ParseException
java.text.ParseExceptionpublic final java.lang.CharSequence nextTokenOrQuotedString()
throws java.text.ParseException
java.text.ParseExceptionprivate java.lang.CharSequence nextTokenOrQuotedString(boolean preserveBackslash)
throws java.text.ParseException
java.text.ParseExceptionpublic static HttpHeaderReader newInstance(java.lang.String header)
public static HttpHeaderReader newInstance(java.lang.String header, boolean processComments)
public static java.util.Date readDate(java.lang.String date)
throws java.text.ParseException
java.text.ParseExceptionpublic static int readQualityFactor(java.lang.CharSequence q)
throws java.text.ParseException
java.text.ParseExceptionpublic static int readQualityFactorParameter(HttpHeaderReader reader) throws java.text.ParseException
java.text.ParseExceptionpublic static java.util.Map<java.lang.String,java.lang.String> readParameters(HttpHeaderReader reader) throws java.text.ParseException
java.text.ParseExceptionpublic static java.util.Map<java.lang.String,java.lang.String> readParameters(HttpHeaderReader reader, boolean fileNameFix) throws java.text.ParseException
java.text.ParseExceptionpublic static java.util.Map<java.lang.String,javax.ws.rs.core.Cookie> readCookies(java.lang.String header)
public static javax.ws.rs.core.Cookie readCookie(java.lang.String header)
public static javax.ws.rs.core.NewCookie readNewCookie(java.lang.String header)
public static java.util.Set<MatchingEntityTag> readMatchingEntityTag(java.lang.String header) throws java.text.ParseException
java.text.ParseExceptionpublic static java.util.List<javax.ws.rs.core.MediaType> readMediaTypes(java.util.List<javax.ws.rs.core.MediaType> l,
java.lang.String header)
throws java.text.ParseException
java.text.ParseExceptionpublic static java.util.List<AcceptableMediaType> readAcceptMediaType(java.lang.String header) throws java.text.ParseException
java.text.ParseExceptionpublic static java.util.List<QualitySourceMediaType> readQualitySourceMediaType(java.lang.String header) throws java.text.ParseException
java.text.ParseExceptionpublic static java.util.List<QualitySourceMediaType> readQualitySourceMediaType(java.lang.String[] header) throws java.text.ParseException
java.text.ParseExceptionpublic static java.util.List<AcceptableMediaType> readAcceptMediaType(java.lang.String header, java.util.List<QualitySourceMediaType> priorityMediaTypes) throws java.text.ParseException
java.text.ParseExceptionpublic static java.util.List<AcceptableToken> readAcceptToken(java.lang.String header) throws java.text.ParseException
java.text.ParseExceptionpublic static java.util.List<AcceptableLanguageTag> readAcceptLanguage(java.lang.String header) throws java.text.ParseException
java.text.ParseExceptionprivate static <T extends Qualified> java.util.List<T> readQualifiedList(HttpHeaderReader.ListElementCreator<T> c, java.lang.String header) throws java.text.ParseException
java.text.ParseExceptionprivate static <T> java.util.List<T> readQualifiedList(java.util.Comparator<T> comparator,
HttpHeaderReader.ListElementCreator<T> c,
java.lang.String header)
throws java.text.ParseException
java.text.ParseExceptionpublic static java.util.List<java.lang.String> readStringList(java.lang.String header)
throws java.text.ParseException
java.text.ParseExceptionprivate static <T> java.util.List<T> readList(HttpHeaderReader.ListElementCreator<T> c, java.lang.String header) throws java.text.ParseException
java.text.ParseExceptionprivate static <T> java.util.List<T> readList(java.util.List<T> l,
HttpHeaderReader.ListElementCreator<T> c,
java.lang.String header)
throws java.text.ParseException
java.text.ParseException