| org.vfny.geoserver.config.web.tiles.MultipleDelegatingTilesRequestProcessor
MultipleDelegatingTilesRequestProcessor | public class MultipleDelegatingTilesRequestProcessor extends DelegatingTilesRequestProcessor (Code) | | Subclass of Struts' TilesRequestProcessor that looks up Spring-managed
Struts 1.1 Actions defined in ContextLoaderPlugIn's WebApplicationContext.
Behaves like
DelegatingRequestProcessor DelegatingRequestProcessor ,
but also provides the Tiles functionality of the original TilesRequestProcessor.
As there's just a single central class to customize in Struts, we have to provide
another subclass here, covering both the Tiles and the Spring delegation aspect.
The default implementation delegates to the DelegatingActionUtils
class as fas as possible, to reuse as much code as possible despite
the need to provide two RequestProcessor subclasses. If you need to
subclass yet another RequestProcessor, take this class as a template,
delegating to DelegatingActionUtils just like it.
author: Juergen Hoeller since: 1.0.2 See Also: DelegatingRequestProcessor See Also: DelegatingActionProxy See Also: DelegatingActionUtils |
Method Summary | |
protected void | doForward(String uri, HttpServletRequest request, HttpServletResponse response) Do a forward to specified URI using a RequestDispatcher . | protected void | doInclude(String uri, HttpServletRequest request, HttpServletResponse response) Do an include of specified URI using a RequestDispatcher . | protected void | internalModuleRelativeForward(String uri, HttpServletRequest request, HttpServletResponse response) Do a module relative forward to specified URI using request dispatcher.
URI is relative to the current module. | protected void | internalModuleRelativeInclude(String uri, HttpServletRequest request, HttpServletResponse response) Do a module relative include to specified URI using request dispatcher.
URI is relative to the current module. | protected boolean | processForward(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) Process a forward requested by this mapping (if any). | protected void | processForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward) Overloaded method from Struts' RequestProcessor.
Forward or redirect to the specified destination by the specified
mechanism.
This method catches the Struts' actionForward call. | protected boolean | processInclude(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) Process an include requested by this mapping (if any). | protected boolean | processTilesDefinition(String definitionName, boolean contextRelative, HttpServletRequest request, HttpServletResponse response) Process a Tile definition name.
This method tries to process the parameter definitionName as a definition name.
It returns true if a definition has been processed, or false otherwise.
Parameter contextRelative is not used in this implementation.
Parameters: definitionName - Definition name to insert. Parameters: contextRelative - Is the definition marked contextRelative ? Parameters: request - Current page request. Parameters: response - Current page response. |
doForward | protected void doForward(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code) | | Do a forward to specified URI using a RequestDispatcher .
This method is used by all internal method needing to do a forward.
Parameters: uri - Context-relative URI to forward to Parameters: request - Current page request Parameters: response - Current page response since: Struts 1.1 |
doInclude | protected void doInclude(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code) | | Do an include of specified URI using a RequestDispatcher .
This method is used by all internal method needing to do an include.
Parameters: uri - Context-relative URI to include Parameters: request - Current page request Parameters: response - Current page response since: Struts 1.1 |
internalModuleRelativeForward | protected void internalModuleRelativeForward(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code) | | Do a module relative forward to specified URI using request dispatcher.
URI is relative to the current module. The real URI is compute by prefixing
the module name.
This method is used internally and is not part of the public API. It is
advised to not use it in subclasses.
Parameters: uri - Module-relative URI to forward to Parameters: request - Current page request Parameters: response - Current page response since: Struts 1.1 |
internalModuleRelativeInclude | protected void internalModuleRelativeInclude(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code) | | Do a module relative include to specified URI using request dispatcher.
URI is relative to the current module. The real URI is compute by prefixing
the module name.
This method is used internally and is not part of the public API. It is
advised to not use it in subclasses.
Parameters: uri - Module-relative URI to include Parameters: request - Current page request Parameters: response - Current page response since: Struts 1.1 |
processForward | protected boolean processForward(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException(Code) | | Process a forward requested by this mapping (if any). Return
true if standard processing should continue, or
false if we have already handled this request.
Parameters: request - The servlet request we are processing Parameters: response - The servlet response we are creating Parameters: mapping - The ActionMapping we are using |
processForwardConfig | protected void processForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward) throws IOException, ServletException(Code) | | Overloaded method from Struts' RequestProcessor.
Forward or redirect to the specified destination by the specified
mechanism.
This method catches the Struts' actionForward call. It checks if the
actionForward is done on a Tiles definition name. If true, process the
definition and insert it. If false, call the original parent's method.
Parameters: request - The servlet request we are processing. Parameters: response - The servlet response we are creating. Parameters: forward - The ActionForward controlling where we go next. exception: IOException - if an input/output error occurs. exception: ServletException - if a servlet exception occurs. |
processInclude | protected boolean processInclude(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException(Code) | | Process an include requested by this mapping (if any). Return
true if standard processing should continue, or
false if we have already handled this request.
Parameters: request - The servlet request we are processing Parameters: response - The servlet response we are creating Parameters: mapping - The ActionMapping we are using |
processTilesDefinition | protected boolean processTilesDefinition(String definitionName, boolean contextRelative, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code) | | Process a Tile definition name.
This method tries to process the parameter definitionName as a definition name.
It returns true if a definition has been processed, or false otherwise.
Parameter contextRelative is not used in this implementation.
Parameters: definitionName - Definition name to insert. Parameters: contextRelative - Is the definition marked contextRelative ? Parameters: request - Current page request. Parameters: response - Current page response. true if the method has processed uri as a definition name, false otherwise. |
|
|