|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.util.uri.URI
A replacement for Java's own URI: java.net.URI. Java's implementation is quite buggy in that it doesn't resolve relative URIs correctly. Note: this implementation is not guaranteed to handle ipv6 addresses correctly (yet).
| Constructor Summary | |
URI(String uriSpec)
|
|
URI(String scheme,
String schemeSpecificPart,
String fragment)
|
|
URI(String scheme,
String authority,
String path,
String query,
String fragment)
|
|
| Method Summary | |
Object |
clone()
|
String |
getAuthority()
|
String |
getFragment()
|
String |
getPath()
|
String |
getQuery()
|
String |
getScheme()
|
String |
getSchemeSpecificPart()
|
boolean |
isAbsolute()
|
boolean |
isHierarchical()
|
boolean |
isOpaque()
|
boolean |
isRelative()
|
boolean |
isSelfReference()
Checks whether this URI is a relative URI that references itself (i.e. it only contains an anchor). |
void |
normalize()
Normalizes the path of this URI if it has one. |
URI |
resolve(String relUriSpec)
Resolves a relative URI using this URI as the base URI. |
URI |
resolve(URI relUri)
Resolves a relative URI using this URI as the base URI. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public URI(String uriSpec)
public URI(String scheme,
String schemeSpecificPart,
String fragment)
public URI(String scheme,
String authority,
String path,
String query,
String fragment)
| Method Detail |
public boolean isHierarchical()
public boolean isOpaque()
public boolean isAbsolute()
public boolean isRelative()
public boolean isSelfReference()
public String getScheme()
public String getSchemeSpecificPart()
public String getAuthority()
public String getPath()
public String getQuery()
public String getFragment()
public void normalize()
public URI resolve(String relUriSpec)
public URI resolve(URI relUri)
public String toString()
public Object clone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||