JSIP API v1.2
November 2006

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.

Author:
BEA Systems, NIST
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

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

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

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

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

JSIP API v1.2
November 2006

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing at http://archives.java.sun.com
Copyright - 2006 BEA Systems and Sun Microsystems