public class ScimHttpClient extends Object
CloseableHttpClientsProxyHelper)SSLContext. Depends on the specific declarated bean provided by the developer| Constructor and Description |
|---|
ScimHttpClient() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.impl.client.CloseableHttpClient |
getHttpClient()
this method generates a http-client instance and will set the ssl-context
|
org.apache.http.client.config.RequestConfig |
getRequestConfig()
will configure the apache http-client
|
HttpResponse |
sendRequest(org.apache.http.client.methods.HttpUriRequest uriRequest)
this method will send the request with the apache http client and will also handle
IOExceptions and
wrap them into IORuntimeExceptions |
public org.apache.http.impl.client.CloseableHttpClient getHttpClient()
public org.apache.http.client.config.RequestConfig getRequestConfig()
public HttpResponse sendRequest(org.apache.http.client.methods.HttpUriRequest uriRequest)
IOExceptions and
wrap them into IORuntimeExceptionsuriRequest - the request that should be sendSSLHandshakeRuntimeException - in case that the server represented a certificate that is not trustedConnectRuntimeException - happens if the server does not respond (wrong URL wrong port or something
else)ConnectTimeoutRuntimeException - if the server took too long to establish a connectionSocketTimeoutRuntimeException - if the server took too long to send the responseIORuntimeException - base exception that represents all previous mentioned exceptionsCopyright © 2020. All rights reserved.