Package akka.http.impl.model.parser
Class HeaderParser
- java.lang.Object
-
- akka.parboiled2.RuleDSL
-
- akka.parboiled2.Parser
-
- akka.http.impl.model.parser.HeaderParser
-
- All Implemented Interfaces:
AcceptCharsetHeader
,AcceptEncodingHeader
,AcceptHeader
,AcceptLanguageHeader
,CacheControlHeader
,CommonActions
,CommonRules
,ContentDispositionHeader
,ContentTypeHeader
,IpAddressParsing
,LinkHeader
,SimpleHeaders
,StringBuilding
,WebSocketHeaders
,akka.parboiled2.DynamicRuleHandler<HeaderParser,akka.parboiled2.support.hlist.$colon$colon<HttpHeader,akka.parboiled2.support.hlist.HNil>>
,akka.parboiled2.Parser.DeliveryScheme<akka.parboiled2.support.hlist.$colon$colon<HttpHeader,akka.parboiled2.support.hlist.HNil>>
,akka.parboiled2.ParserMacroMethods
,akka.parboiled2.RuleDSLActions
,akka.parboiled2.RuleDSLBasics
,akka.parboiled2.RuleDSLCombinators
public class HeaderParser extends akka.parboiled2.Parser implements akka.parboiled2.DynamicRuleHandler<HeaderParser,akka.parboiled2.support.hlist.$colon$colon<HttpHeader,akka.parboiled2.support.hlist.HNil>>, CommonRules, AcceptCharsetHeader, AcceptEncodingHeader, AcceptHeader, AcceptLanguageHeader, CacheControlHeader, ContentDispositionHeader, ContentTypeHeader, CommonActions, IpAddressParsing, LinkHeader, SimpleHeaders, StringBuilding, WebSocketHeaders
INTERNAL API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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$
-
Nested classes/interfaces inherited from class akka.parboiled2.Parser
akka.parboiled2.Parser.__SubParserInput, akka.parboiled2.Parser.AlternativeDeliverySchemes, akka.parboiled2.Parser.CutError$, akka.parboiled2.Parser.DeliveryScheme<L extends akka.parboiled2.support.hlist.HList>, akka.parboiled2.Parser.DeliveryScheme$, akka.parboiled2.Parser.Fail, akka.parboiled2.Parser.Mark, akka.parboiled2.Parser.Mark$, akka.parboiled2.Parser.StartTracingException$, akka.parboiled2.Parser.TracingBubbleException, akka.parboiled2.Parser.UnquietMismatch$
-
Nested classes/interfaces inherited from interface akka.parboiled2.RuleDSLActions
akka.parboiled2.RuleDSLActions.ActionOperator<I extends akka.parboiled2.support.hlist.HList,O extends akka.parboiled2.support.hlist.HList,Ops extends java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description HeaderParser(akka.parboiled2.ParserInput input, HeaderParser.Settings settings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
akka.parboiled2.Rule<akka.parboiled2.support.hlist.HNil,akka.parboiled2.support.hlist.HNil>
FWS()
akka.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(akka.parboiled2.ParserInput input)
HeaderParser.Failure
parseError(akka.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(akka.parboiled2.support.hlist.$colon$colon<HttpHeader,akka.parboiled2.support.hlist.HNil> result)
-
Methods inherited from class akka.parboiled2.Parser
__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, akka$parboiled2$Parser$$_cursor, akka$parboiled2$Parser$$phase, charAt, charAtRC, copyStateFrom, cursor, cursorChar, errorTraceCollectionLimit, formatError, formatError$default$2, lastChar, valueStack
-
Methods inherited from class akka.parboiled2.RuleDSL
$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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.impl.model.parser.AcceptEncodingHeader
codings, getEncoding
-
Methods inherited from interface akka.http.impl.model.parser.AcceptHeader
accept
-
Methods inherited from interface akka.http.impl.model.parser.CommonActions
equalsAsciiCaseInsensitive, getCharset, getMediaType
-
Methods inherited from interface akka.http.impl.model.parser.CommonRules
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
-
Methods inherited from interface akka.http.impl.model.parser.ContentDispositionHeader
charset, decodeExtValue
-
Methods inherited from interface akka.http.impl.model.parser.ContentTypeHeader
contentType
-
Methods inherited from interface akka.http.impl.model.parser.LinkHeader
link, sanitize, URI, UriReference
-
Methods inherited from interface akka.http.impl.model.parser.SimpleHeaders
age, allow, authorization, connection, cookie, date, etag, expect, expires, host, location, origin, protocol, range, referer, server, te, upgrade
-
Methods inherited from interface akka.http.impl.model.parser.StringBuilding
appendSB, appendSB, appendSB, appendSB, clearSB, doPrepend, doPrepend, doSet, prependSB, prependSB, prependSB, prependSB, setSB
-
Methods inherited from interface akka.http.impl.model.parser.WebSocketHeaders
extension, NZDIGIT, version
-
-
-
-
Constructor Detail
-
HeaderParser
public HeaderParser(akka.parboiled2.ParserInput input, HeaderParser.Settings settings)
-
-
Method Detail
-
lookupParser
public static scala.Option<scala.Function1<java.lang.String,HeaderParser.Result>> lookupParser(java.lang.String headerName, HeaderParser.Settings settings)
-
parseFull
public static HeaderParser.Result parseFull(java.lang.String headerName, java.lang.String value, HeaderParser.Settings settings)
-
dispatch
public static java.lang.Object dispatch()
-
ruleNames
public static scala.collection.immutable.Seq<java.lang.String> ruleNames()
-
Settings
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)
-
DefaultSettings
public static HeaderParser.Settings DefaultSettings()
-
sb
protected java.lang.StringBuilder sb()
- Specified by:
sb
in interfaceStringBuilding
-
input
public akka.parboiled2.ParserInput input()
- Specified by:
input
in classakka.parboiled2.Parser
-
customMediaTypes
public scala.Function2<java.lang.String,java.lang.String,scala.Option<MediaType>> customMediaTypes()
- Specified by:
customMediaTypes
in interfaceCommonActions
-
maxCommentParsingDepth
protected int maxCommentParsingDepth()
- Specified by:
maxCommentParsingDepth
in interfaceCommonRules
-
FWS
public akka.parboiled2.Rule<akka.parboiled2.support.hlist.HNil,akka.parboiled2.support.hlist.HNil> FWS()
-
parser
public HeaderParser parser()
- Specified by:
parser
in interfaceakka.parboiled2.DynamicRuleHandler<HeaderParser,akka.parboiled2.support.hlist.$colon$colon<HttpHeader,akka.parboiled2.support.hlist.HNil>>
-
success
public HeaderParser.Result success(akka.parboiled2.support.hlist.$colon$colon<HttpHeader,akka.parboiled2.support.hlist.HNil> result)
- Specified by:
success
in interfaceakka.parboiled2.Parser.DeliveryScheme<akka.parboiled2.support.hlist.$colon$colon<HttpHeader,akka.parboiled2.support.hlist.HNil>>
-
parseError
public HeaderParser.Failure parseError(akka.parboiled2.ParseError error)
- Specified by:
parseError
in interfaceakka.parboiled2.Parser.DeliveryScheme<akka.parboiled2.support.hlist.$colon$colon<HttpHeader,akka.parboiled2.support.hlist.HNil>>
-
failure
public HeaderParser.Failure failure(java.lang.Throwable error)
- Specified by:
failure
in interfaceakka.parboiled2.Parser.DeliveryScheme<akka.parboiled2.support.hlist.$colon$colon<HttpHeader,akka.parboiled2.support.hlist.HNil>>
-
ruleNotFound
public HeaderParser.Result ruleNotFound(java.lang.String ruleName)
- Specified by:
ruleNotFound
in interfaceakka.parboiled2.DynamicRuleHandler<HeaderParser,akka.parboiled2.support.hlist.$colon$colon<HttpHeader,akka.parboiled2.support.hlist.HNil>>
-
newUriParser
public UriParser newUriParser(akka.parboiled2.ParserInput input)
- Specified by:
newUriParser
in interfaceCommonRules
-
createCookiePair
public HttpCookiePair createCookiePair(java.lang.String name, java.lang.String value)
- Specified by:
createCookiePair
in interfaceCommonRules
-
-