public class HttpDOIClientHelper
extends org.restlet.engine.connector.HttpClientHelper
Modifier and Type | Field and Description |
---|---|
private fr.cnes.httpclient.HttpClient |
httpClient
Http client.
|
private static org.apache.logging.log4j.Logger |
LOG
Logger.
|
Constructor and Description |
---|
HttpDOIClientHelper(org.restlet.Client client)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
configure(org.restlet.util.Series<org.restlet.data.Parameter> parameters)
Configures the http client.
|
org.restlet.engine.adapter.ClientCall |
create(org.restlet.Request request) |
fr.cnes.httpclient.HttpClient |
getHttpClient()
Returns the wrapped Apache HTTP Client.
|
long |
getIdleTimeout()
Returns the time in ms beyond which idle connections are eligible for
reaping.
|
String |
getKeyStorePath()
Returns the key store path.
|
String |
getKeyStorePwd()
Returns the key store password.
|
String |
getKeyStoreType()
Returns the key store type.
|
int |
getMaxConnectionsPerHost()
Returns the maximum number of connections that will be created for any
particular host.
|
int |
getMaxRedirects()
Get Max retry.
|
int |
getMaxTotalConnections()
Returns the maximum number of active connections.
|
int |
getRetry()
Get Max retry.
|
long |
getRetryDelay()
Delay between two retries.
|
String |
getTrustStorePath()
Returns the trust store path.
|
String |
getTrustStorePwd()
Returns the trust store password.
|
String |
getTrustStoreType()
Returns the trust store type.
|
boolean |
isDisabledSSL()
Returns true if the SSL is disabled otherwise false.
|
void |
start() |
void |
stop() |
getChunkLength, getHostnameVerifier, getReadTimeout, isAllowUserInteraction, isFollowRedirects, isUseCaches
getAdapter, getSocketConnectTimeoutMs, handle, setAdapter
getConnectorService, getContext, getProtocols, update
private static final org.apache.logging.log4j.Logger LOG
private volatile fr.cnes.httpclient.HttpClient httpClient
public HttpDOIClientHelper(org.restlet.Client client)
client
- clientpublic String getKeyStoreType()
public String getKeyStorePath()
public String getKeyStorePwd()
public String getTrustStoreType()
public String getTrustStorePath()
public String getTrustStorePwd()
public int getMaxConnectionsPerHost()
public int getMaxTotalConnections()
public long getIdleTimeout()
public int getRetry()
public long getRetryDelay()
public int getMaxRedirects()
public boolean isDisabledSSL()
public org.restlet.engine.adapter.ClientCall create(org.restlet.Request request)
create
in class org.restlet.engine.connector.HttpClientHelper
public fr.cnes.httpclient.HttpClient getHttpClient()
private void configure(org.restlet.util.Series<org.restlet.data.Parameter> parameters)
parameters
- parameterspublic void start() throws Exception
start
in class org.restlet.engine.connector.HttpClientHelper
Exception
Copyright © 2017–2020 CNES. All rights reserved.