Package | Description |
---|---|
org.apache.struts2 | |
org.apache.struts2.dispatcher |
This package contains a reimagining of the traditional Struts filter dispatchers.
|
org.apache.struts2.dispatcher.mapper |
Modifier and Type | Method and Description |
---|---|
static ActionMapping |
ServletActionContext.getActionMapping()
Gets the action mapping for this context
|
Modifier and Type | Method and Description |
---|---|
ActionMapping |
PrepareOperations.findActionMapping(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Finds and optionally creates an
ActionMapping . |
ActionMapping |
PrepareOperations.findActionMapping(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean forceLookup)
Finds and optionally creates an
ActionMapping . |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
Dispatcher.createContextMap(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionMapping mapping)
Create a context map containing all the wrapped request objects
|
void |
ExecuteOperations.executeAction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionMapping mapping)
Executes an action
|
void |
Dispatcher.serviceAction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionMapping mapping)
Load Action class for mapping and invoke the appropriate Action method, or go directly to the Result.
|
Modifier and Type | Method and Description |
---|---|
ActionMapping |
RestfulActionMapper.getMapping(javax.servlet.http.HttpServletRequest request,
ConfigurationManager configManager) |
ActionMapping |
PrefixBasedActionMapper.getMapping(javax.servlet.http.HttpServletRequest request,
ConfigurationManager configManager) |
ActionMapping |
Restful2ActionMapper.getMapping(javax.servlet.http.HttpServletRequest request,
ConfigurationManager configManager) |
ActionMapping |
ActionMapper.getMapping(javax.servlet.http.HttpServletRequest request,
ConfigurationManager configManager)
Expose the ActionMapping for the current request
|
ActionMapping |
DefaultActionMapper.getMapping(javax.servlet.http.HttpServletRequest request,
ConfigurationManager configManager) |
ActionMapping |
CompositeActionMapper.getMapping(javax.servlet.http.HttpServletRequest request,
ConfigurationManager configManager) |
ActionMapping |
RestfulActionMapper.getMappingFromActionName(String actionName) |
ActionMapping |
ActionMapper.getMappingFromActionName(String actionName)
Expose the ActionMapping for the specified action name
|
ActionMapping |
DefaultActionMapper.getMappingFromActionName(String actionName) |
ActionMapping |
CompositeActionMapper.getMappingFromActionName(String actionName) |
protected ActionMapping |
DefaultActionMapper.parseActionName(ActionMapping mapping) |
Modifier and Type | Method and Description |
---|---|
protected String |
DefaultActionMapper.dropExtension(String name,
ActionMapping mapping)
Drops the extension from the action name, storing it in the mapping for later use
|
void |
ParameterAction.execute(String key,
ActionMapping mapping) |
String |
RestfulActionMapper.getUriFromActionMapping(ActionMapping mapping) |
String |
PrefixBasedActionMapper.getUriFromActionMapping(ActionMapping mapping) |
String |
ActionMapper.getUriFromActionMapping(ActionMapping mapping)
Convert an ActionMapping into a URI string
|
String |
DefaultActionMapper.getUriFromActionMapping(ActionMapping mapping) |
String |
CompositeActionMapper.getUriFromActionMapping(ActionMapping mapping) |
protected void |
DefaultActionMapper.handleDynamicMethod(ActionMapping mapping,
StringBuilder uri) |
protected void |
DefaultActionMapper.handleExtension(ActionMapping mapping,
StringBuilder uri) |
protected void |
DefaultActionMapper.handleName(ActionMapping mapping,
StringBuilder uri) |
protected void |
DefaultActionMapper.handleNamespace(ActionMapping mapping,
StringBuilder uri) |
protected void |
DefaultActionMapper.handleParams(ActionMapping mapping,
StringBuilder uri) |
void |
DefaultActionMapper.handleSpecialParameters(javax.servlet.http.HttpServletRequest request,
ActionMapping mapping)
Special parameters, as described in the class-level comment, are searched
for and handled.
|
protected ActionMapping |
DefaultActionMapper.parseActionName(ActionMapping mapping) |
protected void |
DefaultActionMapper.parseNameAndNamespace(String uri,
ActionMapping mapping,
ConfigurationManager configManager)
Parses the name and namespace from the uri
|
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.