URIs from Strings.
Example of parsed uri: "http://user@{host}:{port}/a/{path}?query=1#fragment".
The parser is not thread safe.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private CharacterIterator | |
| private static final String | |
| private String | |
| private String | |
| private final String | |
| private boolean | |
| private boolean | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public boolean | |
| public void | |
| private void | |
| private String | |
| private String | Returns: Extracted component.String with delimiters which terminates the component. delimiters, boolean True if component might be the last part of the URI. mayEnd, boolean True if the component might contain IPv6 address. isIp)Parses the URI component. |
| private String | |
| private void | |
| private void |
| authority | back to summary |
|---|---|
| private String authority | |
| ci | back to summary |
|---|---|
| private CharacterIterator ci | |
| ERROR_STATE | back to summary |
|---|---|
| private static final String ERROR_STATE | |
| fragment | back to summary |
|---|---|
| private String fragment | |
| host | back to summary |
|---|---|
| private String host | |
| input | back to summary |
|---|---|
| private final String input | |
| opaque | back to summary |
|---|---|
| private boolean opaque | |
| parserExecuted | back to summary |
|---|---|
| private boolean parserExecuted | |
| path | back to summary |
|---|---|
| private String path | |
| port | back to summary |
|---|---|
| private String port | |
| query | back to summary |
|---|---|
| private String query | |
| scheme | back to summary |
|---|---|
| private String scheme | |
| ssp | back to summary |
|---|---|
| private String ssp | |
| userInfo | back to summary |
|---|---|
| private String userInfo | |
| UriParser | back to summary |
|---|---|
| pack-priv UriParser(String uri) Creates new parser initialized with
| |
| getAuthority | back to summary |
|---|---|
| public String getAuthority() Returns parsed authority component. The
| |
| getFragment | back to summary |
|---|---|
| public String getFragment() Returns parsed fragment component. The
| |
| getHost | back to summary |
|---|---|
| public String getHost() Returns parsed host component. The
| |
| getPath | back to summary |
|---|---|
| public String getPath() Returns parsed path component. The
| |
| getPort | back to summary |
|---|---|
| public String getPort() Returns parsed port component. The
| |
| getQuery | back to summary |
|---|---|
| public String getQuery() Returns parsed query component. The
| |
| getScheme | back to summary |
|---|---|
| public String getScheme() Returns parsed scheme component. The
| |
| getSsp | back to summary |
|---|---|
| public String getSsp() Returns parsed scheme specific part. The
| |
| getUserInfo | back to summary |
|---|---|
| public String getUserInfo() Returns parsed user info component. The
| |
| isOpaque | back to summary |
|---|---|
| public boolean isOpaque() Returns whether the input string URI is opaque. The
| |
| parse | back to summary |
|---|---|
| public void parse() Parses the input string URI. After calling this method The result components can be retrieved by calling
appropriate getter methods like | |
| parseAuthority | back to summary |
|---|---|
| private void parseAuthority() | |
| parseComponent | back to summary |
|---|---|
| private String parseComponent(String delimiters, boolean mayEnd) | |
| parseComponent | back to summary |
|---|---|
| private String parseComponent(String delimiters, boolean mayEnd, boolean isIp) Parses the URI component. Parsing starts at position of the first character of
component and ends with position of one of the delimiters. The string and current
position is taken from the | |
| parseComponentWithIP | back to summary |
|---|---|
| private String parseComponentWithIP(String delimiters, boolean mayEnd) | |
| parseHierarchicalUri | back to summary |
|---|---|
| private void parseHierarchicalUri() | |
| parsePath | back to summary |
|---|---|
| private void parsePath() | |