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 SipResponse |
toResponse()
Got tired of casting the
SipMessage into a SipResponse so
you can use this method instead. |
static SipResponse.Builder |
withStatusCode(int statusCode) |
countNoOfHeaders, createResponse, createResponse, frame, frame, frame, getAllHeaders, getCallIDHeader, getContactHeader, getContent, getContentLength, getContentTypeHeader, getCSeqHeader, getExpiresHeader, getFromHeader, getHeader, getHeader, getHeaders, getHeaders, getHeaderValues, getInitialLine, getMaxForwards, getMethod, getRecordRouteHeader, getRecordRouteHeaders, getRouteHeader, getRouteHeaders, getToHeader, getViaHeader, getViaHeaders, hasContent, initialLine, isAck, isBye, isByeRequest, isCancel, isCancelRequest, isFinalNon2xx, isInfo, isInfoRequest, isInitial, isInvite, isInviteRequest, isMessage, isMessageRequest, isOptions, isOptionsRequest, isRegister, isRegisterRequest, isRequest, isSubsequent, toBuffer, toRequest, verify
int getStatus()
Buffer getReasonPhrase()
SipResponse
default boolean isResponse()
SipMessage
isResponse
in interface SipMessage
default boolean isError()
isError
in interface SipMessage
default boolean isProvisional()
isProvisional
in interface SipMessage
default boolean isFinal()
isFinal
in interface SipMessage
default boolean isSuccess()
isSuccess
in interface SipMessage
default boolean isRedirect()
isRedirect
in interface SipMessage
default boolean isClientError()
isClientError
in interface SipMessage
default boolean isServerError()
isServerError
in interface SipMessage
default boolean isGlobalError()
isGlobalError
in interface SipMessage
default boolean is100Trying()
is100Trying
in interface SipMessage
default boolean isRinging()
isRinging
in interface SipMessage
static SipResponse.Builder withStatusCode(int statusCode)
default boolean isTimeout()
isTimeout
in interface SipMessage
default SipResponse toResponse() throws ClassCastException
SipMessage
SipMessage
into a SipResponse
so
you can use this method instead. Just a short cut for:
(SipResponse)sipMessage;
toResponse
in interface SipMessage
SipResponse
ClassCastException
- in case this SipMessage
is actually a
SipResponse
.SipResponse.Builder copy()
copy
in interface SipMessage
SipResponse clone()
SipMessage
clone
in interface SipMessage
Copyright © 2021. All Rights Reserved.