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

gov.nist.javax.sip.header
Class StatusLine

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

public final class StatusLine
extends SIPObject

Status Line (for SIPReply) messages.

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

Constructor Summary
StatusLine()
          Default Constructor
 
Method Summary
 String encode()
          Encode into a canonical form.
 String getReasonPhrase()
          get the ReasonPhrase field
 String getSipVersion()
          get the Sip Version
 int getStatusCode()
          get the Status Code
 String getVersionMajor()
          Get the major version number.
 String getVersionMinor()
          Get the minor version number.
 boolean match(Object matchObj)
          Match with a template.
 void setMatchStatusClass(boolean flag)
          set the flag on a match template.
 void setReasonPhrase(String reasonPhrase)
          Set the reasonPhrase member
 void setSipVersion(String s)
          Set the sipVersion member
 void setStatusCode(int statusCode)
          Set the statusCode member
 
Methods inherited from class gov.nist.javax.sip.header.SIPObject
dbgPrint, debugDump, debugDump, encode, equals, 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

StatusLine

public StatusLine()
Default Constructor

Method Detail

match

public boolean match(Object matchObj)
Match with a template. Match only the response class if the last two digits of the match templates are 0's

Overrides:
match in class SIPObject
Parameters:
matchObj - the match pattern to test against. The match object has to be of the same type (class). Primitive types and non-sip fields that are non null are matched for equality. Null in any field matches anything. Some book-keeping fields are ignored when making the comparison.

setMatchStatusClass

public void setMatchStatusClass(boolean flag)
set the flag on a match template. If this set to true, then the whole status code is matched (default behavior) else only the class of the response is matched.


encode

public String encode()
Encode into a canonical form.

Specified by:
encode in class SIPObject
Returns:
String

getSipVersion

public String getSipVersion()
get the Sip Version

Returns:
SipVersion

getStatusCode

public int getStatusCode()
get the Status Code

Returns:
StatusCode

getReasonPhrase

public String getReasonPhrase()
get the ReasonPhrase field

Returns:
ReasonPhrase field

setSipVersion

public void setSipVersion(String s)
Set the sipVersion member

Parameters:
s - String to set

setStatusCode

public void setStatusCode(int statusCode)
Set the statusCode member

Parameters:
statusCode - int to set

setReasonPhrase

public void setReasonPhrase(String reasonPhrase)
Set the reasonPhrase member

Parameters:
reasonPhrase - String to set

getVersionMajor

public String getVersionMajor()
Get the major version number.

Returns:
String major version number

getVersionMinor

public String getVersionMinor()
Get the minor version number.

Returns:
String minor version number

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.