public final class SipResponseImpl extends SipMessageImpl implements SipResponse
Call_ID_HEADER, CSEQ_HEADER, FROM_HEADER, TO_HEADER| Constructor and Description |
|---|
SipResponseImpl(Buffer initialLine,
Buffer headers,
Buffer payload) |
SipResponseImpl(SipResponseLine initialLine,
Buffer headers,
Buffer payload) |
| Modifier and Type | Method and Description |
|---|---|
SipResponse |
clone()
Perform a deep clone of this SipMessage.
|
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
|
boolean |
is100Trying()
Convenience method for checking whether this is a 100 Trying response or
not.
|
boolean |
isClientError()
Convenience method for checking whether this is a 4xx response or not.
|
boolean |
isFinal()
Convenience method for checking whether this response is a final response, i.e.
|
boolean |
isGlobalError()
Convenience method for checking whether this is a 6xx response or not.
|
boolean |
isProvisional()
Convenience method for checking whether this is a 1xx response or not.
|
boolean |
isRedirect()
Convenience method for checking whether this is a 3xx response or not.
|
boolean |
isRinging()
Convenience method for checking whether this is a 180 Ringing response or
or a 183 Early Media response.
|
boolean |
isServerError()
Convenience method for checking whether this is a 5xx response or not.
|
boolean |
isSuccess()
Convenience method for checking whether this is a 2xx response or not.
|
boolean |
isTimeout()
Convenience method for checking whether this is a 480 Timeout response or
not.
|
ViaHeader |
popViaHeader()
Pop the top-most
ViaHeader. |
SipResponse |
toResponse()
Got tired of casting the
SipMessage into a SipResponse so
you can use this method instead. |
addHeader, addHeaderFirst, cloneHeaders, clonePayload, createResponse, 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, toRequest, toString, transferHeaders, verifyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHeader, addHeaderFirst, createResponse, 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, toRequest, verifypublic SipResponseImpl(Buffer initialLine, Buffer headers, Buffer payload)
initialLine - headers - payload - public SipResponseImpl(SipResponseLine initialLine, Buffer headers, Buffer payload)
public Buffer getReasonPhrase()
SipResponseSipResponsegetReasonPhrase in interface SipResponsepublic Buffer getMethod() throws SipParseException
getMethod in interface SipMessagegetMethod in class SipMessageImplSipParseExceptionpublic int getStatus()
getStatus in interface SipResponsepublic boolean isProvisional()
isProvisional in interface SipResponsepublic boolean isFinal()
isFinal in interface SipResponsepublic boolean isSuccess()
isSuccess in interface SipResponsepublic boolean isRedirect()
isRedirect in interface SipResponsepublic boolean isClientError()
isClientError in interface SipResponsepublic boolean isServerError()
isServerError in interface SipResponsepublic boolean isGlobalError()
isGlobalError in interface SipResponsepublic boolean is100Trying()
is100Trying in interface SipResponsepublic boolean isRinging()
isRinging in interface SipResponsepublic boolean isTimeout()
isTimeout in interface SipResponsepublic SipResponse toResponse() throws ClassCastException
SipMessageSipMessage into a SipResponse so
you can use this method instead. Just a short cut for:
(SipResponse)sipMessage;
toResponse in interface SipMessagetoResponse in class SipMessageImplSipResponseClassCastException - in case this SipMessage is actually a
SipResponse.public SipResponse clone()
SipMessageclone in interface SipMessageclone in interface SipResponseclone in class SipMessageImplpublic 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.SipParseExceptionCopyright © 2017. All Rights Reserved.