当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
GetResourceBundleDuringInitPortlet - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.test.portlet.portletconfig
Class GetResourceBundleDuringInitPortlet
java.lang.Object
javax.portlet.GenericPortlet
org.jboss.portal.test.portlet.AbstractPortlet
org.jboss.portal.test.portlet.portletconfig.GetResourceBundleDuringInitPortlet
- All Implemented Interfaces:
- Portlet
- public class GetResourceBundleDuringInitPortlet
- extends AbstractPortlet
Method Summary |
void |
init(PortletConfig config)
Called by the portlet container to indicate to a portlet that the
portlet is being placed into service. |
void |
render(RenderRequest request,
RenderResponse response)
The default implementation of this method sets the title
using the getTitle method and invokes the
doDispatch method. |
Methods inherited from class javax.portlet.GenericPortlet |
destroy, doDispatch, doEdit, doHelp, doView, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, processAction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetResourceBundleDuringInitPortlet
public GetResourceBundleDuringInitPortlet()
init
public void init(PortletConfig config)
throws PortletException
- Description copied from class:
GenericPortlet
- Called by the portlet container to indicate to a portlet that the
portlet is being placed into service.
The default implementation just stores the PortletConfig
object.
The portlet container calls the init
method exactly once after instantiating the portlet.
The init
method must complete successfully
before the portlet can receive any requests.
The portlet container cannot place the portlet into service
if the init
method does one of the following:
- it throws a
PortletException
- it does not return within a time period defined by the Web server
- Specified by:
init
in interface Portlet
- Overrides:
init
in class GenericPortlet
- Parameters:
config
- a PortletConfig
object
containing the portlet
configuration and initialization parameters
- Throws:
PortletException
- if an exception has occurred that
interferes with the portlet normal
operation.
render
public void render(RenderRequest request,
RenderResponse response)
throws PortletException,
PortletSecurityException,
java.io.IOException
- Description copied from class:
GenericPortlet
- The default implementation of this method sets the title
using the
getTitle
method and invokes the
doDispatch
method.
- Specified by:
render
in interface Portlet
- Overrides:
render
in class GenericPortlet
- Parameters:
request
- the render requestresponse
- the render response
- Throws:
PortletException
- if the portlet cannot fulfilling the request
PortletSecurityException
- if the portlet cannot fullfill this request because of security reasons
java.io.IOException
- if the streaming causes an I/O problem