public class ImmutableSipResponse extends ImmutableSipMessage implements SipResponse
SipResponse.BuilderUNABLE_TO_PARSE_OUT_THE_METHOD_DUE_TO_UNDERLYING_IO_EXCEPTION| Modifier | Constructor and Description |
|---|---|
protected |
ImmutableSipResponse(Buffer message,
SipResponseLine initialLine,
List<SipHeader> headers,
short indexOfTo,
short indexOfFrom,
short indexOfCSeq,
short indexOfCallId,
short indexOfMaxForwards,
short indexOfVia,
short indexOfRoute,
short indexOfRecordRoute,
short indexOfContact,
Buffer body) |
| Modifier and Type | Method and Description |
|---|---|
SipResponse |
clone()
Perform a deep clone of this SipMessage.
|
SipResponse.Builder |
copy() |
Buffer |
getMethod()
Get the method of this sip message
|
Buffer |
getReasonPhrase()
Get the reason phrase of this
SipResponse |
int |
getStatus()
Get the status code of this SIP response
|
ViaHeader |
popViaHeader()
Pop the top-most
ViaHeader. |
addHeader, addHeaderFirst, countNoOfHeaders, getAllHeaders, getCallIDHeader, getContactHeader, getContent, getContentLength, getContentTypeHeader, getCSeqHeader, getExpiresHeader, getFromHeader, getHeader, getHeader, getHeaders, getHeaders, getInitialLine, getInitialLineAsObject, getMaxForwards, getRecordRouteHeader, getRecordRouteHeaders, getRouteHeader, getRouteHeaders, getToHeader, getViaHeader, getViaHeaders, hasContent, initialLine, isInitial, popHeader, setHeader, toBuffer, toString, verifyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitis100Trying, isClientError, isError, isFinal, isGlobalError, isProvisional, isRedirect, isResponse, isRinging, isServerError, isSuccess, isTimeout, toResponse, withStatusCodeaddHeader, addHeaderFirst, countNoOfHeaders, createResponse, createResponse, frame, frame, frame, getAllHeaders, getCallIDHeader, getContactHeader, getContent, getContentLength, getContentTypeHeader, getCSeqHeader, getExpiresHeader, getFromHeader, getHeader, getHeader, getHeaders, getHeaders, getInitialLine, getMaxForwards, getRecordRouteHeader, getRecordRouteHeaders, getRouteHeader, getRouteHeaders, getToHeader, getViaHeader, getViaHeaders, hasContent, initialLine, isAck, isBye, isCancel, isInfo, isInitial, isInvite, isMessage, isOptions, isRegister, isRequest, isSubsequent, popHeader, setHeader, toBuffer, toRequest, verifyprotected ImmutableSipResponse(Buffer message, SipResponseLine initialLine, List<SipHeader> headers, short indexOfTo, short indexOfFrom, short indexOfCSeq, short indexOfCallId, short indexOfMaxForwards, short indexOfVia, short indexOfRoute, short indexOfRecordRoute, short indexOfContact, Buffer body)
message - the full immutable buffer which has the entire SIP message in it, including all headers, body
initial line etc.initialLine - the parsed initial line (which is just a reference into the message buffer)headers - indexOfTo - indexOfFrom - indexOfCSeq - indexOfCallId - indexOfMaxForwards - indexOfVia - indexOfRoute - indexOfRecordRoute - indexOfContact - body - public Buffer getMethod() throws SipParseException
SipMessagegetMethod in interface SipMessageSipParseExceptionpublic SipResponse.Builder copy()
copy in interface SipMessagecopy in interface SipResponsepublic int getStatus()
SipResponsegetStatus in interface SipResponsepublic Buffer getReasonPhrase()
SipResponseSipResponsegetReasonPhrase in interface SipResponsepublic ViaHeader popViaHeader() throws SipParseException
SipResponseViaHeader.
This is a convenience method for calling SipMessage.popHeader(Buffer).popViaHeader in interface SipResponseViaHeader or null if this SipResponse contained no
ViaHeaders.SipParseExceptionpublic final SipResponse clone()
SipMessageclone in interface SipMessageclone in interface SipResponseclone in class ImmutableSipMessageCopyright © 2016. All Rights Reserved.