biz.c24.io.api.web
Class ActionHandler

java.lang.Object
  extended by biz.c24.io.api.web.ActionHandler

public class ActionHandler
extends Object

Handler designed for use by servlets to process changes made through the StructureTag.


Field Summary
static String ADD_INDICATOR
          The indicator used as the value of KEY_CLIENT_OPERATION to indicate an add has been performed.
static String KEY_CLIENT_OPERATION
          The key used to store the operation performed on the root object.
static String KEY_PARSER_ERRORS
          The key used to store the parser errors on the appropriate object.
static String REMOVE_INDICATOR
          The indicator used as the value of KEY_CLIENT_OPERATION to indicate a remove has been performed.
static String SUBMIT_INDICATOR
          The indicator used as the value of KEY_CLIENT_OPERATION to indicate a submit has been performed.
 
Constructor Summary
ActionHandler()
          Creates a new instance.
ActionHandler(String inputNamePrefix)
          Creates a new instance with the specified prefix to be used for input names.
 
Method Summary
 String getInputNamePrefix()
          Returns the input name prefix.
 ComplexDataObject processSubmit(javax.servlet.http.HttpServletRequest request)
          Process a submit command and create a new object from the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_CLIENT_OPERATION

public static final String KEY_CLIENT_OPERATION
The key used to store the operation performed on the root object.


KEY_PARSER_ERRORS

public static final String KEY_PARSER_ERRORS
The key used to store the parser errors on the appropriate object.


ADD_INDICATOR

public static final String ADD_INDICATOR
The indicator used as the value of KEY_CLIENT_OPERATION to indicate an add has been performed.

See Also:
Constant Field Values

REMOVE_INDICATOR

public static final String REMOVE_INDICATOR
The indicator used as the value of KEY_CLIENT_OPERATION to indicate a remove has been performed.

See Also:
Constant Field Values

SUBMIT_INDICATOR

public static final String SUBMIT_INDICATOR
The indicator used as the value of KEY_CLIENT_OPERATION to indicate a submit has been performed.

See Also:
Constant Field Values
Constructor Detail

ActionHandler

public ActionHandler()
Creates a new instance.


ActionHandler

public ActionHandler(String inputNamePrefix)
Creates a new instance with the specified prefix to be used for input names.

Parameters:
inputNamePrefix - The prefix, or null if none is to be used.
Method Detail

processSubmit

public ComplexDataObject processSubmit(javax.servlet.http.HttpServletRequest request)
Process a submit command and create a new object from the request.

Parameters:
request - The request object.
Returns:
The newly created and initialized object.

getInputNamePrefix

public String getInputNamePrefix()
Returns the input name prefix.

Returns:
The input name prefix


C24 Technologies © 2002-2012: All Rights Reserved.