com.oroad.stxx.plugin
Class StxxPlugin

java.lang.Object
  extended bycom.oroad.stxx.plugin.StxxPlugin
All Implemented Interfaces:
org.apache.struts.action.PlugIn

public class StxxPlugin
extends java.lang.Object
implements org.apache.struts.action.PlugIn

This plugin configures stxx as the request processor for Struts. It will only replace the request processor if the request processor is the Struts default or the one Tiles uses.

Author:
Don Brown

Constructor Summary
StxxPlugin()
           
 
Method Summary
 void destroy()
          Destroys the plugin
 void init(org.apache.struts.action.ActionServlet servlet, org.apache.struts.config.ModuleConfig config)
          Initializes the stxx plugin.
protected  void initRequestProcessorClass(org.apache.struts.action.ActionServlet servlet, org.apache.struts.config.ModuleConfig config)
          Initializes the stxx request processor
 void setUseChainProcessor(boolean val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StxxPlugin

public StxxPlugin()
Method Detail

init

public void init(org.apache.struts.action.ActionServlet servlet,
                 org.apache.struts.config.ModuleConfig config)
          throws javax.servlet.ServletException
Initializes the stxx plugin.

Specified by:
init in interface org.apache.struts.action.PlugIn
Parameters:
servlet - The servlet
config - The module config
Throws:
javax.servlet.ServletException - If something goes wrong

destroy

public void destroy()
Destroys the plugin

Specified by:
destroy in interface org.apache.struts.action.PlugIn

setUseChainProcessor

public void setUseChainProcessor(boolean val)

initRequestProcessorClass

protected void initRequestProcessorClass(org.apache.struts.action.ActionServlet servlet,
                                         org.apache.struts.config.ModuleConfig config)
                                  throws javax.servlet.ServletException
Initializes the stxx request processor

Parameters:
servlet - The servlet
config - The module config
Throws:
javax.servlet.ServletException - If something goes wrong