|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.net.ParsedURI
public class ParsedURI
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 | |
|---|---|
ParsedURI(String uriSpec)
|
|
ParsedURI(String scheme,
String schemeSpecificPart,
String fragment)
|
|
ParsedURI(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. |
void |
normalize()
Normalizes the path of this URI if it has one. |
ParsedURI |
resolve(ParsedURI relURI)
Resolves a relative URI using this URI as the base URI. |
ParsedURI |
resolve(String relURISpec)
Resolves a relative URI using this URI as the base URI. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParsedURI(String uriSpec)
public ParsedURI(String scheme,
String schemeSpecificPart,
String fragment)
public ParsedURI(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 ParsedURI resolve(String relURISpec)
public ParsedURI resolve(ParsedURI relURI)
public String toString()
toString in class Objectpublic Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||