javax.servlet.sip
Interface URI

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
SipURI, TelURL

public interface URI
extends java.lang.Cloneable

Base interface for any type of URI. These are used in the request line of SIP requests to identify the callee and also in Contact, From, and To headers.

The only feature common to all URIs is that they can be represented as strings beginning with a token identifying the scheme of the URI followed by a colon followed by a scheme-specific part.

The generic syntax of URIs is defined in RFC 2396.


Method Summary
 java.lang.Object clone()
          Returns a clone of this SipURI.
 java.lang.String getScheme()
          Returns the scheme of this URI, for example "sip", "sips" or "tel".
 boolean isSipURI()
          Returns true if the scheme is "sip" or "sips", false otherwise.
 java.lang.String toString()
          Returns the value of this URI as a String.
 

Method Detail

getScheme

public java.lang.String getScheme()
Returns the scheme of this URI, for example "sip", "sips" or "tel".
Returns:
the scheme of this URI

toString

public java.lang.String toString()
Returns the value of this URI as a String. The result must be appropriately URL escaped.
Overrides:
toString in class java.lang.Object
Returns:
String value of this URI

isSipURI

public boolean isSipURI()
Returns true if the scheme is "sip" or "sips", false otherwise.
Returns:
true if the scheme is "sip" or "sips", false otherwise

clone

public java.lang.Object clone()
Returns a clone of this SipURI.
Overrides:
clone in class java.lang.Object
Returns:
a clone of this SipURI


SIP Servlet API 1.0