|
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.Protocol
public class Protocol
Protocol name and version.
Constructor Summary | |
---|---|
Protocol()
Default constructor. |
Method Summary | |
---|---|
String |
encode()
Return canonical form. |
StringBuffer |
encode(StringBuffer buffer)
Encode the header into the given StringBuffer. |
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 |
Methods inherited from class gov.nist.javax.sip.header.SIPObject |
---|
dbgPrint, debugDump, debugDump, equals, 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 Protocol()
Method Detail |
---|
public String encode()
encode
in class SIPObject
public StringBuffer encode(StringBuffer buffer)
SIPObject
encode
in class SIPObject
public String getProtocolName()
public String getProtocolVersion()
public String getProtocol()
public void setProtocol(String name_and_version) throws ParseException
ParseException
public 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 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 |