public class HttpAutomationClient extends AsyncAutomationClient
Modifier and Type | Field and Description |
---|---|
protected org.apache.http.client.HttpClient |
http |
protected int |
httpConnectionTimeout |
async, asyncAwaitTerminationTimeout
adapterManager, registry, requestInterceptor, url
Constructor and Description |
---|
HttpAutomationClient(String url)
Instantiates a new
HttpAutomationClient with no timeout for the HTTP connection and the default timeout
for the wait of the asynchronous thread pool termination: 2 seconds. |
HttpAutomationClient(String url,
int httpConnectionTimeout)
Instantiates a new
HttpAutomationClient with the given timeout in milliseconds for the HTTP connection
and the default timeout for the wait of the asynchronous thread pool termination: 2 seconds. |
HttpAutomationClient(String url,
int httpConnectionTimeout,
long asyncAwaitTerminationTimeout)
Instantiates a new
HttpAutomationClient with the given timeout in milliseconds for the HTTP connection
and the given timeout in milliseconds for the wait of the asynchronous thread pool termination. |
Modifier and Type | Method and Description |
---|---|
RestClient |
getRestClient()
Returns the
RestClient associated to this
HttpAutomationClient . |
org.apache.http.client.HttpClient |
http() |
protected Connector |
newConnector() |
void |
setProxy(String host,
int port) |
void |
shutdown()
Cleanup any resources held by this client.
|
asyncExec
connect, createSession, getAdapter, getBaseUrl, getRegistry, getRequestInterceptor, getSession, getSession, getSession, getSession, getSession, getSession, login, registerAdapter, registerPojoMarshaller, setBasicAuth, setRequestInterceptor, setSharedRegistryExpirationDelay
protected org.apache.http.client.HttpClient http
protected int httpConnectionTimeout
public HttpAutomationClient(String url)
HttpAutomationClient
with no timeout for the HTTP connection and the default timeout
for the wait of the asynchronous thread pool termination: 2 seconds.public HttpAutomationClient(String url, int httpConnectionTimeout)
HttpAutomationClient
with the given timeout in milliseconds for the HTTP connection
and the default timeout for the wait of the asynchronous thread pool termination: 2 seconds.public HttpAutomationClient(String url, int httpConnectionTimeout, long asyncAwaitTerminationTimeout)
HttpAutomationClient
with the given timeout in milliseconds for the HTTP connection
and the given timeout in milliseconds for the wait of the asynchronous thread pool termination.public org.apache.http.client.HttpClient http()
public void shutdown()
AutomationClient
shutdown
in interface AutomationClient
shutdown
in class AsyncAutomationClient
protected Connector newConnector()
newConnector
in class AbstractAutomationClient
public RestClient getRestClient()
RestClient
associated to this
HttpAutomationClient
.Copyright © 2018 Nuxeo. All rights reserved.