| java.lang.Object org.apache.struts.tiles.TilesUtilImpl org.apache.struts.tiles.TilesUtilStrutsImpl org.apache.struts.tiles.TilesUtilStrutsModulesImpl
TilesUtilStrutsModulesImpl | public class TilesUtilStrutsModulesImpl extends TilesUtilStrutsImpl (Code) | | Implementation of TilesUtil for Struts multi modules.
Methods in this implementation are aware of the Struts module context.
- The method getFactory(...) returns the factory for the current Struts
module.
- Methods doForward() and doInclude() use their counterparts in the
current RequestProcessor (todo).
- The method createFactory(...) creates a factory for the current module and
stores it under the appropriate property name.
|
Method Summary | |
public void | doForward(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) Do a forward using request dispatcher. | public void | doInclude(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) Do an include using request dispatcher. | public DefinitionsFactory | getDefinitionsFactory(ServletRequest request, ServletContext servletContext) Get the definition factory from appropriate servlet context.
Parameters: request - Current request. Parameters: servletContext - Current servlet context. | public DefinitionsFactory | getDefinitionsFactory(ServletContext servletContext, ModuleConfig moduleConfig) Get definition factory for the module attached to specified moduleConfig.
Parameters: servletContext - Current servlet context. Parameters: moduleConfig - Module config of the module for which the factory is requested. | protected ModuleConfig | getModuleConfig(HttpServletRequest request, ServletContext servletContext) Get the current ModuleConfig.
Lookup in the request and do selectModule if not found. | protected TilesRequestProcessor | getRequestProcessor(HttpServletRequest request, ServletContext servletContext) Get Tiles RequestProcessor associated to the current module.
Parameters: request - Current request. Parameters: servletContext - Current servlet context. | protected void | makeDefinitionsFactoryAccessible(DefinitionsFactory factory, ServletContext servletContext) Make definition factory accessible to tags. |
doForward | public void doForward(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws IOException, ServletException(Code) | | Do a forward using request dispatcher.
This method is used by the Tiles package anytime a forward is required.
Parameters: uri - Uri or Definition name to forward. Parameters: request - Current page request. Parameters: response - Current page response. Parameters: servletContext - Current servlet context. |
doInclude | public void doInclude(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws IOException, ServletException(Code) | | Do an include using request dispatcher.
This method is used by the Tiles package anytime an include is required.
Parameters: uri - Uri or Definition name to forward. Parameters: request - Current page request. Parameters: response - Current page response. Parameters: servletContext - Current servlet context. |
getDefinitionsFactory | public DefinitionsFactory getDefinitionsFactory(ServletRequest request, ServletContext servletContext)(Code) | | Get the definition factory from appropriate servlet context.
Parameters: request - Current request. Parameters: servletContext - Current servlet context. Definitions factory or null if not found. |
getDefinitionsFactory | public DefinitionsFactory getDefinitionsFactory(ServletContext servletContext, ModuleConfig moduleConfig)(Code) | | Get definition factory for the module attached to specified moduleConfig.
Parameters: servletContext - Current servlet context. Parameters: moduleConfig - Module config of the module for which the factory is requested. Definitions factory or null if not found. |
getModuleConfig | protected ModuleConfig getModuleConfig(HttpServletRequest request, ServletContext servletContext)(Code) | | Get the current ModuleConfig.
Lookup in the request and do selectModule if not found. The side effect
is, that the ModuleConfig object is set in the request if it was not present.
Parameters: request - Current request. Parameters: servletContext - Current servlet context*. The ModuleConfig for current request. |
makeDefinitionsFactoryAccessible | protected void makeDefinitionsFactoryAccessible(DefinitionsFactory factory, ServletContext servletContext)(Code) | | Make definition factory accessible to tags.
Factory is stored in servlet context.
Parameters: factory - Factory to be made accessible. Parameters: servletContext - Current servlet context. |
Methods inherited from org.apache.struts.tiles.TilesUtilImpl | protected DefinitionsFactory createDefinitionFactoryInstance(String classname) throws DefinitionsFactoryException(Code)(Java Doc) public DefinitionsFactory createDefinitionsFactory(ServletContext servletContext, DefinitionsFactoryConfig factoryConfig) throws DefinitionsFactoryException(Code)(Java Doc) public void doForward(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws IOException, ServletException(Code)(Java Doc) public void doInclude(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws IOException, ServletException(Code)(Java Doc) public void doInclude(String uri, PageContext pageContext, boolean flush) throws IOException, ServletException(Code)(Java Doc) public DefinitionsFactory getDefinitionsFactory(ServletRequest request, ServletContext servletContext)(Code)(Java Doc) protected void makeDefinitionsFactoryAccessible(DefinitionsFactory factory, ServletContext servletContext)(Code)(Java Doc)
|
|
|