Package | Description |
---|---|
org.apache.struts.action |
The action package is the core of the struts framework,
providing the "Controller" aspect of a MVC model.
|
org.apache.struts.chain.commands |
Configurable commands
that may be placed within the request processor.
|
org.apache.struts.chain.commands.servlet |
Commands which are particular to servlet processing.
|
org.apache.struts.config |
The "config" package contains configuration objects that correspond to
elements that may be specified in the
struts-config.xml
module configuration file. |
org.apache.struts.config.impl |
Provides default implementation classes for the configuration objects.
|
Modifier and Type | Method and Description |
---|---|
protected ExceptionConfig |
ActionServlet.processExceptionConfigClass(ExceptionConfig exceptionConfig,
ModuleConfig moduleConfig,
ActionConfig actionConfig)
Checks if the current exceptionConfig is using the correct class
based on the class of its configuration ancestor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
ExceptionHandler.determineIncludePath(ExceptionConfig config,
ActionForward actionForward)
Return a path to which an include should be attempted in the case
when the response was committed before the
ExceptionHandler
was invoked. |
ActionForward |
ExceptionHandler.execute(Exception ex,
ExceptionConfig ae,
ActionMapping mapping,
ActionForm formInstance,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle the Exception.
|
protected void |
ExceptionHandler.handleCommittedResponse(Exception ex,
ExceptionConfig config,
ActionMapping mapping,
ActionForm formInstance,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionForward actionForward)
Attempt to give good information when the response has already been
committed when the exception was thrown.
|
protected ExceptionConfig |
ActionServlet.processExceptionConfigClass(ExceptionConfig exceptionConfig,
ModuleConfig moduleConfig,
ActionConfig actionConfig)
Checks if the current exceptionConfig is using the correct class
based on the class of its configuration ancestor.
|
protected void |
ActionServlet.processExceptionExtension(ExceptionConfig exceptionConfig,
ModuleConfig moduleConfig,
ActionConfig actionConfig)
Extend the exception's configuration as necessary.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ForwardConfig |
AbstractExceptionHandler.handle(ActionContext context,
Exception exception,
ExceptionConfig exceptionConfig,
ActionConfig actionConfig,
ModuleConfig moduleConfig)
Perform the required handling of the specified exception.
|
Modifier and Type | Method and Description |
---|---|
protected ForwardConfig |
ExceptionHandler.handle(ActionContext context,
Exception exception,
ExceptionConfig exceptionConfig,
ActionConfig actionConfig,
ModuleConfig moduleConfig) |
Modifier and Type | Method and Description |
---|---|
ExceptionConfig |
ActionConfig.findException(Class type)
Find and return the
ExceptionConfig instance defining
how Exceptions of the specified type should be handled. |
ExceptionConfig |
ModuleConfig.findException(Class type)
Perform a recursive search for an ExceptionConfig registered for
this class, or for any superclass.
|
ExceptionConfig |
ActionConfig.findExceptionConfig(String type)
Return the exception configuration for the specified type, if any;
otherwise return
null . |
ExceptionConfig |
ModuleConfig.findExceptionConfig(String type)
Return the exception configuration for the specified type, if any;
otherwise return
null . |
ExceptionConfig[] |
ActionConfig.findExceptionConfigs()
Return the exception configurations for this action.
|
ExceptionConfig[] |
ModuleConfig.findExceptionConfigs()
Return the exception configurations for this module.
|
Modifier and Type | Method and Description |
---|---|
void |
ActionConfig.addExceptionConfig(ExceptionConfig config)
Add a new
ExceptionConfig instance to the set
associated with this action. |
void |
ModuleConfig.addExceptionConfig(ExceptionConfig config)
Add a new
ExceptionConfig instance to the set
associated with this module. |
void |
ExceptionConfig.inheritFrom(ExceptionConfig config)
Inherit values that have not been overridden from the provided
config object.
|
void |
ActionConfig.removeExceptionConfig(ExceptionConfig config)
Remove the specified exception configuration instance.
|
void |
ModuleConfig.removeExceptionConfig(ExceptionConfig config)
Remove the specified exception configuration instance.
|
Modifier and Type | Method and Description |
---|---|
ExceptionConfig |
ModuleConfigImpl.findException(Class type)
Find and return the
ExceptionConfig instance defining
how Exceptions of the specified type should be handled. |
ExceptionConfig |
ModuleConfigImpl.findExceptionConfig(String type)
Return the exception configuration for the specified type, if any;
otherwise return
null . |
ExceptionConfig[] |
ModuleConfigImpl.findExceptionConfigs()
Return the exception configurations for this module.
|
Modifier and Type | Method and Description |
---|---|
void |
ModuleConfigImpl.addExceptionConfig(ExceptionConfig config)
Add a new
ExceptionConfig instance to the set
associated with this module. |
void |
ModuleConfigImpl.removeExceptionConfig(ExceptionConfig config)
Remove the specified exception configuration instance.
|
Copyright © 2000–2016 Apache Software Foundation. All rights reserved.