|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object RequestProcessor com.ibm.portal.struts.portlet.WpRequestProcessor com.ibm.portal.struts.portlet.WpTilesRequestProcessor
public class WpTilesRequestProcessor
WpTilesRequestProcessor contains the processing logic that the Struts controller servlet performs as it receives each servlet request from the container.
This tiles request processor extends the WpRequestProcessor so that processing is can be matched to the portal's two phase processing.
Field Summary | |
---|---|
protected DefinitionsFactory |
definitionsFactory
The Definitions factory |
protected static Log |
log
The commons Logging instance for this class |
protected static MessageResources |
messages
The message resources for the Struts Portlet Framework. |
Constructor Summary | |
---|---|
WpTilesRequestProcessor()
WpTilesRequestProcessor constructor |
Method Summary | |
---|---|
protected void |
doForward(java.lang.String uri,
HttpServletRequest request,
HttpServletResponse response)
Forward the URI. |
DefinitionsFactory |
getDefinitionsFactory()
Get associated definition factory. |
void |
init(ActionServlet servlet,
ModuleConfig moduleConfig)
Initialize the request processor instance. |
protected void |
initDefinitionsMapping()
initialize the definitions mappings |
protected void |
internalModuleRelativeForward(java.lang.String uri,
HttpServletRequest request,
HttpServletResponse response)
Description from the Struts Tiles Request Processor. |
protected void |
internalModuleRelativeInclude(java.lang.String uri,
HttpServletRequest request,
HttpServletResponse response)
Do a module relative include to specified uri using request dispatcher. |
protected void |
processForwardConfig(HttpServletRequest request,
HttpServletResponse response,
ForwardConfig forward)
Description from the Struts Tiles Request Processor. |
protected boolean |
processTilesDefinition(java.lang.String definitionName,
boolean contextRelative,
HttpServletRequest request,
HttpServletResponse response)
Process a Tile definition name. |
Methods inherited from class com.ibm.portal.struts.portlet.WpRequestProcessor |
---|
doInclude, getApplicationPrefix, getModuleContext, getServletContext, getStrutsInfo, processActionPerform, processContent, processException, processMapping, processMultipart, processNewActionUri, processNoCache, processPopulate, processRoles, processUri, setServletContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static MessageResources messages
protected DefinitionsFactory definitionsFactory
protected static Log log
Constructor Detail |
---|
public WpTilesRequestProcessor()
Method Detail |
---|
public void init(ActionServlet servlet, ModuleConfig moduleConfig) throws ServletException
init
in class WpRequestProcessor
servlet
- The ActionServlet we are associated with.moduleConfig
- The ModuleConfig we are associated with.
ServletException
- If an error occurs during initialization.protected void initDefinitionsMapping() throws ServletException
ServletException
- if a servlet exception occurs.protected boolean processTilesDefinition(java.lang.String definitionName, boolean contextRelative, HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
StrutsViewTilesCommand
definitionName
- Definition name to insert.contextRelative
- Is the definition marked contextRelative ?request
- Current page request.response
- Current page response.
true
if the method has processed uri as a definition name, false
otherwise.
java.io.IOException
- if an input/output error occurs.
ServletException
- if a servlet exception occurs.protected void doForward(java.lang.String uri, HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
doForward
in class WpRequestProcessor
uri
- Uri or Definition name to forward.request
- Current page request.response
- Current page response.
java.io.IOException
- if an input/output error occurs
ServletException
- if a servlet exception occursprotected void processForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward) throws java.io.IOException, ServletException
Description from the Struts Tiles Request Processor.
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.
processForwardConfig
in class WpRequestProcessor
request
- The servlet request we are processing.response
- The servlet response we are creating.forward
- The ActionForward controlling where we go next.
java.io.IOException
- if an input/output error occurs.
ServletException
- if a servlet exception occurs.protected void internalModuleRelativeForward(java.lang.String uri, HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
Description from the Struts Tiles Request Processor.
Catch the call to a module relative forward. If the specified uri is a tiles definition name, insert it. Otherwise, parent processing is called. Do a module relative forward to specified uri using request dispatcher. Uri is relative to the current module. The real uri is computed 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.
uri
- Module-relative URI to forward to.request
- Current page request.response
- Current page response.
java.io.IOException
- if an input/output error occurs.
ServletException
- if a servlet exception occurs.protected void internalModuleRelativeInclude(java.lang.String uri, HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
uri
- Module-relative URI to forward to.request
- Current page request.response
- Current page response.
java.io.IOException
ServletException
public DefinitionsFactory getDefinitionsFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |