|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.address.NetObject
gov.nist.javax.sip.address.GenericURI
public class GenericURI
Implementation of the URI class. This relies on the 1.4 URI class.
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 |
---|
public static final String SIP
public static final String SIPS
public static final String TEL
public static final String POSTDIAL
public static final String PHONE_CONTEXT_TAG
public static final String ISUB
public static final String PROVIDER_TAG
Constructor Detail |
---|
public GenericURI(String uriString) throws ParseException
uriString
- The imbedded URI string.
URISyntaxException
- When there is a syntaz error in the imbedded URI.
ParseException
Method Detail |
---|
public String encode()
encode
in class gov.nist.core.GenericObject
public StringBuffer encode(StringBuffer buffer)
gov.nist.core.GenericObject
encode
in class gov.nist.core.GenericObject
public String toString()
toString
in interface URI
toString
in class NetObject
public String getScheme()
getScheme
in interface URI
public boolean isSipURI()
isSipURI
in interface URI
public boolean equals(Object that)
NetObject
equals
in class NetObject
that
- is the other object to test against.
public int hashCode()
hashCode
in class Object
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |