ccc.client.core
Interface ResponseHandler

All Known Implementing Classes:
CancelActionAction.ActionCancelledCallback, CreateActionAction.ActionCreatedCallback, CreateAliasAction.AliasCreatedCallback, CreateFolderAction.FolderCreatedCallback, CreatePageAction.PageCreatedCallback, ResponseHandlerAdapter, UpdateCommentAction.CommentUpdatedCallback

public interface ResponseHandler

API for handling HTTP responses.

Author:
Civic Computing Ltd.

Method Summary
 void onBadRequest(Response response)
          TODO: Add a description for this method.
 void onConflict(Response response)
          TODO: Add a description for this method.
 void onError(Response response)
          TODO: Add a description for this method.
 void onFailed(java.lang.Throwable throwable)
          TODO: Add a description for this method.
 void onMethodNotAllowed(Response response)
          TODO: Add a description for this method.
 void onNoContent(Response response)
          Handle a '204 NO CONTENT' response from the remote server.
 void onNotFound(Response response)
          TODO: Add a description for this method.
 void onOK(Response response)
          Handle a '200 OK' response from the remote server.
 void onSessionTimeout(Response response)
          TODO: Add a description for this method.
 void onUnauthorized(Response response)
          TODO: Add a description for this method.
 void onUnsupported(Response response)
          TODO: Add a description for this method.
 

Method Detail

onNoContent

void onNoContent(Response response)
Handle a '204 NO CONTENT' response from the remote server.

Parameters:
response - The server response.

onOK

void onOK(Response response)
Handle a '200 OK' response from the remote server.

Parameters:
response - The server response.

onMethodNotAllowed

void onMethodNotAllowed(Response response)
TODO: Add a description for this method.

Parameters:
response -

onBadRequest

void onBadRequest(Response response)
TODO: Add a description for this method.

Parameters:
response -

onSessionTimeout

void onSessionTimeout(Response response)
TODO: Add a description for this method.

Parameters:
response -

onUnsupported

void onUnsupported(Response response)
TODO: Add a description for this method.

Parameters:
response -

onFailed

void onFailed(java.lang.Throwable throwable)
TODO: Add a description for this method.

Parameters:
throwable -

onNotFound

void onNotFound(Response response)
TODO: Add a description for this method.

Parameters:
response -

onError

void onError(Response response)
TODO: Add a description for this method.

Parameters:
response -

onUnauthorized

void onUnauthorized(Response response)
TODO: Add a description for this method.

Parameters:
response -

onConflict

void onConflict(Response response)
TODO: Add a description for this method.

Parameters:
response -


Copyright © 2010. All Rights Reserved.