public final class SipRequestImpl extends SipMessageImpl implements SipRequest
SipRequest.BuilderCall_ID_HEADER, CSEQ_HEADER, FROM_HEADER, TO_HEADER| Constructor and Description |
|---|
SipRequestImpl(Buffer requestLine,
Buffer headers,
Buffer payload) |
SipRequestImpl(SipRequestLine requestLine,
Buffer headers,
Buffer payload) |
| Modifier and Type | Method and Description |
|---|---|
SipRequest |
clone()
Perform a deep clone of this SipMessage.
|
SipResponse |
createResponse(int statusCode)
Create a new response based on this
SipRequest. |
Buffer |
getMethod()
Get the method of this sip message
|
URI |
getRequestUri()
Get the request uri of the sip request
|
RouteHeader |
popRouteHeader()
Pop the top-most route header.
|
SipRequest |
toRequest()
Got tired of casting the
SipMessage into a SipRequest so
you can use this method instead. |
addHeader, addHeaderFirst, cloneHeaders, clonePayload, getCallIDHeader, getContactHeader, getContent, getContentTypeHeader, getCSeqHeader, getExpiresHeader, getFromHeader, getHeader, getHeader, getInitialLine, getMaxForwards, getRawContent, getRecordRouteHeader, getRecordRouteHeaders, getRequestLine, getResponseLine, getRouteHeader, getRouteHeaders, getSipHeader, getToHeader, getViaHeader, getViaHeaders, hasContent, isAck, isBye, isCancel, isInfo, isInitial, isInvite, isMessage, isOptions, isRegister, isRequest, isResponse, popHeader, setHeader, toBuffer, toResponse, toString, transferHeaders, verifyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitack, ack, cancel, cancel, invite, requestaddHeader, addHeaderFirst, frame, frame, getCallIDHeader, getContactHeader, getContent, getContentTypeHeader, getCSeqHeader, getExpiresHeader, getFromHeader, getHeader, getHeader, getInitialLine, getMaxForwards, getRawContent, getRecordRouteHeader, getRecordRouteHeaders, getRouteHeader, getRouteHeaders, getToHeader, getViaHeader, getViaHeaders, hasContent, isAck, isBye, isCancel, isInfo, isInitial, isInvite, isMessage, isOptions, isRegister, isRequest, isResponse, popHeader, setHeader, toBuffer, toResponse, verifypublic SipRequestImpl(SipRequestLine requestLine, Buffer headers, Buffer payload)
public Buffer getMethod()
getMethod in interface SipMessagegetMethod in class SipMessageImplpublic URI getRequestUri() throws SipParseException
getRequestUri in interface SipRequestSipParseExceptionpublic RouteHeader popRouteHeader()
SipMessage.popHeader(Buffer).popRouteHeader in interface SipRequestRouteHeader or null if this SipRequest contained no
RouteHeaders.public SipRequest toRequest() throws ClassCastException
SipMessageSipMessage into a SipRequest so
you can use this method instead. Just a short cut for:
(SipRequest)sipMessage;
toRequest in interface SipMessagetoRequest in class SipMessageImplSipRequestClassCastException - in case this SipMessage is actually a
SipResponse.public SipRequest clone()
SipMessageclone in interface SipMessageclone in interface SipRequestclone in class SipMessageImplpublic SipResponse createResponse(int statusCode) throws SipParseException, ClassCastException
SipRequest. If this
SipMessage is not a SipRequest then a
ClassCastException will be thrown. Only the mandatory headers
from the SipRequest are copied. Those mandatory headers are:
createResponse in interface SipMessagecreateResponse in class SipMessageImplSipParseException - in case anything goes wrong when parsing out headers from the
SipRequestClassCastExceptionCopyright © 2017. All Rights Reserved.