public abstract class DefaultAsyncHandler<T>
extends java.lang.Object
implements com.ning.http.client.AsyncHandler<T>
| Modifier and Type | Field and Description |
|---|---|
protected FileBackedOutputStream |
body |
protected int |
status |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultAsyncHandler(boolean bodyExpected) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
getResult(int status,
com.ning.http.client.HttpResponseHeaders headers,
FileBackedOutputStream body) |
com.ning.http.client.AsyncHandler.STATE |
onBodyPartReceived(com.ning.http.client.HttpResponseBodyPart bodyPart) |
T |
onCompleted() |
com.ning.http.client.AsyncHandler.STATE |
onHeadersReceived(com.ning.http.client.HttpResponseHeaders headers) |
com.ning.http.client.AsyncHandler.STATE |
onStatusReceived(com.ning.http.client.HttpResponseStatus responseStatus) |
void |
onThrowable(java.lang.Throwable t) |
com.ning.http.client.AsyncHttpClient.BoundRequestBuilder |
prepare(com.ning.http.client.AsyncHttpClient.BoundRequestBuilder rb) |
protected final FileBackedOutputStream body
protected int status
public void onThrowable(java.lang.Throwable t)
onThrowable in interface com.ning.http.client.AsyncHandler<T>public com.ning.http.client.AsyncHandler.STATE onBodyPartReceived(com.ning.http.client.HttpResponseBodyPart bodyPart)
throws java.lang.Exception
onBodyPartReceived in interface com.ning.http.client.AsyncHandler<T>java.lang.Exceptionpublic com.ning.http.client.AsyncHandler.STATE onStatusReceived(com.ning.http.client.HttpResponseStatus responseStatus)
throws java.lang.Exception
onStatusReceived in interface com.ning.http.client.AsyncHandler<T>java.lang.Exceptionpublic com.ning.http.client.AsyncHandler.STATE onHeadersReceived(com.ning.http.client.HttpResponseHeaders headers)
throws java.lang.Exception
onHeadersReceived in interface com.ning.http.client.AsyncHandler<T>java.lang.Exceptionpublic T onCompleted() throws java.lang.Exception
onCompleted in interface com.ning.http.client.AsyncHandler<T>java.lang.Exceptionprotected abstract T getResult(int status, com.ning.http.client.HttpResponseHeaders headers, FileBackedOutputStream body)
public com.ning.http.client.AsyncHttpClient.BoundRequestBuilder prepare(com.ning.http.client.AsyncHttpClient.BoundRequestBuilder rb)
Copyright © 2021. All Rights Reserved.