public abstract class HttpHeaderReader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpHeaderReader.Event
TODO javadoc.
|
Constructor and Description |
---|
HttpHeaderReader() |
Modifier and Type | Method and Description |
---|---|
protected abstract HttpHeaderReader.Event |
getEvent()
FIXME remove.
|
abstract CharSequence |
getEventValue()
TODO javadoc.
|
abstract int |
getIndex()
TODO javadoc.
|
abstract CharSequence |
getRemainder()
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.
|
CharSequence |
nextQuotedString()
TODO javadoc.
|
protected abstract CharSequence |
nextSeparatedString(char startSeparator,
char endSeparator)
FIXME remove.
|
void |
nextSeparator(char c)
TODO javadoc.
|
CharSequence |
nextToken()
TODO javadoc.
|
CharSequence |
nextTokenOrQuotedString()
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 javax.ws.rs.core.Cookie |
readCookie(String header)
TODO javadoc.
|
static Map<String,javax.ws.rs.core.Cookie> |
readCookies(String header)
TODO javadoc.
|
static Date |
readDate(String date)
TODO javadoc.
|
static Set<MatchingEntityTag> |
readMatchingEntityTag(String header)
TODO javadoc.
|
static List<javax.ws.rs.core.MediaType> |
readMediaTypes(List<javax.ws.rs.core.MediaType> l,
String header)
TODO javadoc.
|
static javax.ws.rs.core.NewCookie |
readNewCookie(String header)
TODO javadoc.
|
static Map<String,String> |
readParameters(HttpHeaderReader reader)
TODO javadoc.
|
static Map<String,String> |
readParameters(HttpHeaderReader reader,
boolean fileNameFix)
TODO javadoc.
|
static int |
readQualityFactor(CharSequence q)
TODO javadoc.
|
static int |
readQualityFactorParameter(HttpHeaderReader reader)
TODO javadoc.
|
static List<QualitySourceMediaType> |
readQualitySourceMediaType(String header)
FIXME use somewhere in production code or remove.
|
static List<QualitySourceMediaType> |
readQualitySourceMediaType(String[] header)
TODO javadoc.
|
static List<String> |
readStringList(String header)
TODO javadoc.
|
public abstract boolean hasNext()
public abstract boolean hasNextSeparator(char separator, boolean skipWhiteSpace)
public abstract HttpHeaderReader.Event next() throws ParseException
ParseException
public abstract HttpHeaderReader.Event next(boolean skipWhiteSpace) throws ParseException
ParseException
protected abstract HttpHeaderReader.Event next(boolean skipWhiteSpace, boolean preserveBackslash) throws ParseException
ParseException
protected abstract CharSequence nextSeparatedString(char startSeparator, char endSeparator) throws ParseException
ParseException
protected abstract HttpHeaderReader.Event getEvent()
public abstract CharSequence getEventValue()
public abstract CharSequence getRemainder()
public abstract int getIndex()
public final CharSequence nextToken() throws ParseException
ParseException
public final void nextSeparator(char c) throws ParseException
ParseException
public final CharSequence nextQuotedString() throws ParseException
ParseException
public final CharSequence nextTokenOrQuotedString() throws ParseException
ParseException
public static HttpHeaderReader newInstance(String header)
public static HttpHeaderReader newInstance(String header, boolean processComments)
public static Date readDate(String date) throws ParseException
ParseException
public static int readQualityFactor(CharSequence q) throws ParseException
ParseException
public static int readQualityFactorParameter(HttpHeaderReader reader) throws ParseException
ParseException
public static Map<String,String> readParameters(HttpHeaderReader reader) throws ParseException
ParseException
public static Map<String,String> readParameters(HttpHeaderReader reader, boolean fileNameFix) throws ParseException
ParseException
public static Map<String,javax.ws.rs.core.Cookie> readCookies(String header)
public static javax.ws.rs.core.Cookie readCookie(String header)
public static javax.ws.rs.core.NewCookie readNewCookie(String header)
public static Set<MatchingEntityTag> readMatchingEntityTag(String header) throws ParseException
ParseException
public static List<javax.ws.rs.core.MediaType> readMediaTypes(List<javax.ws.rs.core.MediaType> l, String header) throws ParseException
ParseException
public static List<AcceptableMediaType> readAcceptMediaType(String header) throws ParseException
ParseException
public static List<QualitySourceMediaType> readQualitySourceMediaType(String header) throws ParseException
ParseException
public static List<QualitySourceMediaType> readQualitySourceMediaType(String[] header) throws ParseException
ParseException
public static List<AcceptableMediaType> readAcceptMediaType(String header, List<QualitySourceMediaType> priorityMediaTypes) throws ParseException
ParseException
public static List<AcceptableToken> readAcceptToken(String header) throws ParseException
ParseException
public static List<AcceptableLanguageTag> readAcceptLanguage(String header) throws ParseException
ParseException
public static List<String> readStringList(String header) throws ParseException
ParseException
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.