public class SipResponsePacketImpl extends SipPacketImpl implements SipResponsePacket
| Constructor and Description |
|---|
SipResponsePacketImpl(TransportPacket transportPacket,
SipResponse msg) |
| Modifier and Type | Method and Description |
|---|---|
SipResponsePacket |
clone() |
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 |
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.
|
SipResponsePacket |
toResponse()
Got tired of casting the
SipPacket into a
SipResponsePacket so you can use this method instead. |
getArrivalTime, getCallIDHeader, getContactHeader, getContent, getContentTypeHeader, getCSeqHeader, getFromHeader, getHeader, getHeader, getHeaders, getHeaderValues, getInitialLine, getMaxForwards, getMethod, getNextPacket, getPayload, getRawContent, getRecordRouteHeader, getRecordRouteHeaders, getRouteHeader, getRouteHeaders, getSipMessage, getToHeader, getTransportPacket, getViaHeader, getViaHeaders, hasContent, isAck, isBye, isCancel, isInfo, isInitial, isInvite, isMessage, isOptions, isRequest, isResponse, toBuffer, toRequest, toString, verify, writecheckParent, getName, getPacket, getParentPacket, getProtocol, hasProtocol, writeequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCallIDHeader, getContactHeader, getContent, getContentTypeHeader, getCSeqHeader, getFromHeader, getHeader, getHeader, getHeaders, getHeaderValues, getInitialLine, getMaxForwards, getMethod, getRawContent, getRecordRouteHeader, getRecordRouteHeaders, getRouteHeader, getRouteHeaders, getToHeader, getViaHeader, getViaHeaders, hasContent, isAck, isBye, isCancel, isInfo, isInitial, isInvite, isMessage, isOptions, isRequest, isResponse, toBuffer, toRequest, verifygetArrivalTime, getName, getNextPacket, getPacket, getParentPacket, getPayload, getProtocol, hasProtocol, write, writepublic SipResponsePacketImpl(TransportPacket transportPacket, SipResponse msg)
transportPacket - msg - public SipResponsePacket toResponse() throws ClassCastException
SipPacketSipPacket into a
SipResponsePacket so you can use this method instead. Just a
short cut for:
(SipResponse)sipMessage;
toResponse in interface SipPackettoResponse in class SipPacketImplSipResponsePacketClassCastException - in case this SipPacket is actually a
SipResponsePacket.public int getStatus()
SipResponsePacketgetStatus in interface SipResponsePacketpublic boolean isProvisional()
SipResponsePacketisProvisional in interface SipResponsePacketpublic boolean isSuccess()
SipResponsePacketisSuccess in interface SipResponsePacketpublic boolean isRedirect()
SipResponsePacketisRedirect in interface SipResponsePacketpublic boolean isClientError()
SipResponsePacketisClientError in interface SipResponsePacketpublic boolean isServerError()
SipResponsePacketisServerError in interface SipResponsePacketpublic boolean isGlobalError()
SipResponsePacketisGlobalError in interface SipResponsePacketpublic boolean is100Trying()
SipResponsePacketis100Trying in interface SipResponsePacketpublic boolean isRinging()
SipResponsePacketisRinging in interface SipResponsePacketpublic boolean isTimeout()
SipResponsePacketisTimeout in interface SipResponsePacketpublic SipResponsePacket clone()
clone in interface Packetclone in interface SipPacketclone in interface SipResponsePacketclone in class SipPacketImplCopyright © 2021. All Rights Reserved.