public final class UriParser extends org.parboiled2.Parser implements IpAddressParsing, org.parboiled2.StringBuilding
http://tools.ietf.org/html/rfc3986
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 |
---|
UriParser(org.parboiled2.ParserInput input,
java.nio.charset.Charset uriParsingCharset,
Uri.ParsingMode uriParsingMode) |
UriParser(org.parboiled2.ParserInput _input,
java.nio.charset.Charset uriParsingCharset,
Uri.ParsingMode uriParsingMode,
int maxValueStackSize) |
Modifier and Type | Method and Description |
---|---|
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
authority() |
scala.runtime.Nothing$ |
fail(org.parboiled2.ParseError error,
java.lang.String target) |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
fragment() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
host() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
hostAndPort() |
org.parboiled2.ParserInput |
input() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
ipv4Host() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
ipv6Host() |
int |
maxValueStackSize() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
origin() |
Uri |
parseAbsoluteUri() |
Uri |
parseAndResolveUriReference(Uri base) |
Uri.Authority |
parseAuthority() |
Uri.Host |
parseHost() |
Uri.Authority |
parseHttp2AuthorityPseudoHeader() |
scala.Tuple2<Uri.Path,scala.Option<java.lang.String>> |
parseHttp2PathPseudoHeader() |
Uri |
parseHttpRequestTarget() |
HttpOrigin |
parseOrigin() |
Uri.Query |
parseQuery() |
java.lang.String |
parseRawQueryString() |
java.lang.String |
parseSafeRawQueryString(java.lang.String rawQueryString) |
Uri |
parseUriReference() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
pchar() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
port() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.$colon$colon<Uri.Query,org.parboiled2.support.hlist.HNil>> |
query() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
rawQueryString() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
relaxedHost()
A relaxed host rule to use in `parseHost` that also recognizes IPv6 address without the brackets.
|
void |
reset(org.parboiled2.ParserInput newInput)
Allows to reuse this parser.
|
protected java.lang.StringBuilder |
sb() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
scheme() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
segment() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
slashSegments() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
URI() |
java.nio.charset.Charset |
uriParsingCharset() |
Uri.ParsingMode |
uriParsingMode() |
org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> |
userinfo() |
__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
public UriParser(org.parboiled2.ParserInput _input, java.nio.charset.Charset uriParsingCharset, Uri.ParsingMode uriParsingMode, int maxValueStackSize)
public UriParser(org.parboiled2.ParserInput input, java.nio.charset.Charset uriParsingCharset, Uri.ParsingMode uriParsingMode)
protected java.lang.StringBuilder sb()
sb
in interface org.parboiled2.StringBuilding
public java.nio.charset.Charset uriParsingCharset()
public Uri.ParsingMode uriParsingMode()
public int maxValueStackSize()
public org.parboiled2.ParserInput input()
input
in class org.parboiled2.Parser
public Uri parseAbsoluteUri()
public Uri parseUriReference()
public HttpOrigin parseOrigin()
public Uri.Host parseHost()
public java.lang.String parseRawQueryString()
public java.lang.String parseSafeRawQueryString(java.lang.String rawQueryString)
rawQueryString
- 'raw' (percent-encoded) query string that in Relaxed mode may contain characters not allowed
by https://tools.ietf.org/html/rfc3986#section-3.4 but is guaranteed not to have invalid percent-encoded characterspublic Uri.Query parseQuery()
public Uri.Authority parseAuthority()
public scala.runtime.Nothing$ fail(org.parboiled2.ParseError error, java.lang.String target)
public void reset(org.parboiled2.ParserInput newInput)
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> URI()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> origin()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> scheme()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> authority()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> userinfo()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> hostAndPort()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> host()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> relaxedHost()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> port()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> ipv4Host()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> ipv6Host()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> slashSegments()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> segment()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> pchar()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> rawQueryString()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.$colon$colon<Uri.Query,org.parboiled2.support.hlist.HNil>> query()
public org.parboiled2.Rule<org.parboiled2.support.hlist.HNil,org.parboiled2.support.hlist.HNil> fragment()
public Uri parseHttpRequestTarget()
public Uri.Authority parseHttp2AuthorityPseudoHeader()
public scala.Tuple2<Uri.Path,scala.Option<java.lang.String>> parseHttp2PathPseudoHeader()