|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wink.client.internal.handlers.AbstractConnectionHandler org.apache.wink.client.AsyncHttpClientConnectionHandler
public class AsyncHttpClientConnectionHandler
Extends AbstractConnectionHandler
and uses AsyncHttpClient
to perform HTTP request execution.
Constructor Summary | |
---|---|
AsyncHttpClientConnectionHandler(com.ning.http.client.AsyncHttpClient asyncHttpClient)
|
Method Summary | |
---|---|
void |
close()
|
ClientResponse |
handle(ClientRequest request,
HandlerContext context)
This method is invoked for every request invocation to allow the handler to perform custom actions during the invocation. |
Methods inherited from class org.apache.wink.client.internal.handlers.AbstractConnectionHandler |
---|
adaptInputStream, adaptOutputStream, writeEntity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncHttpClientConnectionHandler(com.ning.http.client.AsyncHttpClient asyncHttpClient)
Method Detail |
---|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
public ClientResponse handle(ClientRequest request, HandlerContext context) throws java.lang.Exception
ClientHandler
handle
in interface ClientHandler
request
- a modifiable ClientRequest
containing the request
detailscontext
- the handler context
ClientResponse
instance containing the response details
java.lang.Exception
- any exception can be thrown by a handler and it will be
caught by the underlying client implementation and wrapped in
a ClientRuntimeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |