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

gov.nist.javax.sip.address
Class GenericURI

java.lang.Object
  extended by gov.nist.core.GenericObject
      extended by gov.nist.javax.sip.address.NetObject
          extended by gov.nist.javax.sip.address.GenericURI
All Implemented Interfaces:
Serializable, Cloneable, URI
Direct Known Subclasses:
SipUri, TelURLImpl

public class GenericURI
extends NetObject
implements URI

Implementation of the URI class. This relies on the 1.4 URI class.

Version:
1.2 $Revision: 1.9 $ $Date: 2009/07/17 18:57:22 $
Author:
M. Ranganathan
See Also:
Serialized Form

Field Summary
static String ISUB
           
static String PHONE_CONTEXT_TAG
           
static String POSTDIAL
           
static String PROVIDER_TAG
           
static String SIP
           
static String SIPS
           
static String TEL
           
 
Constructor Summary
GenericURI(String uriString)
          Constructor given the URI string
 
Method Summary
 String encode()
          Encode the URI.
 StringBuffer encode(StringBuffer buffer)
          Put the encoded version of this object in the given StringBuffer.
 boolean equals(Object that)
          An introspection based equality predicate for SIPObjects.
 String getScheme()
          Returns the value of the "scheme" of this URI, for example "sip", "sips" or "tel".
 int hashCode()
           
 boolean isSipURI()
          This method determines if this is a URI with a scheme of "sip" or "sips".
 String toString()
          Encode this URI.
 
Methods inherited from class gov.nist.javax.sip.address.NetObject
debugDump, debugDump, match
 
Methods inherited from class gov.nist.core.GenericObject
clone, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.sip.address.URI
clone
 

Field Detail

SIP

public static final String SIP
See Also:
Constant Field Values

SIPS

public static final String SIPS
See Also:
Constant Field Values

TEL

public static final String TEL
See Also:
Constant Field Values

POSTDIAL

public static final String POSTDIAL
See Also:
Constant Field Values

PHONE_CONTEXT_TAG

public static final String PHONE_CONTEXT_TAG
See Also:
Constant Field Values

ISUB

public static final String ISUB
See Also:
Constant Field Values

PROVIDER_TAG

public static final String PROVIDER_TAG
See Also:
Constant Field Values
Constructor Detail

GenericURI

public GenericURI(String uriString)
           throws ParseException
Constructor given the URI string

Parameters:
uriString - The imbedded URI string.
Throws:
URISyntaxException - When there is a syntaz error in the imbedded URI.
ParseException
Method Detail

encode

public String encode()
Encode the URI.

Specified by:
encode in class gov.nist.core.GenericObject
Returns:
The encoded URI

encode

public StringBuffer encode(StringBuffer buffer)
Description copied from class: gov.nist.core.GenericObject
Put the encoded version of this object in the given StringBuffer.

Overrides:
encode in class gov.nist.core.GenericObject

toString

public String toString()
Encode this URI.

Specified by:
toString in interface URI
Overrides:
toString in class NetObject
Returns:
The encoded URI

getScheme

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

Specified by:
getScheme in interface URI
Returns:
the scheme paramter of the URI

isSipURI

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

Specified by:
isSipURI in interface URI
Returns:
true if the scheme is "sip" or "sips", false otherwise.

equals

public boolean equals(Object that)
Description copied from class: NetObject
An introspection based equality predicate for SIPObjects.

Overrides:
equals in class NetObject
Parameters:
that - is the other object to test against.
Returns:
true if the objects are euqal and false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class Object

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.