public final class CallIdentifier extends SIPObject
CallID,
InReplyTo,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected String |
host
host field
|
protected String |
localId
localId field
|
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation| Constructor and Description |
|---|
CallIdentifier()
Default constructor
|
CallIdentifier(String cid)
constructor
|
CallIdentifier(String localId,
String host)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
encode()
Get the encoded version of this id.
|
StringBuilder |
encode(StringBuilder buffer)
Encode the header into the given StringBuilder.
|
boolean |
equals(Object other)
Compare two call identifiers for equality.
|
String |
getHost()
get the host field
|
String |
getLocalId()
get the LocalId field
|
int |
hashCode() |
void |
setCallID(String cid)
set the callId field
|
void |
setHost(String host)
Set the host member
|
void |
setLocalId(String localId)
Set the localId member
|
dbgPrint, debugDump, debugDump, match, toStringclone, dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprintpublic 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 setIllegalArgumentException - if cid is null or is not a token,
or token@tokenpublic String encode()
public StringBuilder encode(StringBuilder buffer)
SIPObjectpublic boolean equals(Object other)
public String getLocalId()
public String getHost()
public void setLocalId(String localId)
localId - String to setpublic void setCallID(String cid) throws IllegalArgumentException
cid - Strimg to setIllegalArgumentException - if cid is null or is not a token or
token@tokenpublic void setHost(String host)
host - String to setCopyright © 2018. All Rights Reserved.