public class NingAsyncHttpClient extends AbstractHttpClient implements HttpClient
HttpClient using (Ning) async-http-client
under the hood.| Modifier and Type | Method and Description |
|---|---|
protected HttpRequest |
buildRequest(HttpMethod httpMethod,
HttpUrl endpoint)
Build request object.
|
static NingAsyncHttpClient |
defaultAsyncHttpClient(EmbeddedServer<?> server)
Create new http client using internal
http client from async-http-client library.
|
protected void |
doDestroy()
Effectively destroy HTTP Client.
|
boolean |
isDestroyed()
Check that HTTP client has been destroyed.
|
static NingAsyncHttpClient |
newAsyncHttpClient(HttpClientConfiguration configuration,
EmbeddedServer<?> server)
Create new http client using custom configuration.
|
String |
toString() |
destroy, finalize, getConfiguration, getServer, prepareDelete, prepareGet, prepareHead, preparePatch, preparePatch, preparePost, preparePost, preparePut, preparePut, prepareRequestclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitdestroy, getConfiguration, prepareDelete, prepareGet, prepareHead, preparePatch, preparePatch, preparePost, preparePost, preparePut, preparePut, prepareRequestpublic static NingAsyncHttpClient defaultAsyncHttpClient(EmbeddedServer<?> server)
server - Embedded server.NullPointerException - If server is null.public static NingAsyncHttpClient newAsyncHttpClient(HttpClientConfiguration configuration, EmbeddedServer<?> server)
configuration - Client configuration.server - Embedded server.NullPointerException - If server or configuration is null.protected HttpRequest buildRequest(HttpMethod httpMethod, HttpUrl endpoint)
AbstractHttpClientbuildRequest in class AbstractHttpClienthttpMethod - Http method.endpoint - Request url.protected void doDestroy()
AbstractHttpClientdoDestroy in class AbstractHttpClientpublic boolean isDestroyed()
HttpClientisDestroyed in interface HttpClientisDestroyed in class AbstractHttpClienttrue if client is closed, false otherwise.Copyright © 2019. All rights reserved.