public abstract class HttpHeaderReader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpHeaderReader.Event |
static interface |
HttpHeaderReader.ListElementCreator<T> |
Constructor and Description |
---|
HttpHeaderReader() |
Modifier and Type | Method and Description |
---|---|
abstract HttpHeaderReader.Event |
getEvent() |
abstract java.lang.String |
getEventValue() |
abstract int |
getIndex() |
abstract java.lang.String |
getRemainder() |
abstract boolean |
hasNext() |
abstract boolean |
hasNextSeparator(char separator,
boolean skipWhiteSpace) |
static HttpHeaderReader |
newInstance(java.lang.String header) |
static HttpHeaderReader |
newInstance(java.lang.String header,
boolean processComments) |
abstract HttpHeaderReader.Event |
next() |
abstract HttpHeaderReader.Event |
next(boolean skipWhiteSpace) |
abstract HttpHeaderReader.Event |
next(boolean skipWhiteSpace,
boolean preserveBackslash) |
java.lang.String |
nextQuotedString() |
abstract java.lang.String |
nextSeparatedString(char startSeparator,
char endSeparator) |
char |
nextSeparator() |
void |
nextSeparator(char c) |
java.lang.String |
nextToken() |
java.lang.String |
nextTokenOrQuotedString() |
java.lang.String |
nextTokenOrQuotedString(boolean preserveBackslash) |
static <T> java.util.List<T> |
readAcceptableList(java.util.Comparator<T> comparator,
HttpHeaderReader.ListElementCreator<T> c,
java.lang.String header) |
static <T extends QualityFactor> |
readAcceptableList(HttpHeaderReader.ListElementCreator<T> c,
java.lang.String header) |
static java.util.List<AcceptableLanguageTag> |
readAcceptLanguage(java.lang.String header) |
static java.util.List<AcceptableMediaType> |
readAcceptMediaType(java.lang.String header) |
static java.util.List<AcceptableMediaType> |
readAcceptMediaType(java.lang.String header,
java.util.List<QualitySourceMediaType> priorityMediaTypes) |
static java.util.List<AcceptableToken> |
readAcceptToken(java.lang.String header) |
static Cookie |
readCookie(java.lang.String header) |
static java.util.Map<java.lang.String,Cookie> |
readCookies(java.lang.String header) |
static java.util.Date |
readDate(java.lang.String date) |
static <T> java.util.List<T> |
readList(HttpHeaderReader.ListElementCreator<T> c,
java.lang.String header) |
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) |
static java.util.List<MediaType> |
readMediaTypes(java.util.List<MediaType> l,
java.lang.String header) |
static NewCookie |
readNewCookie(java.lang.String header) |
static java.util.Map<java.lang.String,java.lang.String> |
readParameters(HttpHeaderReader reader) |
static java.util.Map<java.lang.String,java.lang.String> |
readParameters(HttpHeaderReader reader,
boolean fileNameFix) |
static int |
readQualityFactor(java.lang.String q) |
static int |
readQualityFactorParameter(HttpHeaderReader reader) |
static java.util.List<QualitySourceMediaType> |
readQualitySourceMediaType(java.lang.String header) |
static java.util.List<QualitySourceMediaType> |
readQualitySourceMediaType(java.lang.String[] header) |
public abstract boolean hasNext()
public abstract boolean hasNextSeparator(char separator, boolean skipWhiteSpace)
public abstract HttpHeaderReader.Event next() throws java.text.ParseException
java.text.ParseException
public abstract HttpHeaderReader.Event next(boolean skipWhiteSpace) throws java.text.ParseException
java.text.ParseException
public abstract HttpHeaderReader.Event next(boolean skipWhiteSpace, boolean preserveBackslash) throws java.text.ParseException
java.text.ParseException
public abstract java.lang.String nextSeparatedString(char startSeparator, char endSeparator) throws java.text.ParseException
java.text.ParseException
public abstract HttpHeaderReader.Event getEvent()
public abstract java.lang.String getEventValue()
public abstract java.lang.String getRemainder()
public abstract int getIndex()
public java.lang.String nextToken() throws java.text.ParseException
java.text.ParseException
public char nextSeparator() throws java.text.ParseException
java.text.ParseException
public void nextSeparator(char c) throws java.text.ParseException
java.text.ParseException
public java.lang.String nextQuotedString() throws java.text.ParseException
java.text.ParseException
public java.lang.String nextTokenOrQuotedString() throws java.text.ParseException
java.text.ParseException
public java.lang.String nextTokenOrQuotedString(boolean preserveBackslash) throws java.text.ParseException
java.text.ParseException
public 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.ParseException
public static int readQualityFactor(java.lang.String q) throws java.text.ParseException
java.text.ParseException
public static int readQualityFactorParameter(HttpHeaderReader reader) throws java.text.ParseException
java.text.ParseException
public static java.util.Map<java.lang.String,java.lang.String> readParameters(HttpHeaderReader reader) throws java.text.ParseException
java.text.ParseException
public static java.util.Map<java.lang.String,java.lang.String> readParameters(HttpHeaderReader reader, boolean fileNameFix) throws java.text.ParseException
java.text.ParseException
public static java.util.Map<java.lang.String,Cookie> readCookies(java.lang.String header)
public static Cookie readCookie(java.lang.String header)
public static NewCookie readNewCookie(java.lang.String header)
public static java.util.Set<MatchingEntityTag> readMatchingEntityTag(java.lang.String header) throws java.text.ParseException
java.text.ParseException
public static java.util.List<MediaType> readMediaTypes(java.util.List<MediaType> l, java.lang.String header) throws java.text.ParseException
java.text.ParseException
public static java.util.List<AcceptableMediaType> readAcceptMediaType(java.lang.String header) throws java.text.ParseException
java.text.ParseException
public static java.util.List<QualitySourceMediaType> readQualitySourceMediaType(java.lang.String header) throws java.text.ParseException
java.text.ParseException
public static java.util.List<QualitySourceMediaType> readQualitySourceMediaType(java.lang.String[] header) throws java.text.ParseException
java.text.ParseException
public static java.util.List<AcceptableMediaType> readAcceptMediaType(java.lang.String header, java.util.List<QualitySourceMediaType> priorityMediaTypes) throws java.text.ParseException
java.text.ParseException
public static java.util.List<AcceptableToken> readAcceptToken(java.lang.String header) throws java.text.ParseException
java.text.ParseException
public static java.util.List<AcceptableLanguageTag> readAcceptLanguage(java.lang.String header) throws java.text.ParseException
java.text.ParseException
public static <T extends QualityFactor> java.util.List<T> readAcceptableList(HttpHeaderReader.ListElementCreator<T> c, java.lang.String header) throws java.text.ParseException
java.text.ParseException
public static <T> java.util.List<T> readAcceptableList(java.util.Comparator<T> comparator, HttpHeaderReader.ListElementCreator<T> c, java.lang.String header) throws java.text.ParseException
java.text.ParseException
public static <T> java.util.List<T> readList(HttpHeaderReader.ListElementCreator<T> c, java.lang.String header) throws java.text.ParseException
java.text.ParseException
public 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
Copyright © 2016 Oracle Corporation. All Rights Reserved.