Package java.net
Class URI
- java.lang.Object
-
- java.net.URI
-
- All Implemented Interfaces:
Serializable,Comparable<URI>
public final class URI extends Object implements Comparable<URI>, Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(URI that)StringgetAuthority()StringgetFragment()StringgetHost()StringgetPath()StringgetPort()StringgetQuery()StringgetRawAuthority()StringgetRawFragment()StringgetRawPath()StringgetRawQuery()StringgetRawSchemeSpecificPart()StringgetRawUserInfo()StringgetScheme()StringgetSchemeSpecificPart()StringgetUserInfo()URInormalize()
-
-
-
Constructor Detail
-
URI
public URI(String str) throws URISyntaxException
- Throws:
URISyntaxException
-
URI
public URI(String scheme, String host, String path, String fragment) throws URISyntaxException
- Throws:
URISyntaxException
-
-
Method Detail
-
normalize
public URI normalize()
-
getPath
public String getPath()
-
getScheme
public String getScheme()
-
getSchemeSpecificPart
public String getSchemeSpecificPart()
-
getRawSchemeSpecificPart
public String getRawSchemeSpecificPart()
-
getHost
public String getHost()
-
getAuthority
public String getAuthority()
-
getRawAuthority
public String getRawAuthority()
-
getUserInfo
public String getUserInfo()
-
getRawUserInfo
public String getRawUserInfo()
-
getPort
public String getPort()
-
getRawPath
public String getRawPath()
-
getRawQuery
public String getRawQuery()
-
getQuery
public String getQuery()
-
getRawFragment
public String getRawFragment()
-
getFragment
public String getFragment()
-
compareTo
public int compareTo(URI that)
- Specified by:
compareToin interfaceComparable<URI>
-
-