|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ethz.iks.r_osgi.URI
public final class URI
URI is, well, an URI, as described in RFC 2396. Since
java.net.URI
exists only since version 1.4, R-OSGi uses its own
URI class. This is a lightweight implementation, it does only as much as is
needed for R-OSGi. Furthermore, certain protocol schemes do address
resolution to avoid URI schizophrenia.
Constructor Summary | |
---|---|
URI(java.lang.String uriString)
create a new URI. |
|
URI(java.lang.String uriString,
boolean hostLookup)
create a new URI |
Method Summary | |
---|---|
static URI |
create(java.lang.String uriString)
convenience method for creating a new URI instance. |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getFragment()
get the fragment. |
java.lang.String |
getHost()
get the host name. |
int |
getPort()
get the port. |
java.lang.String |
getScheme()
get the protocol scheme. |
int |
hashCode()
|
URI |
resolve(java.lang.String add)
resolve a relative fragment against this absolute base URI. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public URI(java.lang.String uriString)
uriString
- the string.public URI(java.lang.String uriString, boolean hostLookup)
uriString
- the stringhostLookup
- do a host lookup?Method Detail |
---|
public static URI create(java.lang.String uriString)
uriString
- the uri string.
public java.lang.String getScheme()
public java.lang.String getHost()
public int getPort()
public java.lang.String getFragment()
public URI resolve(java.lang.String add)
add
- the fragment.
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |