Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

com.ibm.portal.struts.portlet
Class WpActionServlet

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

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

The WpActionServlet extends the Struts ActionServlet. The WpActionServlet is not an extension point for modifying the Struts application. The Request Processor and StrutsPortlet should be the extension points. The WpActionServlet is the ActionServlet object that is returned from the getServlet call in a Struts Action. The WpActionServlet can be used to obtain the portlet config and the portlet context objects.

Since:
5.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
 

Constructor Summary
WpActionServlet(javax.servlet.ServletContext servletContext, javax.servlet.ServletConfig servletConfig, javax.portlet.PortletConfig portletConfig, StrutsInfo strutsInfo)
          The WpActionServlet Constructor
 

Method Summary
 javax.portlet.PortletConfig getPortletConfig()
          Get the Portlet configuration object.
 javax.portlet.PortletContext getPortletContext()
          Get the Portlet context
 javax.servlet.ServletConfig getServletConfig()
          Get the servlet config object
 javax.servlet.ServletContext getServletContext()
          Get the servlet context object
 java.lang.String getServletName()
          Get the servlet name
 StrutsInfo getStrutsInfo()
          Get the Struts/Servlet information object
 java.lang.String getStrutsRoot()
          Get the Struts/Servlet Context Root
 void init()
          This init method just calls the super ActionServlet init method.
 void setStrutsRoot(java.lang.String strutsRoot)
          Set the Struts/Servlet Context Root
 

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

WpActionServlet

public WpActionServlet(javax.servlet.ServletContext servletContext,
                       javax.servlet.ServletConfig servletConfig,
                       javax.portlet.PortletConfig portletConfig,
                       StrutsInfo strutsInfo)
The WpActionServlet Constructor

Parameters:
servletContext - the servlet context object
servletConfig - the servlet config object
portletConfig - the portlet config object
strutsInfo - the wps struts info object

Method Detail

getServletName

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

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

getServletConfig

public javax.servlet.ServletConfig getServletConfig()
Get the servlet config object

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

getPortletConfig

public javax.portlet.PortletConfig getPortletConfig()
Get the Portlet configuration object.

Specified by:
getPortletConfig in interface PortletInfoSupplier
Returns:
returns the portlet config object

getServletContext

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

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

getPortletContext

public javax.portlet.PortletContext getPortletContext()
Get the Portlet context

Specified by:
getPortletContext in interface PortletInfoSupplier
Returns:
returns the portlet context object

getStrutsInfo

public StrutsInfo getStrutsInfo()
Get the Struts/Servlet information object

Returns:
returns the Struts Info object

getStrutsRoot

public java.lang.String getStrutsRoot()
Get the Struts/Servlet Context Root

Returns:
returns the struts context root

setStrutsRoot

public void setStrutsRoot(java.lang.String strutsRoot)
Set the Struts/Servlet Context Root

Parameters:
strutsRoot - the struts context root

init

public void init()
          throws javax.servlet.ServletException
This init method just 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

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.