|
||||||||||
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(java.lang.String uri,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
Do a forward using request dispatcher. |
void |
doInclude(java.lang.String uri,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
Do an include using request dispatcher. |
DefinitionsFactory |
getDefinitionsFactory(javax.servlet.ServletContext servletContext,
org.apache.struts.config.ModuleConfig moduleConfig)
Get definition factory for the module attached to specified moduleConfig. |
DefinitionsFactory |
getDefinitionsFactory(javax.servlet.ServletRequest request,
javax.servlet.ServletContext servletContext)
Get the definition factory from appropriate servlet context. |
protected org.apache.struts.config.ModuleConfig |
getModuleConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
Get the current ModuleConfig. |
protected TilesRequestProcessor |
getRequestProcessor(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
Get Tiles RequestProcessor associated to the current module. |
protected void |
makeDefinitionsFactoryAccessible(DefinitionsFactory factory,
javax.servlet.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(java.lang.String uri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext) throws java.io.IOException, javax.servlet.ServletException
doForward
in class TilesUtilImpl
uri
- Uri or Definition name to forward.request
- Current page request.response
- Current page response.servletContext
- Current servlet context.
java.io.IOException
javax.servlet.ServletException
public void doInclude(java.lang.String uri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext) throws java.io.IOException, javax.servlet.ServletException
doInclude
in class TilesUtilImpl
uri
- Uri or Definition name to forward.request
- Current page request.response
- Current page response.servletContext
- Current servlet context.
java.io.IOException
javax.servlet.ServletException
public DefinitionsFactory getDefinitionsFactory(javax.servlet.ServletRequest request, javax.servlet.ServletContext servletContext)
getDefinitionsFactory
in class TilesUtilImpl
request
- Current request.servletContext
- Current servlet context.
public DefinitionsFactory getDefinitionsFactory(javax.servlet.ServletContext servletContext, org.apache.struts.config.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, javax.servlet.ServletContext servletContext)
makeDefinitionsFactoryAccessible
in class TilesUtilImpl
factory
- Factory to be made accessible.servletContext
- Current servlet context.protected TilesRequestProcessor getRequestProcessor(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext servletContext)
request
- Current request.servletContext
- Current servlet context.
TilesRequestProcessor
for the current request.protected org.apache.struts.config.ModuleConfig getModuleConfig(javax.servlet.http.HttpServletRequest request, javax.servlet.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 |