|
||||||||||
| 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 GenericPortletPortletException - if fail to read the configuration file.
public void processAction(ActionRequest request,
ActionResponse response)
throws PortletException,
java.io.IOException
GenericPortletRenderResponse.createActionURL() method.
The default implementation throws an exception.
processAction in interface PortletprocessAction in class GenericPortletrequest - 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
java.io.IOException - if the streaming causes an I/O problem
protected void doHeaders(RenderRequest request,
RenderResponse response)
GenericPortletThe 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,
java.io.IOException
GenericPortlet@ProcessEvent(name=) and the signaturepublic void (EventRequest, EventResponse) throws PortletException, java.io.IOException .
processEvent in interface EventPortletprocessEvent in class GenericPortletrequest - 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
java.io.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,
java.io.IOException
GenericPortletThe 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 ResourceServingPortletserveResource in class GenericPortletarg0 - 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 problem
public void doView(RenderRequest request,
RenderResponse response)
throws PortletException,
java.io.IOException
view mode.
TODO: more javadoc.
doView in class GenericPortletrequest - 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
java.io.IOException - if the streaming causes an I/O problem
protected void doEdit(RenderRequest request,
RenderResponse response)
throws PortletException,
java.io.IOException
edit mode. This method dispatches the request
and response to the edit JSP page (/jsp/edit.jsp).
doEdit in class GenericPortletrequest - 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
java.io.IOException - if the streaming causes an I/O problem
protected void doHelp(RenderRequest request,
RenderResponse response)
throws PortletException,
java.io.IOException
help mode. This method dispatches the request
and response to the help JSP page (/jsp/help.jsp).
doHelp in class GenericPortletrequest - 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
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 | |||||||||