public abstract class ResponseHandler
extends java.lang.Object
implements org.asynchttpclient.AsyncHandler<io.datatree.Tree>
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.handler.codec.http.HttpHeaders |
httpHeaders |
protected RequestParams |
params |
protected int |
status |
| Modifier | Constructor and Description |
|---|---|
protected |
ResponseHandler(RequestParams params) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStatusAndHeaders(io.datatree.Tree rsp) |
abstract org.asynchttpclient.AsyncHandler.State |
onBodyPartReceived(org.asynchttpclient.HttpResponseBodyPart bodyPart) |
abstract io.datatree.Tree |
onCompleted() |
org.asynchttpclient.AsyncHandler.State |
onHeadersReceived(io.netty.handler.codec.http.HttpHeaders httpHeaders) |
org.asynchttpclient.AsyncHandler.State |
onStatusReceived(org.asynchttpclient.HttpResponseStatus responseStatus) |
void |
onThrowable(java.lang.Throwable t) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonConnectionOffer, onConnectionPoolAttempt, onConnectionPooled, onHostnameResolutionAttempt, onHostnameResolutionFailure, onHostnameResolutionSuccess, onRequestSend, onRetry, onTcpConnectAttempt, onTcpConnectFailure, onTcpConnectSuccess, onTlsHandshakeAttempt, onTlsHandshakeFailure, onTlsHandshakeSuccess, onTrailingHeadersReceivedprotected final RequestParams params
protected volatile int status
protected volatile io.netty.handler.codec.http.HttpHeaders httpHeaders
protected ResponseHandler(RequestParams params)
public org.asynchttpclient.AsyncHandler.State onStatusReceived(org.asynchttpclient.HttpResponseStatus responseStatus)
throws java.lang.Exception
onStatusReceived in interface org.asynchttpclient.AsyncHandler<io.datatree.Tree>java.lang.Exceptionpublic org.asynchttpclient.AsyncHandler.State onHeadersReceived(io.netty.handler.codec.http.HttpHeaders httpHeaders)
throws java.lang.Exception
onHeadersReceived in interface org.asynchttpclient.AsyncHandler<io.datatree.Tree>java.lang.Exceptionpublic void onThrowable(java.lang.Throwable t)
onThrowable in interface org.asynchttpclient.AsyncHandler<io.datatree.Tree>protected void addStatusAndHeaders(io.datatree.Tree rsp)
public abstract org.asynchttpclient.AsyncHandler.State onBodyPartReceived(org.asynchttpclient.HttpResponseBodyPart bodyPart)
throws java.lang.Exception
onBodyPartReceived in interface org.asynchttpclient.AsyncHandler<io.datatree.Tree>java.lang.Exceptionpublic abstract io.datatree.Tree onCompleted()
throws java.lang.Exception
onCompleted in interface org.asynchttpclient.AsyncHandler<io.datatree.Tree>java.lang.Exception