|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
org.apache.pluto.testsuite.TestPortlet
public class TestPortlet
Pluto testsuite's test portlet.
TestConfig
,
PortletTest
Constructor Summary | |
---|---|
TestPortlet()
|
Method Summary | |
---|---|
protected void |
doEdit(RenderRequest request,
RenderResponse response)
Serves up the edit mode. |
protected void |
doHeaders(RenderRequest request,
RenderResponse response)
Used by the render method to set the response properties and headers. |
protected void |
doHelp(RenderRequest request,
RenderResponse response)
Serves up the help mode. |
void |
doView(RenderRequest request,
RenderResponse response)
Serves up the view mode. |
void |
init()
Initialize the test portlet. |
void |
processAction(ActionRequest request,
ActionResponse response)
Called by the portlet container to allow the portlet to process an action request. |
void |
processEvent(EventRequest request,
EventResponse response)
Default event processing. |
void |
serveResource(ResourceRequest arg0,
ResourceResponse arg1)
Default resource serving. |
Methods inherited from class javax.portlet.GenericPortlet |
---|
destroy, doDispatch, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestPortlet()
Method Detail |
---|
public void init() throws PortletException
PortletTest
instances.
init
in class GenericPortlet
PortletException
- if fail to read the configuration file.public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException
GenericPortlet
RenderResponse.createActionURL()
method.
The default implementation throws an exception.
processAction
in interface Portlet
processAction
in class GenericPortlet
request
- the action requestresponse
- the action response
PortletException
- if the portlet cannot 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
IOException
- if the streaming causes an I/O problemprotected void doHeaders(RenderRequest request, RenderResponse response)
GenericPortlet
The portlet should override this method and set its response header using this method in order to ensure that they are set before anything is written to the output stream.
The default implemention of this method is emtpy.
doHeaders
in class GenericPortlet
public void processEvent(EventRequest request, EventResponse response) throws PortletException, IOException
GenericPortlet
@ProcessEvent(name=)
and the signaturepublic void (EventRequest, EventResponse) throws PortletException, java.io.IOException
.
processEvent
in interface EventPortlet
processEvent
in class GenericPortlet
request
- the event requestresponse
- 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
IOException
- if the streaming causes an I/O problemEventPortlet.processEvent(javax.portlet.EventRequest,
javax.portlet.EventResponse)
public void serveResource(ResourceRequest arg0, ResourceResponse arg1) throws PortletException, IOException
GenericPortlet
The default implemention of this method is to call a RequestDispatcher.foward with the ResourceID of the ResourceRequest.
If no ResourceID is set on the resource URL the default implementation does nothing.
serveResource
in interface ResourceServingPortlet
serveResource
in class GenericPortlet
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
IOException
- if the streaming causes an I/O problempublic void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
view
mode.
TODO: more javadoc.
doView
in class GenericPortlet
request
- the protlet request.response
- the portlet response.
PortletException
- if the portlet cannot fulfilling the 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
IOException
- if the streaming causes an I/O problemprotected void doEdit(RenderRequest request, RenderResponse response) throws PortletException, IOException
edit
mode. This method dispatches the request
and response to the edit JSP page (/jsp/edit.jsp
).
doEdit
in class GenericPortlet
request
- the portlet request.response
- the portlet response.
PortletException
- if the portlet cannot fulfilling the 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
IOException
- if the streaming causes an I/O problemprotected void doHelp(RenderRequest request, RenderResponse response) throws PortletException, IOException
help
mode. This method dispatches the request
and response to the help JSP page (/jsp/help.jsp
).
doHelp
in class GenericPortlet
request
- the portlet request.response
- the portlet response.
PortletException
- if the portlet cannot fulfilling the 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
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 |