|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.tiles.TilesUtilImpl org.apache.struts.tiles.TilesUtilStrutsImpl org.apache.struts.tiles.TilesUtilStrutsModulesImpl
public class TilesUtilStrutsModulesImpl
Implementation of TilesUtil for Struts multi modules.
Methods in this implementation are aware of the Struts module context.
Field Summary |
---|
Fields inherited from class org.apache.struts.tiles.TilesUtilImpl |
---|
DEFINITIONS_FACTORY, log |
Constructor Summary | |
---|---|
TilesUtilStrutsModulesImpl()
|
Method Summary | |
---|---|
void |
doForward(String uri,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
Do a forward using request dispatcher. |
void |
doInclude(String uri,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
Do an include using request dispatcher. |
DefinitionsFactory |
getDefinitionsFactory(ServletContext servletContext,
ModuleConfig moduleConfig)
Get definition factory for the module attached to specified moduleConfig. |
DefinitionsFactory |
getDefinitionsFactory(ServletRequest request,
ServletContext servletContext)
Get the definition factory from appropriate servlet context. |
protected ModuleConfig |
getModuleConfig(HttpServletRequest request,
ServletContext servletContext)
Get the current ModuleConfig. |
protected TilesRequestProcessor |
getRequestProcessor(HttpServletRequest request,
ServletContext servletContext)
Get Tiles RequestProcessor associated to the current module. |
protected void |
makeDefinitionsFactoryAccessible(DefinitionsFactory factory,
ServletContext servletContext)
Make definition factory accessible to tags. |
Methods inherited from class org.apache.struts.tiles.TilesUtilImpl |
---|
createDefinitionFactoryInstance, createDefinitionsFactory, doInclude |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TilesUtilStrutsModulesImpl()
Method Detail |
---|
public void doForward(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws IOException, ServletException
doForward
in class TilesUtilImpl
uri
- Uri or Definition name to forward.request
- Current page request.response
- Current page response.servletContext
- Current servlet context.
IOException
ServletException
public void doInclude(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws IOException, ServletException
doInclude
in class TilesUtilImpl
uri
- Uri or Definition name to forward.request
- Current page request.response
- Current page response.servletContext
- Current servlet context.
IOException
ServletException
public DefinitionsFactory getDefinitionsFactory(ServletRequest request, ServletContext servletContext)
getDefinitionsFactory
in class TilesUtilImpl
request
- Current request.servletContext
- Current servlet context.
public DefinitionsFactory getDefinitionsFactory(ServletContext servletContext, ModuleConfig moduleConfig)
getDefinitionsFactory
in class TilesUtilStrutsImpl
servletContext
- Current servlet context.moduleConfig
- Module config of the module for which the factory is requested.
protected void makeDefinitionsFactoryAccessible(DefinitionsFactory factory, ServletContext servletContext)
makeDefinitionsFactoryAccessible
in class TilesUtilImpl
factory
- Factory to be made accessible.servletContext
- Current servlet context.protected TilesRequestProcessor getRequestProcessor(HttpServletRequest request, ServletContext servletContext)
request
- Current request.servletContext
- Current servlet context.
TilesRequestProcessor
for the current request.protected ModuleConfig getModuleConfig(HttpServletRequest request, ServletContext servletContext)
request
- Current request.servletContext
- Current servlet context*.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |