public abstract class DefaultAsyncHandler<T>
extends java.lang.Object
implements org.asynchttpclient.AsyncHandler<T>
Modifier and Type | Field and Description |
---|---|
protected FileBackedOutputStream |
body |
protected int |
status |
Modifier | Constructor and Description |
---|---|
protected |
DefaultAsyncHandler(boolean bodyExpected) |
protected |
DefaultAsyncHandler(java.lang.String stackInfos,
boolean bodyExpected) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
getResult(int status,
io.netty.handler.codec.http.HttpHeaders headers,
FileBackedOutputStream body) |
org.asynchttpclient.AsyncHandler.State |
onBodyPartReceived(org.asynchttpclient.HttpResponseBodyPart bodyPart) |
T |
onCompleted() |
org.asynchttpclient.AsyncHandler.State |
onHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers) |
org.asynchttpclient.AsyncHandler.State |
onStatusReceived(org.asynchttpclient.HttpResponseStatus responseStatus) |
void |
onThrowable(java.lang.Throwable t) |
org.asynchttpclient.BoundRequestBuilder |
prepare(org.asynchttpclient.BoundRequestBuilder rb) |
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, onTrailingHeadersReceived
protected final FileBackedOutputStream body
protected int status
protected DefaultAsyncHandler(boolean bodyExpected)
protected DefaultAsyncHandler(java.lang.String stackInfos, boolean bodyExpected)
public void onThrowable(java.lang.Throwable t)
onThrowable
in interface org.asynchttpclient.AsyncHandler<T>
public org.asynchttpclient.AsyncHandler.State onBodyPartReceived(org.asynchttpclient.HttpResponseBodyPart bodyPart) throws java.lang.Exception
onBodyPartReceived
in interface org.asynchttpclient.AsyncHandler<T>
java.lang.Exception
public org.asynchttpclient.AsyncHandler.State onStatusReceived(org.asynchttpclient.HttpResponseStatus responseStatus) throws java.lang.Exception
onStatusReceived
in interface org.asynchttpclient.AsyncHandler<T>
java.lang.Exception
public org.asynchttpclient.AsyncHandler.State onHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers) throws java.lang.Exception
onHeadersReceived
in interface org.asynchttpclient.AsyncHandler<T>
java.lang.Exception
public T onCompleted() throws java.lang.Exception
onCompleted
in interface org.asynchttpclient.AsyncHandler<T>
java.lang.Exception
protected abstract T getResult(int status, io.netty.handler.codec.http.HttpHeaders headers, FileBackedOutputStream body)
public org.asynchttpclient.BoundRequestBuilder prepare(org.asynchttpclient.BoundRequestBuilder rb)
Copyright © 2021. All Rights Reserved.