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 SummaryModifier and TypeMethodDescriptionbooleanThis indicates if HTTP client should throw exception if it encounters status code other than 2**voidsetThrowExceptionOnRequestError(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.IRequestConfiggetConnectTimeout, getReadTimeout
- 
Method Details- 
isThrowExceptionOnRequestErrorboolean 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
 
- 
setThrowExceptionOnRequestErrorvoid 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
 
 
-