Package com.ning.http.client.webdav
Class WebDavCompletionHandlerBase<T>
java.lang.Object
com.ning.http.client.webdav.WebDavCompletionHandlerBase<T>
- Type Parameters:
T-
- All Implemented Interfaces:
AsyncHandler<T>
Simple
AsyncHandler that add support for WebDav's response manipulation.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ning.http.client.AsyncHandler
AsyncHandler.STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal AsyncHandler.STATEonBodyPartReceived(HttpResponseBodyPart content) Invoked as soon as some response body part are received.final TInvoked once the HTTP response processing is finished.abstract TonCompleted(WebDavResponse response) Invoked once the HTTP response has been fully read.final AsyncHandler.STATEonHeadersReceived(HttpResponseHeaders headers) Invoked as soon as the HTTP headers has been received.final AsyncHandler.STATEonStatusReceived(HttpResponseStatus status) Invoked as soon as the HTTP status line has been receivedvoidInvoked when an unexpected exception occurs during the processing of the response.
-
Constructor Details
-
WebDavCompletionHandlerBase
public WebDavCompletionHandlerBase()
-
-
Method Details
-
onBodyPartReceived
Description copied from interface:AsyncHandlerInvoked as soon as some response body part are received. Could be invoked many times.- Specified by:
onBodyPartReceivedin interfaceAsyncHandler<T>- Parameters:
content- response's body part.- Returns:
- a
AsyncHandler.STATEtelling to CONTINUE or ABORT the current processing. - Throws:
Exception- if something wrong happens
-
onStatusReceived
Description copied from interface:AsyncHandlerInvoked as soon as the HTTP status line has been received- Specified by:
onStatusReceivedin interfaceAsyncHandler<T>- Parameters:
status- the status code and test of the response- Returns:
- a
AsyncHandler.STATEtelling to CONTINUE or ABORT the current processing. - Throws:
Exception- if something wrong happens
-
onHeadersReceived
Description copied from interface:AsyncHandlerInvoked as soon as the HTTP headers has been received. Can potentially be invoked more than once if a broken server sent trailing headers.- Specified by:
onHeadersReceivedin interfaceAsyncHandler<T>- Parameters:
headers- the HTTP headers.- Returns:
- a
AsyncHandler.STATEtelling to CONTINUE or ABORT the current processing. - Throws:
Exception- if something wrong happens
-
onCompleted
Description copied from interface:AsyncHandlerInvoked once the HTTP response processing is finished. Gets always invoked as last callback method.- Specified by:
onCompletedin interfaceAsyncHandler<T>- Returns:
- T Value that will be returned by the associated
Future - Throws:
Exception- if something wrong happens
-
onThrowable
Description copied from interface:AsyncHandlerInvoked when an unexpected exception occurs during the processing of the response. The exception may have been produced by implementation of onXXXReceived method invocation.- Specified by:
onThrowablein interfaceAsyncHandler<T>- Parameters:
t- aThrowable
-
onCompleted
Invoked once the HTTP response has been fully read.
-