public final class TURI extends Object implements TComparable<TURI>, TSerializable
Constructor and Description |
---|
TURI(String uri) |
TURI(String scheme,
String ssp,
String frag) |
TURI(String scheme,
String userinfo,
String host,
int port,
String path,
String query,
String fragment) |
TURI(String scheme,
String host,
String path,
String fragment) |
TURI(String scheme,
String authority,
String path,
String query,
String fragment) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TURI uri) |
static TURI |
create(String uri)
Parses the given argument
uri and creates an appropriate URI
instance. |
boolean |
equals(Object o) |
String |
getAuthority() |
String |
getFragment() |
String |
getHost() |
String |
getPath() |
int |
getPort() |
String |
getQuery() |
String |
getRawAuthority() |
String |
getRawFragment() |
String |
getRawPath() |
String |
getRawQuery() |
String |
getRawSchemeSpecificPart() |
String |
getRawUserInfo() |
String |
getScheme() |
String |
getSchemeSpecificPart() |
String |
getUserInfo() |
int |
hashCode() |
boolean |
isAbsolute()
Indicates whether this URI is absolute, which means that a scheme part is
defined in this URI.
|
boolean |
isOpaque()
Indicates whether this URI is opaque or not.
|
TURI |
normalize() |
TURI |
parseServerAuthority() |
TURI |
relativize(TURI relative) |
TURI |
resolve(String relative) |
TURI |
resolve(TURI relative) |
String |
toASCIIString() |
String |
toString() |
TURL |
toURL() |
public TURI(String uri) throws TURISyntaxException
TURISyntaxException
public TURI(String scheme, String ssp, String frag) throws TURISyntaxException
TURISyntaxException
public TURI(String scheme, String userinfo, String host, int port, String path, String query, String fragment) throws TURISyntaxException
TURISyntaxException
public TURI(String scheme, String host, String path, String fragment) throws TURISyntaxException
TURISyntaxException
public TURI(String scheme, String authority, String path, String query, String fragment) throws TURISyntaxException
TURISyntaxException
public int compareTo(TURI uri)
compareTo
in interface TComparable<TURI>
public static TURI create(String uri)
uri
and creates an appropriate URI
instance.uri
- the string which has to be parsed to create the URI instance.public String getAuthority()
public String getFragment()
public String getHost()
public String getPath()
public int getPort()
public String getQuery()
public String getRawAuthority()
public String getRawFragment()
public String getRawPath()
public String getRawQuery()
public String getRawSchemeSpecificPart()
public String getRawUserInfo()
public String getScheme()
public String getSchemeSpecificPart()
public String getUserInfo()
public boolean isAbsolute()
true
if this URI is absolute, false
otherwise.public boolean isOpaque()
true
if the URI is opaque, false
otherwise.public TURI normalize()
public TURI parseServerAuthority() throws TURISyntaxException
TURISyntaxException
public String toASCIIString()
public TURL toURL() throws TMalformedURLException
TMalformedURLException
Copyright © 2019. All rights reserved.