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, verifyint getStatus()
Buffer getReasonPhrase()
SipResponsedefault boolean isResponse()
SipMessageisResponse in interface SipMessagedefault boolean isError()
isError in interface SipMessagedefault boolean isProvisional()
isProvisional in interface SipMessagedefault boolean isFinal()
isFinal in interface SipMessagedefault boolean isSuccess()
isSuccess in interface SipMessagedefault boolean isRedirect()
isRedirect in interface SipMessagedefault boolean isClientError()
isClientError in interface SipMessagedefault boolean isServerError()
isServerError in interface SipMessagedefault boolean isGlobalError()
isGlobalError in interface SipMessagedefault boolean is100Trying()
is100Trying in interface SipMessagedefault boolean isRinging()
isRinging in interface SipMessagestatic SipResponse.Builder withStatusCode(int statusCode)
default boolean isTimeout()
isTimeout in interface SipMessagedefault 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.SipResponse.Builder copy()
copy in interface SipMessageSipResponse clone()
SipMessageclone in interface SipMessageCopyright © 2020. All Rights Reserved.