public class HeaderParser extends org.parboiled2.Parser implements org.parboiled2.DynamicRuleHandler<HeaderParser,org.parboiled2.support.hlist.$colon$colon<HttpHeader,org.parboiled2.support.hlist.HNil>>, CommonRules, AcceptCharsetHeader, AcceptEncodingHeader, AcceptHeader, AcceptLanguageHeader, CacheControlHeader, ContentDispositionHeader, ContentTypeHeader, CommonActions, IpAddressParsing, LinkHeader, SimpleHeaders, org.parboiled2.StringBuilding, WebSocketHeaders
Modifier and Type | Class and Description |
---|---|
static class |
HeaderParser.EmptyCookieException$ |
static class |
HeaderParser.Failure |
static class |
HeaderParser.Failure$ |
static interface |
HeaderParser.Result
INTERNAL API.
|
static class |
HeaderParser.RuleNotFound$ |
static class |
HeaderParser.Settings |
static class |
HeaderParser.Success |
static class |
HeaderParser.Success$ |
org.parboiled2.Parser.__SubParserInput, org.parboiled2.Parser.AlternativeDeliverySchemes, org.parboiled2.Parser.CutError$, org.parboiled2.Parser.DeliveryScheme<L extends org.parboiled2.support.hlist.HList>, org.parboiled2.Parser.DeliveryScheme$, org.parboiled2.Parser.Fail, org.parboiled2.Parser.Mark, org.parboiled2.Parser.Mark$, org.parboiled2.Parser.StartTracingException$, org.parboiled2.Parser.TracingBubbleException, org.parboiled2.Parser.UnquietMismatch$
org.parboiled2.RuleDSLBasics.CharRangeSupport
Constructor and Description |
---|
HeaderParser(org.parboiled2.ParserInput input,
HeaderParser.Settings settings) |
Modifier and Type | Method and Description |
---|---|
HttpCookiePair |
createCookiePair(java.lang.String name,
java.lang.String value) |
scala.Function2<java.lang.String,java.lang.String,scala.Option<MediaType>> |
customMediaTypes() |
static HeaderParser.Settings |
DefaultSettings() |
static java.lang.Object |
dispatch() |
HeaderParser.Failure |
failure(java.lang.Throwable error) |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
FWS() |
org.parboiled2.ParserInput |
input() |
static scala.Option<scala.Function1<java.lang.String,HeaderParser.Result>> |
lookupParser(java.lang.String headerName,
HeaderParser.Settings settings) |
protected int |
maxCommentParsingDepth() |
UriParser |
newUriParser(org.parboiled2.ParserInput input) |
HeaderParser.Failure |
parseError(org.parboiled2.ParseError error) |
static HeaderParser.Result |
parseFull(java.lang.String headerName,
java.lang.String value,
HeaderParser.Settings settings) |
HeaderParser |
parser() |
static scala.collection.immutable.Seq<java.lang.String> |
ruleNames() |
HeaderParser.Result |
ruleNotFound(java.lang.String ruleName) |
protected java.lang.StringBuilder |
sb() |
static HeaderParser.Settings |
Settings(Uri.ParsingMode uriParsingMode,
ParserSettings.CookieParsingMode cookieParsingMode,
scala.Function2<java.lang.String,java.lang.String,scala.Option<MediaType>> customMediaTypes,
int maxCommentParsingDepth,
ParserSettings.IllegalResponseHeaderValueProcessingMode modeValue,
ParserSettings.IllegalResponseHeaderNameProcessingMode modeName) |
HeaderParser.Result |
success(org.parboiled2.support.hlist.$colon$colon<HttpHeader,org.parboiled2.support.hlist.HNil> result) |
__advance, __bubbleUp, __bubbleUp, __enterAtomic, __enterNotPredicate, __enterQuiet, __exitAtomic, __exitNotPredicate, __exitQuiet, __hardFail, __inErrorAnalysis, __matchAnyOf, __matchAnyOf$default$2, __matchIgnoreCaseString, __matchIgnoreCaseString$default$2, __matchIgnoreCaseStringWrapped, __matchIgnoreCaseStringWrapped$default$2, __matchMap, __matchMapWrapped, __matchNoneOf, __matchNoneOf$default$2, __matchString, __matchString$default$2, __matchStringWrapped, __matchStringWrapped$default$2, __push, __registerMismatch, __restoreState, __run, __saveState, __subParserInput, __updateMaxCursor, $lessinit$greater$default$1, $lessinit$greater$default$2, charAt, charAtRC, copyStateFrom, cursor, cursorChar, errorTraceCollectionLimit, formatError, formatError$default$2, lastChar, org$parboiled2$Parser$$_cursor, org$parboiled2$Parser$$phase, valueStack
$amp, ANY, anyOf, atomic, capture, ch, drop, EOI, fail, failX, ignoreCase, ignoreCase, int2NTimes, MATCH, MISMATCH, MISMATCH0, noneOf, oneOrMore, optional, predicate, push, quiet, range2NTimes, rule2ActionOperator, rule2WithSeparatedBy, run, runSubParser, str, str2CharRangeSupport, test, valueMap, valueMap, valueMap$default$2, zeroOrMore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attribute, challenge, comment, createDateTime, credentials, CRLF, ctext, date1, date2, date3, day, digit, digit2, digit4, digitInt, hour, httpMethodDef, language, listSep, longNumberCapped, longNumberCappedAtIntMaxValue, minute, month, OCTET, OWS, parameter, product, products, qdtext, qvalue, RWS, second, subtype, token, token0, token68, type, uriReference, value, weight, word, ws, ws, year
$init$, appendSB, appendSB, appendSB, appendSB, clearSB, org$parboiled2$StringBuilding$_setter_$sb_$eq, prependSB, prependSB, prependSB, prependSB, setSB
codings, getEncoding
accept
charset, decodeExtValue
contentType
equalsAsciiCaseInsensitive, getCharset, getMediaType
link, sanitize, URI, UriReference
age, allow, authorization, connection, cookie, date, etag, expect, expires, host, location, origin, protocol, range, referer, server, te, upgrade
extension, NZDIGIT, version
public HeaderParser(org.parboiled2.ParserInput input, HeaderParser.Settings settings)
public static scala.Option<scala.Function1<java.lang.String,HeaderParser.Result>> lookupParser(java.lang.String headerName, HeaderParser.Settings settings)
public static HeaderParser.Result parseFull(java.lang.String headerName, java.lang.String value, HeaderParser.Settings settings)
public static java.lang.Object dispatch()
public static scala.collection.immutable.Seq<java.lang.String> ruleNames()
public static HeaderParser.Settings Settings(Uri.ParsingMode uriParsingMode, ParserSettings.CookieParsingMode cookieParsingMode, scala.Function2<java.lang.String,java.lang.String,scala.Option<MediaType>> customMediaTypes, int maxCommentParsingDepth, ParserSettings.IllegalResponseHeaderValueProcessingMode modeValue, ParserSettings.IllegalResponseHeaderNameProcessingMode modeName)
public static HeaderParser.Settings DefaultSettings()
protected java.lang.StringBuilder sb()
sb
in interface org.parboiled2.StringBuilding
public org.parboiled2.ParserInput input()
input
in class org.parboiled2.Parser
public scala.Function2<java.lang.String,java.lang.String,scala.Option<MediaType>> customMediaTypes()
customMediaTypes
in interface CommonActions
protected int maxCommentParsingDepth()
maxCommentParsingDepth
in interface CommonRules
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> FWS()
public HeaderParser parser()
parser
in interface org.parboiled2.DynamicRuleHandler<HeaderParser,org.parboiled2.support.hlist.$colon$colon<HttpHeader,org.parboiled2.support.hlist.HNil>>
public HeaderParser.Result success(org.parboiled2.support.hlist.$colon$colon<HttpHeader,org.parboiled2.support.hlist.HNil> result)
success
in interface org.parboiled2.Parser.DeliveryScheme<org.parboiled2.support.hlist.$colon$colon<HttpHeader,org.parboiled2.support.hlist.HNil>>
public HeaderParser.Failure parseError(org.parboiled2.ParseError error)
parseError
in interface org.parboiled2.Parser.DeliveryScheme<org.parboiled2.support.hlist.$colon$colon<HttpHeader,org.parboiled2.support.hlist.HNil>>
public HeaderParser.Failure failure(java.lang.Throwable error)
failure
in interface org.parboiled2.Parser.DeliveryScheme<org.parboiled2.support.hlist.$colon$colon<HttpHeader,org.parboiled2.support.hlist.HNil>>
public HeaderParser.Result ruleNotFound(java.lang.String ruleName)
ruleNotFound
in interface org.parboiled2.DynamicRuleHandler<HeaderParser,org.parboiled2.support.hlist.$colon$colon<HttpHeader,org.parboiled2.support.hlist.HNil>>
public UriParser newUriParser(org.parboiled2.ParserInput input)
newUriParser
in interface CommonRules
public HttpCookiePair createCookiePair(java.lang.String name, java.lang.String value)
createCookiePair
in interface CommonRules