|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
com.ibm.xdms.exception.XdmsException
com.ibm.xdms.exception.sip.SipException
public class SipException
Top level SIP Exception class
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
java.lang.String |
DEFAULT_MESSAGE
|
protected static java.util.logging.Logger |
LOGGER
Logger |
static java.lang.String |
PROPERTY_XCAP_ROOT
|
protected int |
statusCode
SIP Status Code |
protected java.lang.String |
subcriptionState
The SIP Subscription State * |
Fields inherited from class com.ibm.xdms.exception.XdmsException |
---|
hasSetResponse |
Constructor Summary | |
---|---|
SipException(int statusCode,
java.lang.String subcriptionState)
Constructor for setting the status code only |
|
SipException(int statusCode,
java.lang.String subcriptionState,
java.lang.String message)
Constructs a new SIP exception with the specified message |
|
SipException(int statusCode,
java.lang.String subcriptionState,
java.lang.String default_message,
java.lang.String message)
Constructs a new SIP exception with the specified message and sets default message |
|
SipException(int statusCode,
java.lang.String subcriptionState,
java.lang.String message,
java.lang.Throwable rootCause)
Constructs a new SIP exception when the XDMS needs to throw an exception and include a message about the "root cause" exception that interfered with its normal operation, including a description message |
|
SipException(int statusCode,
java.lang.String subcriptionState,
java.lang.Throwable rootCause)
Constructs a new SIP exception when the XDMS needs to throw an exception and include a message about the "root cause" exception that interfered with its normal operation. |
Method Summary | |
---|---|
int |
getStatusCode()
Returns the HTTP status code |
java.lang.String |
getSubcriptionState()
Returns the subscription state used for a SIP NOTIFY request |
void |
setupResponse(javax.servlet.sip.SipServletRequest req,
javax.servlet.sip.SipServletResponse resp,
SipSubscribeHelper sipSubscribeHelper)
Sets up the response based on the XdmsException |
void |
setupResponseXcapDiffEvent(javax.servlet.sip.SipServletRequest req,
javax.servlet.sip.SipServletResponse resp,
java.lang.String failedEntryURI,
SipSubscribeHelper sipSubscribeHelper)
Sets up the response based on the SipException for Xcap-Diff Event |
Methods inherited from class com.ibm.xdms.exception.XdmsException |
---|
createLocalizedMessage, createLocalizedXdmsException, createServerMessage, createServerXdmsException, setupResponse, setupResponse |
Methods inherited from class javax.servlet.ServletException |
---|
getRootCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected int statusCode
protected java.lang.String subcriptionState
public static final java.lang.String PROPERTY_XCAP_ROOT
public java.lang.String DEFAULT_MESSAGE
protected static final java.util.logging.Logger LOGGER
Constructor Detail |
---|
public SipException(int statusCode, java.lang.String subcriptionState)
statusCode
- The SIP status code which should be return in the
responsesubcriptionState
- The subscription state for a SIP NOTIFYpublic SipException(int statusCode, java.lang.String subcriptionState, java.lang.String message)
statusCode
- The SIP status code which should be return in the
responsesubcriptionState
- The subscription state for a SIP NOTIFYmessage
- a String
specifying the text of the
exception messagepublic SipException(int statusCode, java.lang.String subcriptionState, java.lang.String default_message, java.lang.String message)
statusCode
- The SIP status code which should be return in the
responsesubcriptionState
- The subscription state for a SIP NOTIFYmessage
- a String
specifying the text of the
exception messagepublic SipException(int statusCode, java.lang.String subcriptionState, java.lang.String message, java.lang.Throwable rootCause)
statusCode
- The SIP status code which should be return in the
responsesubcriptionState
- The subscription state for a SIP NOTIFYmessage
- a String
specifying the text of the
exception messagerootCause
- the Throwable
exception that interfered
with the XDMS's normal operation, making this XDMS exception
necessarypublic SipException(int statusCode, java.lang.String subcriptionState, java.lang.Throwable rootCause)
statusCode
- The SIP status code which should be return in the
responsesubcriptionState
- The subscription state for a SIP NOTIFYrootCause
- the Throwable
exception that interfered
with the XDMS's normal operation, making this XDMS exception
necessaryMethod Detail |
---|
public int getStatusCode()
public java.lang.String getSubcriptionState()
public void setupResponse(javax.servlet.sip.SipServletRequest req, javax.servlet.sip.SipServletResponse resp, SipSubscribeHelper sipSubscribeHelper) throws java.io.IOException
appUsage
- ApplicationUsagereq
- SipServletRequestresp
- SipServletResponse
java.io.IOException
public void setupResponseXcapDiffEvent(javax.servlet.sip.SipServletRequest req, javax.servlet.sip.SipServletResponse resp, java.lang.String failedEntryURI, SipSubscribeHelper sipSubscribeHelper) throws java.io.IOException
appUsage
- ApplicationUsagereq
- SipServletRequestresp
- SipServletResponse
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |