public static interface URIParser.ParseListener
URIParser.parse(java.lang.String, net.grinder.util.http.URIParser.ParseListener)
.
Methods are called with the maximum amount of text possible. This means
that fragment(java.lang.String)
will only be called once for a parse.
All of the strings that are passed to the methods are unescaped.
Each of the methods returns a boolean
, which should be
interpreted as "continue parse". That is, if a method returns
false
the parse is terminated.
Modifier and Type | Method and Description |
---|---|
boolean |
authority(String authority)
Called with the authority.
|
boolean |
fragment(String fragment)
Called with fragment.
|
boolean |
path(String path)
Called with path text.
|
boolean |
pathParameterNameValue(String name,
String value)
Called with a name-value pair that was found in the path.
|
boolean |
queryString(String queryString)
Called with query string text.
|
boolean |
queryStringNameValue(String name,
String value)
Called with a name-value pair that was found in the query string.
|
boolean |
scheme(String scheme)
Called with the scheme for absolute URIs.
|
boolean scheme(String scheme)
scheme
- The scheme, without ':'.boolean authority(String authority)
authority
- The authority, without leading '//'.boolean path(String path)
path
- The text. Includes any delimiting punctuation.boolean pathParameterNameValue(String name, String value)
name
- The name. URL decoded.value
- The value. URL decoded.boolean queryString(String queryString)
queryString
- The text. The leading '?' is stripped.boolean queryStringNameValue(String name, String value)
name
- The name. URL decoded.value
- The value. URL decoded.boolean fragment(String fragment)
fragment
- The fragment. The leading '#' is stripped.Copyright © 2000-2014. All Rights Reserved.