Class DefaultAdditionalHttpConfig

java.lang.Object
com.persequor.extension.rest.RequestConfig
com.persequor.extension.rest.DefaultAdditionalHttpConfig
All Implemented Interfaces:
AdditionalHttpClientConfig, IRequestConfig

public final class DefaultAdditionalHttpConfig extends RequestConfig implements AdditionalHttpClientConfig
Additional configuration for Http client,
  • Constructor Details

    • DefaultAdditionalHttpConfig

      public DefaultAdditionalHttpConfig()
  • Method Details

    • isThrowExceptionOnRequestError

      public boolean isThrowExceptionOnRequestError()
      Description copied from interface: AdditionalHttpClientConfig
      This indicates if HTTP client should throw exception if it encounters status code other than 2**
      Specified by:
      isThrowExceptionOnRequestError in interface AdditionalHttpClientConfig
      Returns:
      boolean if the client should throw an exception on error
    • setThrowExceptionOnRequestError

      public void setThrowExceptionOnRequestError(boolean throwExceptionOnRequestError)
      Description copied from interface: AdditionalHttpClientConfig
      Sets iof the client should throw exceptions when there is error status code in the response
      Specified by:
      setThrowExceptionOnRequestError in interface AdditionalHttpClientConfig
      Parameters:
      throwExceptionOnRequestError - if the client should throw an exception on error