|
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.RequestLine
public class RequestLine
RequestLine of SIP Request.
Constructor Summary | |
---|---|
RequestLine()
Default constructor |
|
RequestLine(GenericURI requestURI,
String method)
Constructor given the request URI and the method. |
Method Summary | |
---|---|
Object |
clone()
Clones this object. |
String |
encode()
Encode the request line as a String. |
StringBuffer |
encode(StringBuffer buffer)
Encode the header into the given StringBuffer. |
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 |
---|
dbgPrint, debugDump, debugDump, match, toString |
Methods inherited from class gov.nist.core.GenericObject |
---|
getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RequestLine()
public RequestLine(GenericURI requestURI, String method)
Method Detail |
---|
public void setSIPVersion(String sipVersion)
sipVersion
- -- the SIP version to set.public String encode()
encode
in class SIPObject
public StringBuffer encode(StringBuffer buffer)
SIPObject
encode
in class SIPObject
public GenericURI getUri()
public String getMethod()
public String getSipVersion()
public void setUri(GenericURI uri)
uri
- URI to set.public void setMethod(String method)
method
- String to setpublic void setSipVersion(String s)
s
- String to setpublic String getVersionMajor()
public String getVersionMinor()
public boolean equals(Object other)
equals
in class SIPObject
other
- object to compare with. We assume that all fields
are set.
public Object clone()
gov.nist.core.GenericObject
clone
in class gov.nist.core.GenericObject
|
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 |