Class HttpHeaderReader
java.lang.Object
org.glassfish.jersey.message.internal.HttpHeaderReader
An abstract pull-based reader of HTTP headers.
- Author:
- Paul Sandoz, Marek Potociar
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract HttpHeaderReader.Event
getEvent()
FIXME remove.abstract CharSequence
TODO javadoc.abstract int
getIndex()
TODO javadoc.abstract CharSequence
TODO javadoc.abstract boolean
hasNext()
TODO javadoc.abstract boolean
hasNextSeparator
(char separator, boolean skipWhiteSpace) TODO javadoc.static HttpHeaderReader
newInstance
(String header) TODO javadoc.static HttpHeaderReader
newInstance
(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.final CharSequence
TODO javadoc.protected abstract CharSequence
nextSeparatedString
(char startSeparator, char endSeparator) FIXME remove.final void
nextSeparator
(char c) TODO javadoc.final CharSequence
TODO javadoc.final CharSequence
TODO javadoc.static List<AcceptableLanguageTag>
readAcceptLanguage
(String header) TODO javadoc.static List<AcceptableMediaType>
readAcceptMediaType
(String header) TODO javadoc.static List<AcceptableMediaType>
readAcceptMediaType
(String header, List<QualitySourceMediaType> priorityMediaTypes) TODO javadoc.static List<AcceptableToken>
readAcceptToken
(String header) TODO javadoc.static Cookie
readCookie
(String header) TODO javadoc.readCookies
(String header) TODO javadoc.static Date
TODO javadoc.static Set<MatchingEntityTag>
readMatchingEntityTag
(String header) TODO javadoc.readMediaTypes
(List<MediaType> l, String header) TODO javadoc.static NewCookie
readNewCookie
(String header) TODO javadoc.readParameters
(HttpHeaderReader reader) TODO javadoc.readParameters
(HttpHeaderReader reader, boolean fileNameFix) TODO javadoc.static int
TODO javadoc.static int
TODO javadoc.static List<QualitySourceMediaType>
readQualitySourceMediaType
(String header) FIXME use somewhere in production code or remove.static List<QualitySourceMediaType>
readQualitySourceMediaType
(String[] header) TODO javadoc.readStringList
(String header) TODO javadoc.
-
Constructor Details
-
HttpHeaderReader
public HttpHeaderReader()
-
-
Method Details
-
hasNext
public abstract boolean hasNext()TODO javadoc. -
hasNextSeparator
public abstract boolean hasNextSeparator(char separator, boolean skipWhiteSpace) TODO javadoc. -
next
TODO javadoc.- Throws:
ParseException
-
next
TODO javadoc.- Throws:
ParseException
-
next
protected abstract HttpHeaderReader.Event next(boolean skipWhiteSpace, boolean preserveBackslash) throws ParseException TODO javadoc.- Throws:
ParseException
-
nextSeparatedString
protected abstract CharSequence nextSeparatedString(char startSeparator, char endSeparator) throws ParseException FIXME remove.- Throws:
ParseException
-
getEvent
FIXME remove. -
getEventValue
TODO javadoc. -
getRemainder
TODO javadoc. -
getIndex
public abstract int getIndex()TODO javadoc. -
nextToken
TODO javadoc.- Throws:
ParseException
-
nextSeparator
TODO javadoc.- Throws:
ParseException
-
nextQuotedString
TODO javadoc.- Throws:
ParseException
-
nextTokenOrQuotedString
TODO javadoc.- Throws:
ParseException
-
newInstance
TODO javadoc. -
newInstance
TODO javadoc. -
readDate
TODO javadoc.- Throws:
ParseException
-
readQualityFactor
TODO javadoc.- Throws:
ParseException
-
readQualityFactorParameter
TODO javadoc.- Throws:
ParseException
-
readParameters
TODO javadoc.- Throws:
ParseException
-
readParameters
public static Map<String,String> readParameters(HttpHeaderReader reader, boolean fileNameFix) throws ParseException TODO javadoc.- Throws:
ParseException
-
readCookies
TODO javadoc. -
readCookie
TODO javadoc. -
readNewCookie
TODO javadoc. -
readMatchingEntityTag
TODO javadoc.- Throws:
ParseException
-
readMediaTypes
public static List<MediaType> readMediaTypes(List<MediaType> l, String header) throws ParseException TODO javadoc.- Throws:
ParseException
-
readAcceptMediaType
TODO javadoc.- Throws:
ParseException
-
readQualitySourceMediaType
public static List<QualitySourceMediaType> readQualitySourceMediaType(String header) throws ParseException FIXME use somewhere in production code or remove.- Throws:
ParseException
-
readQualitySourceMediaType
public static List<QualitySourceMediaType> readQualitySourceMediaType(String[] header) throws ParseException TODO javadoc.- Throws:
ParseException
-
readAcceptMediaType
public static List<AcceptableMediaType> readAcceptMediaType(String header, List<QualitySourceMediaType> priorityMediaTypes) throws ParseException TODO javadoc.- Throws:
ParseException
-
readAcceptToken
TODO javadoc.- Throws:
ParseException
-
readAcceptLanguage
TODO javadoc.- Throws:
ParseException
-
readStringList
TODO javadoc.- Throws:
ParseException
-