|
||||||||||
| 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 support host name
resolution to avoid URI schizophrenia.
| Constructor Summary | |
|---|---|
URI(String uriString)
create a new URI. |
|
| Method Summary | |
|---|---|
static URI |
create(String uriString)
convenience method for creating a new URI instance. |
boolean |
equals(Object other)
|
String |
getFragment()
get the fragment. |
String |
getHostName()
get the host name. |
int |
getPort()
get the port. |
String |
getScheme()
get the protocol scheme. |
int |
hashCode()
|
URI |
resolve(String add)
resolve a relative fragment against this absolute base URI. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public URI(String uriString)
uriString - the string.| Method Detail |
|---|
public static URI create(String uriString)
uriString - the uri string.
public String getScheme()
public String getHostName()
public int getPort()
public String getFragment()
public URI resolve(String add)
add - the fragment.
public int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()public boolean equals(Object other)
equals in class ObjectObject.equals(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||