NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

javax.sip.address
Interface URI

All Superinterfaces:
Cloneable, Serializable
All Known Subinterfaces:
SipURI, TelURL
All Known Implementing Classes:
GenericURI, SipUri, TelURLImpl

public interface URI
extends Cloneable, 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.

Version:
1.2
Author:
BEA Systems, NIST
See Also:
TelURL, SipURI

Method Summary
 Object clone()
          Creates and returns a deep copy of the URI.
 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".
 String toString()
          This method returns the URI as a string.
 

Method Detail

getScheme

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

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

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

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

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.