Class AsyncCompletionHandler
java.lang.Object
org.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
org.asynchttpclient.AsyncCompletionHandlerBase
net.bluemind.core.rest.http.internal.AsyncCompletionHandler
- All Implemented Interfaces:
org.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
,org.asynchttpclient.handler.ProgressAsyncHandler<org.asynchttpclient.Response>
public class AsyncCompletionHandler
extends org.asynchttpclient.AsyncCompletionHandlerBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.asynchttpclient.AsyncHandler
org.asynchttpclient.AsyncHandler.State
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.asynchttpclient.AsyncHandler.State
onBodyPartReceived
(org.asynchttpclient.HttpResponseBodyPart content) org.asynchttpclient.Response
onCompleted
(org.asynchttpclient.Response response) org.asynchttpclient.AsyncHandler.State
onHeadersReceived
(io.netty.handler.codec.http.HttpHeaders headers) org.asynchttpclient.AsyncHandler.State
onStatusReceived
(org.asynchttpclient.HttpResponseStatus status) void
Methods inherited from class org.asynchttpclient.AsyncCompletionHandler
onCompleted, onContentWriteProgress, onContentWritten, onHeadersWritten, onTrailingHeadersReceived
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.asynchttpclient.AsyncHandler
onConnectionOffer, onConnectionPoolAttempt, onConnectionPooled, onHostnameResolutionAttempt, onHostnameResolutionFailure, onHostnameResolutionSuccess, onRequestSend, onRetry, onTcpConnectAttempt, onTcpConnectFailure, onTcpConnectSuccess, onTlsHandshakeAttempt, onTlsHandshakeFailure, onTlsHandshakeSuccess
-
Constructor Details
-
AsyncCompletionHandler
-
-
Method Details
-
onHeadersReceived
public org.asynchttpclient.AsyncHandler.State onHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers) throws Exception - Specified by:
onHeadersReceived
in interfaceorg.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
- Overrides:
onHeadersReceived
in classorg.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
- Throws:
Exception
-
onBodyPartReceived
public org.asynchttpclient.AsyncHandler.State onBodyPartReceived(org.asynchttpclient.HttpResponseBodyPart content) throws Exception - Specified by:
onBodyPartReceived
in interfaceorg.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
- Overrides:
onBodyPartReceived
in classorg.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
- Throws:
Exception
-
onStatusReceived
public org.asynchttpclient.AsyncHandler.State onStatusReceived(org.asynchttpclient.HttpResponseStatus status) throws Exception - Specified by:
onStatusReceived
in interfaceorg.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
- Overrides:
onStatusReceived
in classorg.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
- Throws:
Exception
-
onCompleted
public org.asynchttpclient.Response onCompleted(org.asynchttpclient.Response response) throws Exception - Overrides:
onCompleted
in classorg.asynchttpclient.AsyncCompletionHandlerBase
- Throws:
Exception
-
onThrowable
- Specified by:
onThrowable
in interfaceorg.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
- Overrides:
onThrowable
in classorg.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
-