NIST SIP Parser and Stack (v1.2) API

gov.nist.javax.sip.header
Class RequestLine

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

public class RequestLine
extends SIPObject

RequestLine of SIP Request.

Author:
M. Ranganathan

Constructor Summary
RequestLine()
          Default constructor
RequestLine(GenericURI requestURI, String method)
          Constructor given the request URI and the method.
 
Method Summary
 String encode()
          Encode the request line as a String.
 boolean equals(Object other)
          Compare for equality.
 String getMethod()
          Get the Method
 String getSipVersion()
          Get the SIP version.
 GenericURI getUri()
          get the Request-URI.
 String getVersionMajor()
          Get the major verrsion number.
 String getVersionMinor()
          Get the minor version number.
 void setMethod(String method)
          Set the method member
 void setSipVersion(String s)
          Set the sipVersion member
 void setSIPVersion(String sipVersion)
          Set the SIP version.
 void setUri(GenericURI uri)
          Set the uri 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

RequestLine

public RequestLine()
Default constructor


RequestLine

public RequestLine(GenericURI requestURI,
                   String method)
Constructor given the request URI and the method.

Method Detail

setSIPVersion

public void setSIPVersion(String sipVersion)
Set the SIP version.

Parameters:
sipVersion - -- the SIP version to set.

encode

public String encode()
Encode the request line as a String.

Specified by:
encode in class SIPObject
Returns:
requestLine encoded as a string.

getUri

public GenericURI getUri()
get the Request-URI.

Returns:
the request URI

getMethod

public String getMethod()
Get the Method

Returns:
method string.

getSipVersion

public String getSipVersion()
Get the SIP version.

Returns:
String

setUri

public void setUri(GenericURI uri)
Set the uri member.

Parameters:
uri - URI to set.

setMethod

public void setMethod(String method)
Set the method member

Parameters:
method - String to set

setSipVersion

public void setSipVersion(String s)
Set the sipVersion member

Parameters:
s - String to set

getVersionMajor

public String getVersionMajor()
Get the major verrsion number.

Returns:
String major version number

getVersionMinor

public String getVersionMinor()
Get the minor version number.

Returns:
String minor version number

equals

public boolean equals(Object other)
Compare for equality.

Overrides:
equals in class SIPObject
Parameters:
other - object to compare with. We assume that all fields are 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.