public interface SipResponse extends SipMessage
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SipResponse.Builder |
UNABLE_TO_PARSE_OUT_THE_METHOD_DUE_TO_UNDERLYING_IO_EXCEPTION| Modifier and Type | Method and Description |
|---|---|
SipResponse |
clone()
Perform a deep clone of this SipMessage.
|
SipResponse.Builder |
copy() |
Buffer |
getReasonPhrase()
Get the reason phrase of this
SipResponse |
int |
getStatus()
Get the status code of this SIP response
|
default boolean |
is100Trying()
Convenience method for checking whether this is a 100 Trying response or
not.
|
default boolean |
isClientError()
Convenience method for checking whether this is a 4xx response or not.
|
default boolean |
isError()
Convenience method for checking whether this response is >= 400.
|
default boolean |
isFinal()
Convenience method for checking whether this response is a final response, i.e.
|
default boolean |
isGlobalError()
Convenience method for checking whether this is a 6xx response or not.
|
default boolean |
isProvisional()
Convenience method for checking whether this is a 1xx response or not.
|
default boolean |
isRedirect()
Convenience method for checking whether this is a 3xx response or not.
|
default boolean |
isResponse()
Check whether this sip message is a response or not
|
default boolean |
isRinging()
Convenience method for checking whether this is a 180 Ringing response or
or a 183 Early Media response.
|
default boolean |
isServerError()
Convenience method for checking whether this is a 5xx response or not.
|
default boolean |
isSuccess()
Convenience method for checking whether this is a 2xx response or not.
|
default boolean |
isTimeout()
Convenience method for checking whether this is a 480 Timeout response or
not.
|
default ViaHeader |
popViaHeader()
Pop the top-most
ViaHeader. |
default SipResponse |
toResponse()
Got tired of casting the
SipMessage into a SipResponse so
you can use this method instead. |
static SipResponse.Builder |
withStatusCode(int statusCode) |
addHeader, addHeaderFirst, countNoOfHeaders, createResponse, createResponse, frame, frame, frame, getAllHeaders, getCallIDHeader, getContactHeader, getContent, getContentLength, getContentTypeHeader, getCSeqHeader, getExpiresHeader, getFromHeader, getHeader, getHeader, getHeaders, getHeaders, getInitialLine, getMaxForwards, getMethod, getRecordRouteHeader, getRecordRouteHeaders, getRouteHeader, getRouteHeaders, getToHeader, getViaHeader, getViaHeaders, hasContent, initialLine, isAck, isBye, isCancel, isInfo, isInitial, isInvite, isMessage, isOptions, isRegister, isRequest, isSubsequent, popHeader, setHeader, toBuffer, toRequest, verifyint getStatus()
Buffer getReasonPhrase()
SipResponsedefault boolean isResponse()
SipMessageisResponse in interface SipMessagedefault boolean isError()
default boolean isProvisional()
default boolean isFinal()
default boolean isSuccess()
default boolean isRedirect()
default boolean isClientError()
default boolean isServerError()
default boolean isGlobalError()
default boolean is100Trying()
default boolean isRinging()
static SipResponse.Builder withStatusCode(int statusCode)
default boolean isTimeout()
default 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 SipMessageSipResponseClassCastException - in case this SipMessage is actually a
SipResponse.default ViaHeader popViaHeader() throws SipParseException
ViaHeader.
This is a convenience method for calling SipMessage.popHeader(Buffer).ViaHeader or null if this SipResponse contained no
ViaHeaders.SipParseExceptionSipResponse.Builder copy()
copy in interface SipMessageSipResponse clone()
SipMessageclone in interface SipMessageCopyright © 2016. All Rights Reserved.