|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ning.http.client.webdav.WebDavCompletionHandlerBase<T>
T
- public abstract class WebDavCompletionHandlerBase<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 | |
---|---|
WebDavCompletionHandlerBase()
|
Method Summary | |
---|---|
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(HttpResponseHeaders headers)
Invoked as soon as the HTTP headers has been received. |
AsyncHandler.STATE |
onStatusReceived(HttpResponseStatus status)
Invoked as soon as the HTTP status line has been received |
void |
onThrowable(Throwable t)
Invoked when an unexpected exception occurs during the processing of the response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebDavCompletionHandlerBase()
Method Detail |
---|
public final AsyncHandler.STATE onBodyPartReceived(HttpResponseBodyPart content) throws Exception
onBodyPartReceived
in interface AsyncHandler<T>
content
- response's body part.
AsyncHandler.STATE
telling to CONTINUE or ABORT the current processing.
Exception
- if something wrong happenspublic final AsyncHandler.STATE onStatusReceived(HttpResponseStatus status) throws Exception
onStatusReceived
in interface AsyncHandler<T>
status
- the status code and test of the response
AsyncHandler.STATE
telling to CONTINUE or ABORT the current processing.
Exception
- if something wrong happenspublic final AsyncHandler.STATE onHeadersReceived(HttpResponseHeaders headers) throws Exception
onHeadersReceived
in interface AsyncHandler<T>
headers
- the HTTP headers.
AsyncHandler.STATE
telling to CONTINUE or ABORT the current processing.
Exception
- if something wrong happenspublic final T onCompleted() throws Exception
onCompleted
in interface AsyncHandler<T>
Future
Exception
- if something wrong happenspublic void onThrowable(Throwable t)
onThrowable
in interface AsyncHandler<T>
t
- a Throwable
public abstract T onCompleted(WebDavResponse response) throws Exception
response
- The Response
Future
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |