Example usage for Java java.net URI fields, constructors, methods, implement or subclass
The text is from its open source code.
URI(String str) Constructs a URI by parsing the given string. | |
URI(String scheme, String authority, String path, String query, String fragment) Constructs a hierarchical URI from the given components. | |
URI(String scheme, String ssp, String fragment) Constructs a URI from the given components. | |
URI(String scheme, String host, String path, String fragment) Constructs a hierarchical URI from the given components. | |
URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment) Constructs a hierarchical URI from the given components. |
int | compareTo(URI that) Compares this URI to another object, which must be a URI. |
URI | create(String str) Creates a URI by parsing the given string. |
boolean | equals(Object ob) Tests this URI for equality with another object. |
String | getAuthority() Returns the decoded authority component of this URI. |
String | getFragment() Returns the decoded fragment component of this URI. |
String | getHost() Returns the host component of this URI. |
String | getPath() Returns the decoded path component of this URI. |
int | getPort() Returns the port number of this URI. |
String | getQuery() Returns the decoded query component of this URI. |
String | getRawAuthority() Returns the raw authority component of this URI. |
String | getRawFragment() Returns the raw fragment component of this URI. |
String | getRawPath() Returns the raw path component of this URI. |
String | getRawQuery() Returns the raw query component of this URI. |
String | getRawSchemeSpecificPart() Returns the raw scheme-specific part of this URI. |
String | getRawUserInfo() Returns the raw user-information component of this URI. |
String | getScheme() Returns the scheme component of this URI. |
String | getSchemeSpecificPart() Returns the decoded scheme-specific part of this URI. |
String | getUserInfo() Returns the decoded user-information component of this URI. |
int | hashCode() Returns a hash-code value for this URI. |
boolean | isAbsolute() Tells whether or not this URI is absolute. |
boolean | isOpaque() Tells whether or not this URI is opaque. |
URI | normalize() Normalizes this URI's path. |
URI | parseServerAuthority() Attempts to parse this URI's authority component, if defined, into user-information, host, and port components. |
URI | relativize(URI uri) Relativizes the given URI against this URI. |
URI | resolve(URI uri) Resolves the given URI against this URI. |
URI | resolve(String str) Constructs a new URI by parsing the given string and then resolving it against this URI. |
String | toASCIIString() Returns the content of this URI as a US-ASCII string. |
String | toString() Returns the content of this URI as a string. |
URL | toURL() Constructs a URL from this URI. |