Class 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 new MxConnHttpException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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​(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 URL
        responseCode - 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