|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lastbamboo.common.sip.stack.util.UriUtilsImpl
public class UriUtilsImpl
An implementation of the URI utilities interface.
| Constructor Summary | |
|---|---|
UriUtilsImpl()
|
|
| Method Summary | |
|---|---|
String |
getHostInSipUri(URI sipUri)
Returns the host portion of a SIP URI (in the form of an opaque java.net.URI). |
int |
getPersonIdInSipUri(URI sipUri)
Returns the user portion of a SIP URI (in the form of an opaque java.net.URI) as a Little Shoot person identifier. |
int |
getPortInSipUri(URI uri)
Extracts the port from a SIP URI. |
URI |
getSipUri(String host)
Returns a SIP URI for a given host of the form "sip:host". |
URI |
getSipUri(String host,
int port)
Returns a SIP URI for a given host and port of the form "sip:host:port". |
URI |
getSipUri(String host,
int port,
String transport)
Returns a SIP URI for a given host and port of the form "sip:host:port". |
URI |
getUri(String uriString)
Returns a URI from a string. |
URI |
getUriForHost(String host)
Returns a URI from a host. |
URI |
getUriWithPort(URI uri,
int port)
Returns a URI with a modified port. |
String |
getUserInSipUri(URI sipUri)
Returns the user portion of a SIP URI (in the form of an opaque java.net.URI). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UriUtilsImpl()
| Method Detail |
|---|
public URI getUri(String uriString)
UriUtils
getUri in interface UriUtilsuriString - The string containing a URI-formatting string.
public URI getUriForHost(String host)
UriUtils
getUriForHost in interface UriUtilshost - The host.
public URI getSipUri(String host)
UriUtils
getSipUri in interface UriUtilshost - The host.
public URI getSipUri(String host,
int port)
UriUtils
getSipUri in interface UriUtilshost - The host.port - The port.
public URI getSipUri(String host,
int port,
String transport)
UriUtils
getSipUri in interface UriUtilshost - The host.port - The port.transport - The transport to be used to connect.
public URI getUriWithPort(URI uri,
int port)
UriUtils
getUriWithPort in interface UriUtilsuri - The original URI.port - The new port.
public String getUserInSipUri(URI sipUri)
UriUtils
getUserInSipUri in interface UriUtilssipUri - The URI.
public String getHostInSipUri(URI sipUri)
UriUtils
getHostInSipUri in interface UriUtilssipUri - The URI.
public int getPersonIdInSipUri(URI sipUri)
UriUtils
getPersonIdInSipUri in interface UriUtilssipUri - The URI.
public int getPortInSipUri(URI uri)
UriUtils
getPortInSipUri in interface UriUtilsuri - The URI to extract the port from.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||