Package com.persequor.extension.rest
Interface AdditionalHttpClientConfig
- All Superinterfaces:
IRequestConfig
- All Known Implementing Classes:
DefaultAdditionalHttpConfig
Additional configuration for Http client, it should provide all configuration which is independent from making requests
-
Method Summary
Modifier and TypeMethodDescriptionboolean
This indicates if HTTP client should throw exception if it encounters status code other than 2**void
setThrowExceptionOnRequestError
(boolean throwExceptionOnRequestError) Sets iof the client should throw exceptions when there is error status code in the responseMethods inherited from interface com.persequor.extension.rest.IRequestConfig
getConnectTimeout, getReadTimeout
-
Method Details
-
isThrowExceptionOnRequestError
boolean isThrowExceptionOnRequestError()This indicates if HTTP client should throw exception if it encounters status code other than 2**- Returns:
- boolean if the client should throw an exception on error
-
setThrowExceptionOnRequestError
void setThrowExceptionOnRequestError(boolean throwExceptionOnRequestError) Sets iof the client should throw exceptions when there is error status code in the response- Parameters:
throwExceptionOnRequestError
- if the client should throw an exception on error
-