public class GrizzlyHttpClient extends Object implements HttpClient
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
GrizzlyHttpClient.RequestConfigurer |
| Constructor and Description |
|---|
GrizzlyHttpClient(HttpClientConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
protected com.ning.http.client.ProxyServer |
buildProxy(ProxyConfig proxyConfig) |
protected com.ning.http.client.RequestBuilder |
createRequestBuilder(HttpRequest request,
GrizzlyHttpClient.RequestConfigurer requestConfigurer) |
protected void |
doConfigureProxy(com.ning.http.client.AsyncHttpClientConfig.Builder builder,
ProxyConfig proxyConfig) |
HttpAuthentication |
getDefaultAuthentication()
Returns the default
HttpAuthentication to be used on requests. |
UriParameters |
getDefaultUriParameters()
Returns the default parameters for the
HttpRequest URI. |
protected ProxyConfig |
getProxyConfig() |
protected void |
populateHeaders(HttpRequest request,
com.ning.http.client.RequestBuilder builder) |
HttpResponse |
send(HttpRequest request,
int responseTimeout,
boolean followRedirects,
HttpRequestAuthentication authentication)
Sends a HttpRequest blocking the current thread until a response is available for the request times out.
|
void |
start() |
void |
stop() |
public GrizzlyHttpClient(HttpClientConfiguration config)
public void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionprotected void doConfigureProxy(com.ning.http.client.AsyncHttpClientConfig.Builder builder,
ProxyConfig proxyConfig)
protected final com.ning.http.client.ProxyServer buildProxy(ProxyConfig proxyConfig)
public UriParameters getDefaultUriParameters()
HttpClientHttpRequest URI.getDefaultUriParameters in interface HttpClientpublic HttpAuthentication getDefaultAuthentication()
HttpClientHttpAuthentication to be used on requests.getDefaultAuthentication in interface HttpClientpublic HttpResponse send(HttpRequest request, int responseTimeout, boolean followRedirects, HttpRequestAuthentication authentication) throws IOException, TimeoutException
HttpClientsend in interface HttpClientIOExceptionTimeoutExceptionprotected com.ning.http.client.RequestBuilder createRequestBuilder(HttpRequest request, GrizzlyHttpClient.RequestConfigurer requestConfigurer) throws IOException
IOExceptionprotected void populateHeaders(HttpRequest request, com.ning.http.client.RequestBuilder builder)
protected ProxyConfig getProxyConfig()
public void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.