|
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.StatusLine
public final class StatusLine
Status Line (for SIPReply) messages.
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 |
---|
public StatusLine()
Method Detail |
---|
public boolean match(Object matchObj)
match
in class SIPObject
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.public void setMatchStatusClass(boolean flag)
public String encode()
encode
in class SIPObject
public String getSipVersion()
public int getStatusCode()
public String getReasonPhrase()
public void setSipVersion(String s)
s
- String to setpublic void setStatusCode(int statusCode)
statusCode
- int to setpublic void setReasonPhrase(String reasonPhrase)
reasonPhrase
- String to setpublic String getVersionMajor()
public String getVersionMinor()
|
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 |