org.slim3.struts.config
Class S3ExecuteConfig

java.lang.Object
  extended by org.slim3.struts.config.S3ExecuteConfig
All Implemented Interfaces:
Serializable

public class S3ExecuteConfig
extends Object
implements Serializable

The configuration for execute method.

Since:
3.0
Author:
higa
See Also:
Serialized Form

Field Summary
protected  String input
          The path to transit when a validation error is encountered.
protected  Method method
          The method of the action class.
protected  boolean removeActionForm
          Whether the action form is removed from session or request.
protected  Method resetMethod
          The reset method.
protected  String[] roles
          The roles.
protected  boolean validate
          Whether this execute method is validated.
 
Constructor Summary
S3ExecuteConfig(Method method)
          Constructor.
 
Method Summary
 String getInput()
          Returns the path to transit when a validation error is encountered.
 Method getMethod()
          Returns the method of the action class.
 Method getResetMethod()
          Returns the reset method.
 String[] getRoles()
          Returns the roles.
 boolean isRemoveActionForm()
          Determines if the action form is removed from session or request.
 boolean isTarget(HttpServletRequest request)
          Determines if this execute method is target.
 boolean isValidate()
          Determines if this execute method is validated.
 void setInput(String input)
          Sets the path to transit when a validation error is encountered.
 void setRemoveActionForm(boolean removeActionForm)
          Sets the removeActionForm flag.
 void setResetMethod(Method resetMethod)
          Sets the reset method.
 void setRoles(String[] roles)
          Set the roles.
 void setValidate(boolean validate)
          Sets the validate flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

protected Method method
The method of the action class.


validate

protected boolean validate
Whether this execute method is validated.


input

protected String input
The path to transit when a validation error is encountered.


roles

protected String[] roles
The roles.


removeActionForm

protected boolean removeActionForm
Whether the action form is removed from session or request.


resetMethod

protected Method resetMethod
The reset method.

Constructor Detail

S3ExecuteConfig

public S3ExecuteConfig(Method method)
                throws NullPointerException
Constructor.

Parameters:
method - the method
Throws:
NullPointerException - if the method parameter is null
Method Detail

getMethod

public Method getMethod()
Returns the method of the action class.

Returns:
the method

isValidate

public boolean isValidate()
Determines if this execute method is validated.

Returns:
the validate flag

setValidate

public void setValidate(boolean validate)
Sets the validate flag.

Parameters:
validate - the validate flag

getInput

public String getInput()
Returns the path to transit when a validation error is encountered.

Returns:
the path to transit

setInput

public void setInput(String input)
              throws NullPointerException
Sets the path to transit when a validation error is encountered.

Parameters:
input - the path to transit
Throws:
NullPointerException - if the input parameter is null

getRoles

public String[] getRoles()
Returns the roles.

Returns:
the roles

setRoles

public void setRoles(String[] roles)
              throws NullPointerException
Set the roles.

Parameters:
roles - the roles
Throws:
NullPointerException - if the roles parameter is null

isRemoveActionForm

public boolean isRemoveActionForm()
Determines if the action form is removed from session or request.

Returns:
the removeActionForm flag

setRemoveActionForm

public void setRemoveActionForm(boolean removeActionForm)
Sets the removeActionForm flag.

Parameters:
removeActionForm - the removeActionForm flag

getResetMethod

public Method getResetMethod()
Returns the reset method.

Returns:
the reset method

setResetMethod

public void setResetMethod(Method resetMethod)
Sets the reset method.

Parameters:
resetMethod - the reset method

isTarget

public boolean isTarget(HttpServletRequest request)
Determines if this execute method is target.

Parameters:
request - the request
Returns:
whether this execute method is target


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.