|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.core.NullPortlet
public class NullPortlet
Constructor Summary | |
---|---|
NullPortlet()
|
Method Summary | |
---|---|
void |
destroy()
Called by the portlet container to indicate to a portlet that the portlet is being taken out of service. |
void |
init(PortletConfig arg0)
Called by the portlet container to indicate to a portlet that the portlet is being placed into service. |
void |
processAction(ActionRequest arg0,
ActionResponse arg1)
Called by the portlet container to allow the portlet to process an action request. |
void |
processEvent(EventRequest arg0,
EventResponse arg1)
Called by the portlet container requesting the portlet to process a specific event. |
void |
render(RenderRequest arg0,
RenderResponse arg1)
Called by the portlet container to allow the portlet to generate the content of the response based on its current state. |
void |
serveResource(ResourceRequest arg0,
ResourceResponse arg1)
Called by the portlet container to allow the portlet to generate the resource content based on its current state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullPortlet()
Method Detail |
---|
public void processEvent(EventRequest arg0, EventResponse arg1) throws PortletException, java.io.IOException
EventPortlet
processEvent
in interface EventPortlet
arg0
- the event requestarg1
- the event response
PortletException
- if the portlet has problems fulfilling the
request
UnavailableException
- if the portlet is unavailable to process the event at this time
PortletSecurityException
- if the portlet cannot fullfill this request because of security reasons
java.io.IOException
- if the streaming causes an I/O problempublic void serveResource(ResourceRequest arg0, ResourceResponse arg1) throws PortletException, java.io.IOException
ResourceServingPortlet
renderResource
call.
serveResource
in interface ResourceServingPortlet
arg0
- the resource requestarg1
- the resource response
PortletException
- if the portlet has problems fulfilling the
rendering request
UnavailableException
- if the portlet is unavailable to perform render at this time
PortletSecurityException
- if the portlet cannot fullfill this request because of security reasons
java.io.IOException
- if the streaming causes an I/O problempublic void destroy()
Portlet
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:
destroy
in interface Portlet
public void init(PortletConfig arg0) throws PortletException
Portlet
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
PortletException
init
in interface Portlet
arg0
- a PortletConfig
object
containing the portlet's
configuration and initialization parameters
PortletException
- if an exception has occurred that
interferes with the portlet's normal
operation.
UnavailableException
- if the portlet cannot perform the initialization at this time.public void processAction(ActionRequest arg0, ActionResponse arg1) throws PortletException, java.io.IOException
Portlet
RenderResponse.createActionURL()
method.
Typically, in response to an action request, a portlet updates state based on the information sent in the action request parameters. In an action the portlet may:
A client request triggered by an action URL translates into one action request and many render requests, one per portlet in the portal page. The action processing must be finished before the render requests can be issued.
processAction
in interface Portlet
arg0
- the action requestarg1
- the action response
PortletException
- if the portlet has problems fulfilling the
request
UnavailableException
- if the portlet is unavailable to process the action at this time
PortletSecurityException
- if the portlet cannot fullfill this request because of security reasons
java.io.IOException
- if the streaming causes an I/O problempublic void render(RenderRequest arg0, RenderResponse arg1) throws PortletException, java.io.IOException
Portlet
render
in interface Portlet
arg0
- the render requestarg1
- the render response
PortletException
- if the portlet has problems fulfilling the
rendering request
UnavailableException
- if the portlet is unavailable to perform render at this time
PortletSecurityException
- if the portlet cannot fullfill this request because of security reasons
java.io.IOException
- if the streaming causes an I/O problem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |