|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.jetspeed.portal.AbstractPortlet
The AbstractPortlet class is a convenience class for people wanting to implement a portlet. Most methods of the abstract Portal class have a default implementation provided.
Constructor Summary | |
AbstractPortlet()
|
Method Summary | |
void |
destroy()
Called by the portlet container to indicate to this portlet that it is being taken out of service. |
void |
doAdmin(PortletRequest aRequest,
PortletResponse aResponse)
|
void |
doAdminSave(PortletRequest aRequest,
PortletResponse aResponse)
|
void |
doContent(PortletRequest aRequest,
PortletResponse aResponse)
|
void |
doDetails(PortletRequest aRequest,
PortletResponse aResponse)
|
void |
doEdit(PortletRequest aRequest,
PortletResponse aResponse)
|
void |
doEditSave(PortletRequest aRequest,
PortletResponse aResponse)
|
void |
doHelp(PortletRequest aRequest,
PortletResponse aResponse)
|
PortletConfig |
getPortletConfig()
Returns the configuration of this portlet. |
java.lang.String |
getPortletInfo()
Returns information about the servlet, such as author, version, and copyright. |
void |
init(PortletConfig aConfig)
Called by the portlet container to indicate to this portlet that it is being placed into service. |
void |
service(PortletRequest aRequest,
PortletResponse aResponse)
The service method is called by the framework to ask this portlet to render its content using the given context. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AbstractPortlet()
Method Detail |
public java.lang.String getPortletInfo()
The string that this method returns should be plain text and not markup of any kind (such as HTML, XML, etc.).
public void init(PortletConfig aConfig) throws PortletException
The portlet container calls the init() method exactly once after instantiating the portlet. The init() method must complete successfully before the servlet can receive any requests.
The portlet container cannot place the portlet into service if the init() method
aConfig
- the portlet configuration containing the portlet's configuration
and initialization parametersPortletConfig.getPortletContext()
public void destroy()
This method gives the portlet an opportunity to clean up any resources that are being held (for example, memory, file handles, threads) and make sure that any persistent state is synchronized with the portlet's current state in memory.
public PortletConfig getPortletConfig()
public void service(PortletRequest aRequest, PortletResponse aResponse) throws PortletException, java.io.IOException
The context is the portlet's view of the framework. All that is required to perform the rendering of the content is accessible through the context.
Please note that every portlet gets passed a different context.
aRequest
- the requestaResponse
- the respnsepublic void doContent(PortletRequest aRequest, PortletResponse aResponse) throws PortletException, java.io.IOException
public void doDetails(PortletRequest aRequest, PortletResponse aResponse) throws PortletException, java.io.IOException
public void doEdit(PortletRequest aRequest, PortletResponse aResponse) throws PortletException, java.io.IOException
public void doEditSave(PortletRequest aRequest, PortletResponse aResponse) throws PortletException, java.io.IOException
public void doAdmin(PortletRequest aRequest, PortletResponse aResponse) throws PortletException, java.io.IOException
public void doAdminSave(PortletRequest aRequest, PortletResponse aResponse) throws PortletException, java.io.IOException
public void doHelp(PortletRequest aRequest, PortletResponse aResponse) throws PortletException, java.io.IOException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |