JAIN SIP API
v1.1 - 23rd June 2003

javax.sip.address
Interface URI

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

public interface URI
extends java.lang.Cloneable, java.io.Serializable

This class represents a generic URI. This is the base interface for any type of URI. These are used in SIP requests to identify the callee and also in Contact, From, and To headers.

The generic syntax of URIs is defined in RFC 2396.

Since:
1.1
See Also:
TelURL, SipURI

Method Summary
 java.lang.Object clone()
          Creates and returns a deep copy of the URI.
 java.lang.String getScheme()
          Returns the value of the "scheme" of this URI, for example "sip", "sips" or "tel".
 boolean isSipURI()
          This method determines if this is a URI with a scheme of "sip" or "sips".
 java.lang.String toString()
          This method returns the URI as a string.
 

Method Detail

getScheme

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

Returns:
the scheme paramter of the URI

clone

public java.lang.Object clone()
Creates and returns a deep copy of the URI. This methods must ensure a deep copy of the URI, so that when a URI is cloned the URI can be modified without effecting the original URI. This provides useful functionality for proxying Requests and Responses. This method overrides the clone method in java.lang.Object.

Returns:
a deep copy of URI

isSipURI

public boolean isSipURI()
This method determines if this is a URI with a scheme of "sip" or "sips".

Returns:
true if the scheme is "sip" or "sips", false otherwise.

toString

public java.lang.String toString()
This method returns the URI as a string.

Overrides:
toString in class java.lang.Object
Returns:
String The stringified version of the URI

JAIN SIP API
v1.1 - 23rd June 2003

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing to the
JAIN-SIP-Interest list at http://archives.java.sun.com
Copyright - 2003 Sun Microsystems