public class RequestLine extends SIPObject implements SipRequestLine
| Modifier and Type | Field and Description |
|---|---|
protected String |
method
method field.
|
protected String |
sipVersion
sipVersion field
|
protected GenericURI |
uri
uri 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 |
|---|
RequestLine()
Default constructor
|
RequestLine(GenericURI requestURI,
String method)
Constructor given the request URI and the method.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clones this object.
|
String |
encode()
Encode the request line as a String.
|
StringBuilder |
encode(StringBuilder buffer)
Encode the header into the given StringBuilder.
|
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 version)
Set the sipVersion member
|
void |
setUri(URI uri)
Set the URI.
|
dbgPrint, debugDump, debugDump, match, toStringdbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprintprotected GenericURI uri
protected String method
protected String sipVersion
public RequestLine()
public RequestLine(GenericURI requestURI, String method)
public String encode()
public StringBuilder encode(StringBuilder buffer)
SIPObjectpublic GenericURI getUri()
SipRequestLinegetUri in interface SipRequestLinepublic String getMethod()
SipRequestLinegetMethod in interface SipRequestLinepublic String getSipVersion()
SipRequestLinegetSipVersion in interface SipRequestLinepublic void setUri(URI uri)
SipRequestLinesetUri in interface SipRequestLineuri - URI to set.public void setMethod(String method)
SipRequestLinesetMethod in interface SipRequestLinemethod - String to setpublic void setSipVersion(String version)
SipRequestLinesetSipVersion in interface SipRequestLinepublic String getVersionMajor()
SipRequestLinegetVersionMajor in interface SipRequestLinepublic String getVersionMinor()
SipRequestLinegetVersionMinor in interface SipRequestLinepublic boolean equals(Object other)
public Object clone()
GenericObjectclone in class GenericObjectCopyright © 2014. All Rights Reserved.