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
Constructors Constructor Description MxConnHttpException(java.lang.String msg, java.lang.String targetUrl, int responseCode, java.lang.String responseMessage, java.lang.String body)Constructs a newMxConnHttpException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBody()Returns the body content of the HTTP response message.intgetResponseCode()Returns the HTTP response code.java.lang.StringgetResponseMessage()Returns the HTTP response message.-
Methods inherited from class com.ibm.di.connector.maximo.exception.MxConnIOException
getTargetUrl
-
Methods inherited from class com.ibm.di.connector.maximo.exception.MxConnectorException
getMsgArgs
-
-
-
-
Constructor Detail
-
MxConnHttpException
public MxConnHttpException(java.lang.String msg, java.lang.String targetUrl, int responseCode, java.lang.String responseMessage, java.lang.String body)Constructs a newMxConnHttpException.- Parameters:
targetUrl- target URLresponseCode- HTTP response code
-
-
Method Detail
-
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
-
-