public class HttpAutomationClient extends AsyncAutomationClient
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() |
void |
setProxy(String host,
int port) |
void |
shutdown()
Cleanup any resources held by this client.
|
asyncExec
getAdapter, getBaseUrl, getRequestInterceptor, getSession, getSession, getSession, getSession, getSession, getSession, getSession, getSession, registerAdapter, registerPojoMarshaller, setBasicAuth, setRequestInterceptor, setSharedRegistryExpirationDelay
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 void setProxy(String host, int port)
public org.apache.http.client.HttpClient http()
public void shutdown()
AutomationClient
shutdown
in interface AutomationClient
shutdown
in class AsyncAutomationClient
public RestClient getRestClient()
RestClient
associated to this
HttpAutomationClient
.Copyright © 2013 Nuxeo SA. All Rights Reserved.