站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

PortletExceptionDuringRequestHandlingPortlet - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.portlet.jsr168.tck.portletinterface.spec
Class PortletExceptionDuringRequestHandlingPortlet

java.lang.Object
  extended byorg.jboss.portal.test.framework.portlet.components.AbstractTestPortlet
      extended byorg.jboss.portal.test.portlet.jsr168.tck.portletinterface.spec.PortletExceptionDuringRequestHandlingPortlet
All Implemented Interfaces:
Portlet

public class PortletExceptionDuringRequestHandlingPortlet
extends AbstractTestPortlet

DISABLED - NOT CURRENTLY USED TEST CASE

Version:
$Revision: 5493 $
Author:
Boleslaw Dawidowicz

Field Summary
static java.lang.String actionURL
           
static boolean destroyed
           
static boolean rendered
           
 
Fields inherited from class org.jboss.portal.test.framework.portlet.components.AbstractTestPortlet
 
Constructor Summary
PortletExceptionDuringRequestHandlingPortlet()
           
 
Method Summary
protected  java.lang.String createCaseTestId(java.lang.Class clazz)
          Get the test id from the class name.
 void destroy()
          Called by the portlet container to indicate to a portlet that the portlet is being taken out of service.
protected  void doProcessAction(ActionRequest req, ActionResponse resp)
           
protected  void doRender(RenderRequest req, RenderResponse resp)
           
 
Methods inherited from class org.jboss.portal.test.framework.portlet.components.AbstractTestPortlet
getPortletConfig, getPortletContext, init, marshall, processAction, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rendered

public static boolean rendered

destroyed

public static boolean destroyed

actionURL

public static java.lang.String actionURL
Constructor Detail

PortletExceptionDuringRequestHandlingPortlet

public PortletExceptionDuringRequestHandlingPortlet()
Method Detail

createCaseTestId

protected java.lang.String createCaseTestId(java.lang.Class clazz)
Description copied from class: AbstractTestPortlet
Get the test id from the class name. It can be overriden.

Overrides:
createCaseTestId in class AbstractTestPortlet

doProcessAction

protected void doProcessAction(ActionRequest req,
                               ActionResponse resp)
                        throws PortletException,
                               PortletSecurityException,
                               java.io.IOException
Overrides:
doProcessAction in class AbstractTestPortlet
Throws:
PortletException
PortletSecurityException
java.io.IOException

doRender

protected void doRender(RenderRequest req,
                        RenderResponse resp)
                 throws PortletException,
                        PortletSecurityException,
                        java.io.IOException
Overrides:
doRender in class AbstractTestPortlet
Throws:
PortletException
PortletSecurityException
java.io.IOException

destroy

public void destroy()
Description copied from interface: Portlet
Called by the portlet container to indicate to a portlet that the portlet is being taken out of service.

Before the portlet container calls the destroy method, it should allow any threads that are currently processing requests within the portlet object to complete execution. To avoid waiting forever, the portlet container can optionally wait for a predefined time before destroying the portlet object.

This method enables the portlet to do the following:

  • clean up any resources that it holds (for example, memory, file handles, threads)
  • make sure that any persistent state is synchronized with the portlet current state in memory.

Specified by:
destroy in interface Portlet
Overrides:
destroy in class AbstractTestPortlet