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, toString
dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
protected GenericURI uri
protected String method
protected String sipVersion
public RequestLine()
public RequestLine(GenericURI requestURI, String method)
public String encode()
public StringBuilder encode(StringBuilder buffer)
SIPObject
public GenericURI getUri()
SipRequestLine
getUri
in interface SipRequestLine
public String getMethod()
SipRequestLine
getMethod
in interface SipRequestLine
public String getSipVersion()
SipRequestLine
getSipVersion
in interface SipRequestLine
public void setUri(URI uri)
SipRequestLine
setUri
in interface SipRequestLine
uri
- URI to set.public void setMethod(String method)
SipRequestLine
setMethod
in interface SipRequestLine
method
- String to setpublic void setSipVersion(String version)
SipRequestLine
setSipVersion
in interface SipRequestLine
public String getVersionMajor()
SipRequestLine
getVersionMajor
in interface SipRequestLine
public String getVersionMinor()
SipRequestLine
getVersionMinor
in interface SipRequestLine
public boolean equals(Object other)
public Object clone()
GenericObject
clone
in class GenericObject
Copyright © 2015. All Rights Reserved.