com.ibm.di.connector.maximo.exception
Class MxConnHttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.di.connector.maximo.exception.MxConnectorException
com.ibm.di.connector.maximo.exception.MxConnIOException
com.ibm.di.connector.maximo.exception.MxConnHttpException
All Implemented Interfaces: java.io.Serializable
public class MxConnHttpException extends MxConnIOException
TPAE IF Connector's HTTP exception. Thrown to indicate that the HTTP server
returns a response code different than 200 (HTTP OK).
Since:
TDI 7.1
See Also: Serialized Form
Constructor Summary
MxConnHttpException (java.lang.String msg,
java.lang.String targetUrl,
int responseCode,
java.lang.String responseMessage,
java.lang.String body)
Constructs a new MxConnHttpException
.
Method Summary
java.lang.String
getBody ()
Returns the body content of the HTTP response message.
int
getResponseCode ()
Returns the HTTP response code.
java.lang.String
getResponseMessage ()
Returns the HTTP response message.
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
MxConnHttpException
public MxConnHttpException (java.lang.String msg,
java.lang.String targetUrl,
int responseCode,
java.lang.String responseMessage,
java.lang.String body)
Constructs a new MxConnHttpException
.
Parameters: targetUrl
- target URLresponseCode
- HTTP response code
getResponseCode
public final int getResponseCode ()
Returns the HTTP response code.
Returns: HTTP response code
getResponseMessage
public final java.lang.String getResponseMessage ()
Returns the HTTP response message.
Returns: HTTP response message
getBody
public final java.lang.String getBody ()
Returns the body content of the HTTP response message.
Returns: body content of the HTTP response message