|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProvider
public class GrizzlyAsyncHttpProvider
A Grizzly 2.0-based implementation of AsyncHttpProvider.
| Constructor Summary | |
|---|---|
GrizzlyAsyncHttpProvider(AsyncHttpClientConfig clientConfig)
|
|
| Method Summary | ||
|---|---|---|
void |
close()
Close the current underlying TCP/HTTP connection. |
|
protected
|
execute(org.glassfish.grizzly.Connection c,
Request request,
AsyncHandler<T> handler,
GrizzlyResponseFuture<T> future)
|
|
|
execute(Request request,
AsyncHandler<T> handler)
Execute the request and invoke the AsyncHandler when the response arrive. |
|
protected void |
initializeTransport(AsyncHttpClientConfig clientConfig)
|
|
static void |
main(String[] args)
|
|
Response |
prepareResponse(HttpResponseStatus status,
HttpResponseHeaders headers,
List<HttpResponseBodyPart> bodyParts)
Prepare a Response |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrizzlyAsyncHttpProvider(AsyncHttpClientConfig clientConfig)
| Method Detail |
|---|
public <T> ListenableFuture<T> execute(Request request,
AsyncHandler<T> handler)
throws IOException
AsyncHandler when the response arrive.
execute in interface AsyncHttpProviderhandler - an instance of AsyncHandler
ListenableFuture of Type T.
IOExceptionpublic void close()
close in interface AsyncHttpProvider
public Response prepareResponse(HttpResponseStatus status,
HttpResponseHeaders headers,
List<HttpResponseBodyPart> bodyParts)
Response
prepareResponse in interface AsyncHttpProviderstatus - HttpResponseStatusheaders - HttpResponseHeadersbodyParts - list of HttpResponseBodyPart
Response
protected <T> ListenableFuture<T> execute(org.glassfish.grizzly.Connection c,
Request request,
AsyncHandler<T> handler,
GrizzlyResponseFuture<T> future)
throws IOException
IOExceptionprotected void initializeTransport(AsyncHttpClientConfig clientConfig)
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||