NIST SIP Parser and Stack (v1.2) API

gov.nist.javax.sip.header
Class Protocol

java.lang.Object
  |
  +--gov.nist.core.GenericObject
        |
        +--gov.nist.javax.sip.header.SIPObject
              |
              +--gov.nist.javax.sip.header.Protocol

public class Protocol
extends SIPObject

Protocol name and version.

Version:
JAIN-SIP-1.1
Author:
M. Ranganathan
This code is in the public domain.

Constructor Summary
Protocol()
          Default constructor.
 
Method Summary
 String encode()
          Return canonical form.
 boolean equals(Object other)
          Compare two To headers for equality.
 String getProtocolName()
          get the protocol name
 String getProtocolVersion()
          get the protocol version
 String getTransport()
          get the transport
 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
clone, dbgPrint, debugDump, debugDump, match, merge, replace, replace, replace, replace, toString
 
Methods inherited from class gov.nist.core.GenericObject
getClassFromName, getMatcher, isMySubclass, setMatcher
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Protocol

public Protocol()
Default constructor.

Method Detail

equals

public boolean equals(Object other)
Compare two To headers for equality.

Overrides:
equals in class SIPObject
Parameters:
other - Object to set
Returns:
true if the two headers are the same.

encode

public String encode()
Return canonical form.

Specified by:
encode in class SIPObject
Returns:
String

getProtocolName

public String getProtocolName()
get the protocol name

Returns:
String

getProtocolVersion

public String getProtocolVersion()
get the protocol version

Returns:
String

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 Parser and Stack (v1.2) API

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