T - the result typepublic abstract class WebDavCompletionHandlerBase<T> extends java.lang.Object implements AsyncHandler<T>
AsyncHandler that add support for WebDav's response manipulation.AsyncHandler.State| Constructor and Description |
|---|
WebDavCompletionHandlerBase() |
| Modifier and Type | Method and Description |
|---|---|
AsyncHandler.State |
onBodyPartReceived(HttpResponseBodyPart content)
Invoked as soon as some response body part are received.
|
T |
onCompleted()
Invoked once the HTTP response processing is finished.
|
abstract T |
onCompleted(WebDavResponse response)
Invoked once the HTTP response has been fully read.
|
AsyncHandler.State |
onHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers)
Invoked as soon as the HTTP headers have been received.
|
AsyncHandler.State |
onStatusReceived(HttpResponseStatus status)
Invoked as soon as the HTTP status line has been received
|
void |
onThrowable(java.lang.Throwable t)
Invoked when an unexpected exception occurs during the processing of the response.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonConnectionOffer, onConnectionPoolAttempt, onConnectionPooled, onHostnameResolutionAttempt, onHostnameResolutionFailure, onHostnameResolutionSuccess, onRequestSend, onRetry, onTcpConnectAttempt, onTcpConnectFailure, onTcpConnectSuccess, onTlsHandshakeAttempt, onTlsHandshakeFailure, onTlsHandshakeSuccess, onTrailingHeadersReceivedpublic final AsyncHandler.State onBodyPartReceived(HttpResponseBodyPart content)
onBodyPartReceived in interface AsyncHandler<T>content - response's body part.AsyncHandler.State telling to CONTINUE or ABORT the current processing. Aborting will also close the connection.public final AsyncHandler.State onStatusReceived(HttpResponseStatus status)
onStatusReceived in interface AsyncHandler<T>status - the status code and test of the responseAsyncHandler.State telling to CONTINUE or ABORT the current processing.public final AsyncHandler.State onHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers)
onHeadersReceived in interface AsyncHandler<T>headers - the HTTP headers.AsyncHandler.State telling to CONTINUE or ABORT the current processing.public final T onCompleted() throws java.lang.Exception
onCompleted in interface AsyncHandler<T>Futurejava.lang.Exception - if something wrong happenspublic void onThrowable(java.lang.Throwable t)
onThrowable in interface AsyncHandler<T>t - a Throwablepublic abstract T onCompleted(WebDavResponse response) throws java.lang.Exception
response - The ResponseFuturejava.lang.Exception - if something wrong happensCopyright © 2019. All Rights Reserved.