com.ibm.di.connector.maximo.exception
Class MxConnHttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.di.connector.maximo.exception.MxConnectorException
              extended by com.ibm.di.connector.maximo.exception.MxConnIOException
                  extended by com.ibm.di.connector.maximo.exception.MxConnHttpException
All Implemented Interfaces:
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(String msg, String targetUrl, int responseCode, String responseMessage, String body)
          Constructs a new MxConnHttpException.
 
Method Summary
 String getBody()
          Returns the body content of the HTTP response message.
 int getResponseCode()
          Returns the HTTP response code.
 String getResponseMessage()
          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
 
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
 

Constructor Detail

MxConnHttpException

public MxConnHttpException(String msg,
                           String targetUrl,
                           int responseCode,
                           String responseMessage,
                           String body)
Constructs a new MxConnHttpException.

Parameters:
targetUrl - target URL
responseCode - HTTP response code
Method Detail

getResponseCode

public final int getResponseCode()
Returns the HTTP response code.

Returns:
HTTP response code

getResponseMessage

public final String getResponseMessage()
Returns the HTTP response message.

Returns:
HTTP response message

getBody

public final String getBody()
Returns the body content of the HTTP response message.

Returns:
body content of the HTTP response message