public class GrizzlyHttpClient extends Object implements HttpClient
PHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
GrizzlyHttpClient(GrizzlyHttpClientConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialise() |
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 |
send(HttpRequest request,
int responseTimeout,
boolean followRedirects,
HttpRequestAuthentication authentication,
CompletionHandler<HttpResponse,Exception> completionHandler,
WorkManager workManager)
Sends a HttpRequest without blocking the current thread.
|
void |
stop() |
public GrizzlyHttpClient(GrizzlyHttpClientConfiguration config)
public void initialise()
throws InitialisationException
initialise in interface InitialisableInitialisationExceptionpublic HttpResponse send(HttpRequest request, int responseTimeout, boolean followRedirects, HttpRequestAuthentication authentication) throws IOException, TimeoutException
HttpClientsend in interface HttpClientIOExceptionTimeoutExceptionpublic void send(HttpRequest request, int responseTimeout, boolean followRedirects, HttpRequestAuthentication authentication, CompletionHandler<HttpResponse,Exception> completionHandler, WorkManager workManager)
HttpClientsend in interface HttpClientCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.