|
|||||||||
| Home >> All >> org >> apache >> struts >> [ validator overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.struts.validator
Class ValidatorPlugIn

java.lang.Objectorg.apache.struts.validator.ValidatorPlugIn
- All Implemented Interfaces:
- org.apache.struts.action.PlugIn
- public class ValidatorPlugIn
- extends java.lang.Object
- implements org.apache.struts.action.PlugIn
- extends java.lang.Object
Loads ValidatorResources based on configuration in the
struts-config.xml file.
- Since:
- Struts 1.1
- Version:
- $Rev: 105785 $ $Date: 2004-11-19 06:58:36 +0000 (Fri, 19 Nov 2004) $
| Field Summary | |
private org.apache.struts.config.ModuleConfig |
config
The module configuration for our owning module. |
private static org.apache.commons.logging.Log |
log
Commons Logging instance. |
private java.lang.String |
pathnames
A comma delimitted list of Validator resource. |
private static java.lang.String |
RESOURCE_DELIM
Delimitter for Validator resources. |
protected org.apache.commons.validator.ValidatorResources |
resources
The set of Form instances that have been created and initialized, keyed by the struts form name. |
private org.apache.struts.action.ActionServlet |
servlet
The org.apache.struts.action.ActionServlet owning this application. |
static java.lang.String |
STOP_ON_ERROR_KEY
Application scope key that StopOnError is stored under. |
private boolean |
stopOnFirstError
Informs the Validators if it has to stop validation when finding the first error or if it should continue. |
static java.lang.String |
VALIDATOR_KEY
Application scope key that ValidatorResources is stored under. |
| Constructor Summary | |
ValidatorPlugIn()
|
|
| Method Summary | |
void |
destroy()
Gracefully shut down, releasing any resources that were allocated at initialization. |
protected void |
destroyResources()
Destroy ValidatorResources. |
java.lang.String |
getPathnames()
Gets a comma delimitted list of Validator resources. |
void |
init(org.apache.struts.action.ActionServlet servlet,
org.apache.struts.config.ModuleConfig config)
Initialize and load our resources. |
protected void |
initResources()
Initialize the validator resources for this module. |
boolean |
isStopOnFirstError()
Gets the value for stopOnFirstError. |
void |
setPathnames(java.lang.String pathnames)
Sets a comma delimitted list of Validator resources. |
void |
setStopOnFirstError(boolean stopOnFirstError)
Sets the value for stopOnFirstError. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
private static org.apache.commons.logging.Log log
- Commons Logging instance.
config
private org.apache.struts.config.ModuleConfig config
- The module configuration for our owning module.
servlet
private org.apache.struts.action.ActionServlet servlet
- The org.apache.struts.action.ActionServlet owning this application.
RESOURCE_DELIM
private static final java.lang.String RESOURCE_DELIM
- Delimitter for Validator resources.
- See Also:
- Constant Field Values
VALIDATOR_KEY
public static final java.lang.String VALIDATOR_KEY
- Application scope key that
ValidatorResourcesis stored under.- See Also:
- Constant Field Values
STOP_ON_ERROR_KEY
public static final java.lang.String STOP_ON_ERROR_KEY
- Application scope key that
StopOnErroris stored under.- Since:
- Struts 1.2
- See Also:
- Constant Field Values
resources
protected org.apache.commons.validator.ValidatorResources resources
- The set of Form instances that have been created and initialized,
keyed by the struts form name.
pathnames
private java.lang.String pathnames
- A comma delimitted list of Validator resource.
stopOnFirstError
private boolean stopOnFirstError
- Informs the Validators if it has to stop validation when finding the
first error or if it should continue. Default to
trueto keep Struts 1.1 backwards compatibility.
| Constructor Detail |
ValidatorPlugIn
public ValidatorPlugIn()
| Method Detail |
getPathnames
public java.lang.String getPathnames()
- Gets a comma delimitted list of Validator resources.
setPathnames
public void setPathnames(java.lang.String pathnames)
- Sets a comma delimitted list of Validator resources.
isStopOnFirstError
public boolean isStopOnFirstError()
- Gets the value for stopOnFirstError.
- Since:
- Struts 1.2
setStopOnFirstError
public void setStopOnFirstError(boolean stopOnFirstError)
- Sets the value for stopOnFirstError.
- Since:
- Struts 1.2
init
public void init(org.apache.struts.action.ActionServlet servlet, org.apache.struts.config.ModuleConfig config) throws javax.servlet.ServletException
- Initialize and load our resources.
- Specified by:
initin interfaceorg.apache.struts.action.PlugIn
destroy
public void destroy()
- Gracefully shut down, releasing any resources
that were allocated at initialization.
- Specified by:
destroyin interfaceorg.apache.struts.action.PlugIn
initResources
protected void initResources()
throws java.io.IOException,
javax.servlet.ServletException
- Initialize the validator resources for this module.
destroyResources
protected void destroyResources()
- Destroy
ValidatorResources.
|
|||||||||
| Home >> All >> org >> apache >> struts >> [ validator overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.struts.validator.ValidatorPlugIn