|
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.header.SIPObject
gov.nist.javax.sip.header.CallIdentifier
public final class CallIdentifier
The call identifer that goes into a callID header and a in-reply-to header.
CallID
,
InReplyTo
,
Serialized FormConstructor Summary | |
---|---|
CallIdentifier()
Default constructor |
|
CallIdentifier(String cid)
constructor |
|
CallIdentifier(String localId,
String host)
Constructor |
Method Summary | |
---|---|
String |
encode()
Get the encoded version of this id. |
StringBuffer |
encode(StringBuffer buffer)
Encode the header into the given StringBuffer. |
boolean |
equals(Object other)
Compare two call identifiers for equality. |
String |
getHost()
get the host field |
String |
getLocalId()
get the LocalId field |
void |
setCallID(String cid)
set the callId field |
void |
setHost(String host)
Set the host member |
void |
setLocalId(String localId)
Set the localId member |
Methods inherited from class gov.nist.javax.sip.header.SIPObject |
---|
dbgPrint, debugDump, debugDump, match, toString |
Methods inherited from class gov.nist.core.GenericObject |
---|
clone, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CallIdentifier()
public CallIdentifier(String localId, String host)
localId
- id is the local id.host
- is the host.public CallIdentifier(String cid) throws IllegalArgumentException
cid
- String to set
IllegalArgumentException
- if cid is null or is not a token,
or token@tokenMethod Detail |
---|
public String encode()
encode
in class SIPObject
public StringBuffer encode(StringBuffer buffer)
SIPObject
encode
in class SIPObject
public boolean equals(Object other)
equals
in class SIPObject
other
- Object to set
public String getLocalId()
public String getHost()
public void setLocalId(String localId)
localId
- String to setpublic void setCallID(String cid) throws IllegalArgumentException
cid
- Strimg to set
IllegalArgumentException
- if cid is null or is not a token or
token@tokenpublic void setHost(String host)
host
- String to set
|
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 |