Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

com.ibm.wps.portlets.struts
Class WpsActionServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.struts.action.ActionServlet
              extended bycom.ibm.wps.portlets.struts.WpsActionServlet
All Implemented Interfaces:
PortletInfoSupplier, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class WpsActionServlet
extends org.apache.struts.action.ActionServlet
implements PortletInfoSupplier

The WpsActionServlet extends the Struts ActionServlet. The WpsActionServlet is not an extension point for modifying the Struts application. The request processor and WpsStrutsPortlet should be the extension points. The WpsActionServlet is the ActionServlet object that is returned from the getServlet call in a Struts action. The WpsActionServlet can be used to obtain the portlet config and the portlet context objects, as well as the servlet config and context.

Since:
4.1
See Also:
Serialized Form

Field Summary
static java.lang.String INCLUDE_SERVLET_PATH
          The request attribute under which the servlet path information is stored for processing during a RequestDispatcher.include() call.
 

Fields inherited from class org.apache.struts.action.ActionServlet
config, configDigester, convertNull, dataSources, debug, internal, internalName, log, processor, registrations, servletMapping, servletName
 

Fields inherited from interface com.ibm.wps.portlets.struts.PortletInfoSupplier
COPYRIGHT
 

Constructor Summary
WpsActionServlet(javax.servlet.ServletContext servletContext, org.apache.jetspeed.portlet.PortletConfig portletConfig, WpsStrutsInfo strutsInfo)
          WpsActionServlet constructor.
 

Method Summary
 org.apache.jetspeed.portlet.PortletConfig getPortletConfig()
          Gets the portlet configuration object.
 org.apache.jetspeed.portlet.PortletContext getPortletContext()
          Gets the portlet context object.
 javax.servlet.ServletConfig getServletConfig()
          Gets the servlet configuration object.
 javax.servlet.ServletContext getServletContext()
          Gets the servlet context object.
 java.lang.String getServletName()
          Gets the servlet name.
 WpsStrutsInfo getStrutsInfo()
          Gets the Struts/Servlet information object.
 java.lang.String getStrutsRoot()
          Gets the Struts/servlet context root.
 com.ibm.wps.portlet.filters.TranscodingFilterConfigurator getTranscodingFilterConfigurator()
          Gets the transcoding filter configurator.
 void init()
          Calls the super, ActionServlet init method.
 void setStrutsRoot(java.lang.String strutsRoot)
          Sets the Struts/servlet context root.
 void setTranscodingFilterConfigurator(com.ibm.wps.portlet.filters.TranscodingFilterConfigurator configurator)
          Sets the transcoding filter configurator.
 

Methods inherited from class org.apache.struts.action.ActionServlet
addServletMapping, destroy, destroyApplications, destroyConfigDigester, destroyDataSources, destroyInternal, destroyModules, doGet, doPost, findDataSource, findFormBean, findForward, findMapping, getApplicationConfig, getDebug, getInternal, getModuleConfig, getRequestProcessor, getResources, initApplicationConfig, initApplicationDataSources, initApplicationMessageResources, initApplicationPlugIns, initConfigDigester, initDataSources, initInternal, initModuleConfig, initModuleDataSources, initModuleMessageResources, initModulePlugIns, initOther, initServlet, log, process
 

Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 

Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletInfo, init, log, log
 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCLUDE_SERVLET_PATH

public static final java.lang.String INCLUDE_SERVLET_PATH
The request attribute under which the servlet path information is stored for processing during a RequestDispatcher.include() call.

See Also:
Constant Field Values

Constructor Detail

WpsActionServlet

public WpsActionServlet(javax.servlet.ServletContext servletContext,
                        org.apache.jetspeed.portlet.PortletConfig portletConfig,
                        WpsStrutsInfo strutsInfo)
WpsActionServlet constructor. The objects passed in must not be null.

Parameters:
servletContext - servlet context
portletConfig - portlet config
strutsInfo - the wps Struts info
Throws:
java.lang.NullPointerException - if parameters are null

Method Detail

getServletName

public java.lang.String getServletName()
Gets the servlet name.

Specified by:
getServletName in interface javax.servlet.ServletConfig
Returns:
returns the name of the servlet

getServletConfig

public javax.servlet.ServletConfig getServletConfig()
Gets the servlet configuration object.

Specified by:
getServletConfig in interface javax.servlet.Servlet
Returns:
returns the ServletConfig object

getPortletConfig

public org.apache.jetspeed.portlet.PortletConfig getPortletConfig()
Gets the portlet configuration object.

Specified by:
getPortletConfig in interface PortletInfoSupplier
Returns:
returns the PortletConfig object

getServletContext

public javax.servlet.ServletContext getServletContext()
Gets the servlet context object.

Specified by:
getServletContext in interface javax.servlet.ServletConfig
Returns:
returns the ServletContext object

getPortletContext

public org.apache.jetspeed.portlet.PortletContext getPortletContext()
Gets the portlet context object.

Specified by:
getPortletContext in interface PortletInfoSupplier
Returns:
returns the PortletContext object

getStrutsInfo

public WpsStrutsInfo getStrutsInfo()
Gets the Struts/Servlet information object.

Returns:
returns the WpsStrutsInfo object

getStrutsRoot

public java.lang.String getStrutsRoot()
Gets the Struts/servlet context root.

Returns:
the Struts context root

setStrutsRoot

public void setStrutsRoot(java.lang.String strutsRoot)
Sets the Struts/servlet context root.

Parameters:
strutsRoot - the Struts context root

init

public void init()
          throws javax.servlet.ServletException
Calls the super, ActionServlet init method. The ActionServlet actually digests the Struts configuration.

Throws:
javax.servlet.ServletException - if there is a problem digesting the configuration

setTranscodingFilterConfigurator

public void setTranscodingFilterConfigurator(com.ibm.wps.portlet.filters.TranscodingFilterConfigurator configurator)
Sets the transcoding filter configurator.

Parameters:
configurator - the TranscodingFilterConfigurator object

getTranscodingFilterConfigurator

public com.ibm.wps.portlet.filters.TranscodingFilterConfigurator getTranscodingFilterConfigurator()
Gets the transcoding filter configurator.

Returns:
returns the TranscodingFilterConfigurator

Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.