public final class StatusLine extends SIPObject implements SipStatusLine
Modifier and Type | Field and Description |
---|---|
protected boolean |
matchStatusClass |
protected String |
reasonPhrase
reasonPhrase field
|
protected String |
sipVersion
sipVersion field
|
protected int |
statusCode
status code field
|
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
Constructor and Description |
---|
StatusLine()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
dbgPrint, debugDump, debugDump, encode, equals, toString
clone, dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
protected boolean matchStatusClass
protected String sipVersion
protected int statusCode
protected String reasonPhrase
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()
public String getSipVersion()
SipStatusLine
getSipVersion
in interface SipStatusLine
public int getStatusCode()
SipStatusLine
getStatusCode
in interface SipStatusLine
public String getReasonPhrase()
SipStatusLine
getReasonPhrase
in interface SipStatusLine
public void setSipVersion(String s)
SipStatusLine
setSipVersion
in interface SipStatusLine
s
- String to setpublic void setStatusCode(int statusCode)
SipStatusLine
setStatusCode
in interface SipStatusLine
statusCode
- int to setpublic void setReasonPhrase(String reasonPhrase)
SipStatusLine
setReasonPhrase
in interface SipStatusLine
reasonPhrase
- String to setpublic String getVersionMajor()
SipStatusLine
getVersionMajor
in interface SipStatusLine
public String getVersionMinor()
SipStatusLine
getVersionMinor
in interface SipStatusLine
Copyright © 2015. All Rights Reserved.