public class Protocol extends SIPObject
| Modifier and Type | Field and Description |
|---|---|
protected String |
protocolName
protocolName field
|
protected String |
protocolVersion
protocolVersion field
|
protected String |
transport
transport 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 |
|---|
Protocol()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
encode()
Return canonical form.
|
StringBuilder |
encode(StringBuilder buffer)
Encode the header into the given StringBuilder.
|
String |
getProtocol()
Get the protocol name + version
JvB: This is what is returned in the ViaHeader interface for 'getProtocol()'
|
String |
getProtocolName()
get the protocol name
|
String |
getProtocolVersion()
get the protocol version
|
String |
getTransport()
get the transport
|
void |
setProtocol(String name_and_version) |
void |
setProtocolName(String p)
Set the protocolName member
|
void |
setProtocolVersion(String p)
Set the protocolVersion member
|
void |
setTransport(String t)
Set the transport member
|
dbgPrint, debugDump, debugDump, equals, match, toStringclone, dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprintprotected String protocolName
protected String protocolVersion
protected String transport
public String encode()
public StringBuilder encode(StringBuilder buffer)
SIPObjectpublic String getProtocolName()
public String getProtocolVersion()
public String getProtocol()
public void setProtocol(String name_and_version) throws ParseException
ParseExceptionpublic String getTransport()
public void setProtocolName(String p)
p - String to setpublic void setProtocolVersion(String p)
p - String to setpublic void setTransport(String t)
t - String to setCopyright © 2014. All Rights Reserved.