ccc.client.core
Class ResponseHandlerAdapter

java.lang.Object
  extended by ccc.client.core.ResponseHandlerAdapter
All Implemented Interfaces:
ResponseHandler
Direct Known Subclasses:
CancelActionAction.ActionCancelledCallback, CreateActionAction.ActionCreatedCallback, CreateAliasAction.AliasCreatedCallback, CreateFolderAction.FolderCreatedCallback, CreatePageAction.PageCreatedCallback, UpdateCommentAction.CommentUpdatedCallback

public class ResponseHandlerAdapter
extends java.lang.Object
implements ResponseHandler

Default response handler implementation.

Fails for all responses.

Author:
Civic Computing Ltd.

Constructor Summary
ResponseHandlerAdapter(java.lang.String name)
          Constructor.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseHandlerAdapter

public ResponseHandlerAdapter(java.lang.String name)
Constructor.

Parameters:
name - The action name.
Method Detail

onNoContent

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

Specified by:
onNoContent in interface ResponseHandler
Parameters:
response - The server response.

onOK

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

Specified by:
onOK in interface ResponseHandler
Parameters:
response - The server response.

onBadRequest

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

Specified by:
onBadRequest in interface ResponseHandler

onMethodNotAllowed

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

Specified by:
onMethodNotAllowed in interface ResponseHandler

onUnsupported

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

Specified by:
onUnsupported in interface ResponseHandler

onConflict

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

Specified by:
onConflict in interface ResponseHandler

onError

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

Specified by:
onError in interface ResponseHandler

onNotFound

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

Specified by:
onNotFound in interface ResponseHandler

onUnauthorized

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

Specified by:
onUnauthorized in interface ResponseHandler

onSessionTimeout

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

Specified by:
onSessionTimeout in interface ResponseHandler

onFailed

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

Specified by:
onFailed in interface ResponseHandler


Copyright © 2010. All Rights Reserved.