public class AsyncCompletionHandler
extends org.asynchttpclient.AsyncCompletionHandlerBase
Constructor and Description |
---|
AsyncCompletionHandler(AsyncHandler<RestResponse> responseHandler) |
Modifier and Type | Method and Description |
---|---|
org.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 |
onThrowable(java.lang.Throwable t) |
onCompleted, onContentWriteProgress, onContentWritten, onHeadersWritten, onTrailingHeadersReceived
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onConnectionOffer, onConnectionPoolAttempt, onConnectionPooled, onHostnameResolutionAttempt, onHostnameResolutionFailure, onHostnameResolutionSuccess, onRequestSend, onRetry, onTcpConnectAttempt, onTcpConnectFailure, onTcpConnectSuccess, onTlsHandshakeAttempt, onTlsHandshakeFailure, onTlsHandshakeSuccess
public AsyncCompletionHandler(AsyncHandler<RestResponse> responseHandler)
public org.asynchttpclient.AsyncHandler.State onHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers) throws java.lang.Exception
onHeadersReceived
in interface org.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
onHeadersReceived
in class org.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
java.lang.Exception
public org.asynchttpclient.AsyncHandler.State onBodyPartReceived(org.asynchttpclient.HttpResponseBodyPart content) throws java.lang.Exception
onBodyPartReceived
in interface org.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
onBodyPartReceived
in class org.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
java.lang.Exception
public org.asynchttpclient.AsyncHandler.State onStatusReceived(org.asynchttpclient.HttpResponseStatus status) throws java.lang.Exception
onStatusReceived
in interface org.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
onStatusReceived
in class org.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
java.lang.Exception
public org.asynchttpclient.Response onCompleted(org.asynchttpclient.Response response) throws java.lang.Exception
onCompleted
in class org.asynchttpclient.AsyncCompletionHandlerBase
java.lang.Exception
public void onThrowable(java.lang.Throwable t)
onThrowable
in interface org.asynchttpclient.AsyncHandler<org.asynchttpclient.Response>
onThrowable
in class org.asynchttpclient.AsyncCompletionHandler<org.asynchttpclient.Response>
Copyright © 2021. All Rights Reserved.