ccc.client.actions
Class UpdateResourceTemplateAction

java.lang.Object
  extended by ccc.client.core.RemotingAction
      extended by ccc.client.actions.UpdateResourceTemplateAction
All Implemented Interfaces:
Action

public class UpdateResourceTemplateAction
extends RemotingAction

Remote action for resource's template updating.

Author:
Civic Computing Ltd.

Field Summary
 
Fields inherited from interface ccc.client.core.Action
UI_CONSTANTS, USER_ACTIONS
 
Constructor Summary
UpdateResourceTemplateAction(Resource resource)
          Constructor.
 
Method Summary
protected  java.lang.String getBody()
          Provide a body for this method.
protected  java.lang.String getPath()
          Determine the server path for this action.
protected  void onNoContent(Response response)
          Handle a '204 NO CONTENT' response from the remote server.
 
Methods inherited from class ccc.client.core.RemotingAction
beforeExecute, encode, execute, fireEvent, getActionName, getParser, getRequest, onFailure, onOK, parseResourceSummary, setExecutor, setParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateResourceTemplateAction

public UpdateResourceTemplateAction(Resource resource)
Constructor.

Parameters:
resource - The resource to update.
Method Detail

getPath

protected java.lang.String getPath()
Determine the server path for this action.

Overrides:
getPath in class RemotingAction
Returns:
The server path for the resource.

getBody

protected java.lang.String getBody()
Provide a body for this method.

Only called for POST requests.

Overrides:
getBody in class RemotingAction
Returns:
The request body, as a string.

onNoContent

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

Overrides:
onNoContent in class RemotingAction
Parameters:
response - The server response.


Copyright © 2010. All Rights Reserved.