| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object HttpServlet com.ibm.wps.pe.pc.legacy.cache.CacheablePortlet org.apache.jetspeed.portlet.Portlet org.apache.jetspeed.portlet.PortletAdapter com.ibm.wps.portlets.struts.WpsStrutsPortlet
public class WpsStrutsPortlet
The WpsStrutsPortlet
class is specified in the portlet
deployment descriptor for Struts-based portlets. This class can be subclassed
to customize the behavior of the portlet. In general, the WpsRequestProcessor should
be subclassed to customize the behavior of the Struts applicaton. This class should
be subclassed to affect the Portal behavior.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.jetspeed.portlet.Portlet |
---|
Portlet.Mode, Portlet.ModeModifier |
Field Summary | |
---|---|
protected static MessageResources | messages
The message resources for the Struts Portlet Framework. |
static java.lang.String | STRUTS_SERVLET_MAPPING_KEY
The key used to identify the Struts servlet mapping in the servlet context. |
Constructor Summary | |
---|---|
WpsStrutsPortlet()
Construtor for the WpsStrutsPortlet. |
Method Summary | |
---|---|
void | actionPerformed(ActionEvent event)
Called by the portlet container to allow the portlet to process an action request. |
void | beginPage(PortletRequest portletRequest,
PortletResponse portletResponse)
Begin Page. |
protected WpsActionServlet | createActionServlet(ServletContext servletContext,
PortletConfig portletConfig,
WpsStrutsInfo strutsInfo)
Returns the WpsActionServlet for this application. |
protected ViewCommandExecutionContext | createCommandExecutionContext(PortletContext portletContext,
ModuleContext moduleContext,
ServletContext servletContext)
Creates a ViewCommandExecutionContext to be used when executing a ViewCommand. |
protected PortletRequest | createPortletRequestWrapper(PortletRequest portletRequest)
Creates a portlet request wrapper. |
void | destroy(PortletConfig config)
Destroys the portlet. |
protected void | destroyCommandManagerPlugin(PortletConfig portletConfig)
Calls the destroy method of the plugin. |
void | doConfigure(PortletRequest request,
PortletResponse response)
Render method for configure mode. |
void | doEdit(PortletRequest request,
PortletResponse response)
Render method for edit mode. |
void | doHelp(PortletRequest request,
PortletResponse response)
Render method for help mode. |
protected void | doService(PortletRequest portletRequest,
PortletResponse response)
The common processing for doView, doHelp, doConfigure and doEdit. |
void | doView(PortletRequest request,
PortletResponse response)
Render method for view mode. |
void | endPage(PortletRequest request,
PortletResponse response)
End Page. |
WpsActionServlet | getActionServlet()
Returns the WpsActionServlet object. |
long | getLastModified(PortletRequest request)
Gets the last modified time. |
protected MessageResources | getMessages()
Creates and fetches the default message resources for the Struts Portlet Framework. |
PortletContext | getPortletContext()
Returns the portlet context. |
PortletLog | getPortletLog()
Gets the portlet log. |
ServletContext | getServletContext()
Returns the servlet context. |
ServletContext | getServletContextWrapper()
Returns the servlet context wrapper. |
protected ServletContext | getServletContextWrapper(PortletConfig portletConfig,
ServletContext servletContext)
Returns a servlet context that places the portlet attributes in their proper namescopes. |
WpsStrutsInfo | getStrutsInfo()
Returns the StrutsInfo object. |
java.lang.String | getStrutsRoot()
Returns the Struts Context root. |
protected java.util.Vector | ServletContext)">getWelcomeFileList(ServletContext servletContext)
Gets the welcome file list. |
protected java.util.List | getWelcomeFileList(ServletContext servletContext,
PortletContext portletContext,
PortletRequest portletRequest)
Gets the welcome file list. |
void | init(PortletConfig portletConfig)
Called by the portlet container to indicate to a portlet that the portlet is being placed into service. |
protected void | initCommandManagerPlugin(PortletConfig portletConfig)
Initializes the command manager factory plugin. |
void | initConcrete(PortletSettings settings)
Called by the portlet container to indicate that the concrete portlet is put into service. |
void | login(PortletRequest request)
Called by the portlet container to ask the portlet to initialize a personalized user experience. |
void | logout(PortletSession session)
Called by the portlet container when the user has logged out. |
void | messageReceived(MessageEvent event)
Process the sent message. |
protected void | migratePseudoResponse(PortletResponse pseudoResponse,
PortletResponse realResponse)
Migrate the information from the PseudoResponse used during actionPerformed processing to real response. |
void | processAction(PortletRequest portletRequest,
java.lang.String strutsAction)
Deprecated. |
protected void | processActionPerformed(PortletRequest portletRequest)
The processing for actionPerformed. |
protected void | processLocale(PortletRequest request)
Sets the locale to the locale obtained from the portlet request object. |
void | processStrutsAction(PortletRequest portletRequest,
java.lang.String strutsAction)
Invokes the Struts request processor for the specified Struts action. |
protected void | readInitParameters(ServletContext servletContext,
PortletConfig portletConfig,
WpsStrutsInfo strutsInfo)
Reads the init parameters for this portlet from the web deployment descriptor and performs the appropriate configuration. |
protected void | saveWelcomeFileCommand(PortletRequest request)
Saves the Welcome File Command. |
void | setCommonsLogFactory()
Deprecated. The LogFactory implementation class is set in commons-logging.properties.
|
protected static void | setupBase(PortletRequest request,
PortletResponse response,
PortletConfig config)
Allows BaseImplUtils to set up the processing. |
protected void | setupRenderPhase(PortletRequest request)
Sets up the render phase. |
protected void | setupRequestPhase(PortletRequest request)
Sets up the request phase. |
Methods inherited from class org.apache.jetspeed.portlet.PortletAdapter |
---|
destroyConcrete, getPortletConfig, getVariable, removeVariable, service, setVariable |
Methods inherited from class org.apache.jetspeed.portlet.Portlet |
---|
destroy, doGet, doPost, doPut, getId, getInitParameter, getInitParameterNames, getPortletSettings, getServletInfo |
Methods inherited from class com.ibm.wps.pe.pc.legacy.cache.CacheablePortlet |
---|
getSharingPolicy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static MessageResources messages
public static final java.lang.String STRUTS_SERVLET_MAPPING_KEY
Constructor Detail |
---|
public WpsStrutsPortlet()
Method Detail |
---|
public WpsActionServlet getActionServlet()
public WpsStrutsInfo getStrutsInfo()
public java.lang.String getStrutsRoot()
public ServletContext getServletContextWrapper()
public ServletContext getServletContext()
public PortletContext getPortletContext()
public void init(PortletConfig portletConfig) throws UnavailableException
protected MessageResources getMessages()
public void initConcrete(PortletSettings settings) throws UnavailableException
protected WpsActionServlet createActionServlet(ServletContext servletContext, PortletConfig portletConfig, WpsStrutsInfo strutsInfo)
protected void readInitParameters(ServletContext servletContext, PortletConfig portletConfig, WpsStrutsInfo strutsInfo)
public void login(PortletRequest request) throws PortletException
public void logout(PortletSession session) throws PortletException
protected void doService(PortletRequest portletRequest, PortletResponse response) throws PortletException, java.io.IOException
public void doView(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
public void doHelp(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
public void doEdit(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
public void doConfigure(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
protected void saveWelcomeFileCommand(PortletRequest request) throws PortletException
public void destroy(PortletConfig config)
public void actionPerformed(ActionEvent event) throws PortletException
public PortletLog getPortletLog()
protected void migratePseudoResponse(PortletResponse pseudoResponse, PortletResponse realResponse)
public void beginPage(PortletRequest portletRequest, PortletResponse portletResponse) throws PortletException, java.io.IOException
protected void processActionPerformed(PortletRequest portletRequest) throws java.io.IOException, ServletException
public void endPage(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
protected ViewCommandExecutionContext createCommandExecutionContext(PortletContext portletContext, ModuleContext moduleContext, ServletContext servletContext)
public void messageReceived(MessageEvent event) throws PortletException
protected java.util.List getWelcomeFileList(ServletContext servletContext, PortletContext portletContext, PortletRequest portletRequest)
protected java.util.Vector getWelcomeFileList(ServletContext servletContext)
protected PortletRequest createPortletRequestWrapper(PortletRequest portletRequest)
public void processStrutsAction(PortletRequest portletRequest, java.lang.String strutsAction) throws PortletException
public void processAction(PortletRequest portletRequest, java.lang.String strutsAction)
protected static void setupBase(PortletRequest request, PortletResponse response, PortletConfig config)
protected void processLocale(PortletRequest request)
NOTE - The Struts request processor implementation will only set a locale if a locale object is not already set. This method effectively defeats the Struts implementation.
We have also seen Struts actions that set the locale object in session, so the usePortalsLocale must be set to false for those applications to work.
public long getLastModified(PortletRequest request)
protected void setupRenderPhase(PortletRequest request)
protected void setupRequestPhase(PortletRequest request)
public void setCommonsLogFactory()
LogFactory
implementation class is set in commons-logging.properties.
NOTE - The log messages from the Portal environment for Struts will continue to be logged to the portal logger.
protected ServletContext getServletContextWrapper(PortletConfig portletConfig, ServletContext servletContext)
protected void initCommandManagerPlugin(PortletConfig portletConfig)
protected void destroyCommandManagerPlugin(PortletConfig portletConfig)
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |