NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip.header
Class Protocol

java.lang.Object
  extended by gov.nist.core.GenericObject
      extended by gov.nist.javax.sip.header.SIPObject
          extended by gov.nist.javax.sip.header.Protocol
All Implemented Interfaces:
Serializable, Cloneable

public class Protocol
extends SIPObject

Protocol name and version.

Version:
1.2 $Revision: 1.8 $ $Date: 2009/07/17 18:57:33 $
Author:
M. Ranganathan
See Also:
Serialized Form

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

Protocol

public Protocol()
Default constructor.

Method Detail

encode

public String encode()
Return canonical form.

Specified by:
encode in class SIPObject
Returns:
String

encode

public StringBuffer encode(StringBuffer buffer)
Description copied from class: SIPObject
Encode the header into the given StringBuffer. Default implemation calls encode().

Overrides:
encode in class SIPObject

getProtocolName

public String getProtocolName()
get the protocol name

Returns:
String

getProtocolVersion

public String getProtocolVersion()
get the protocol version

Returns:
String

getProtocol

public String getProtocol()
Get the protocol name + version JvB: This is what is returned in the ViaHeader interface for 'getProtocol()'

Returns:
String : protocolname + '/' + version

setProtocol

public void setProtocol(String name_and_version)
                 throws ParseException
Throws:
ParseException

getTransport

public String getTransport()
get the transport

Returns:
String

setProtocolName

public void setProtocolName(String p)
Set the protocolName member

Parameters:
p - String to set

setProtocolVersion

public void setProtocolVersion(String p)
Set the protocolVersion member

Parameters:
p - String to set

setTransport

public void setTransport(String t)
Set the transport member

Parameters:
t - String to set

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.