|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.portlet.GenericPortlet
org.jboss.portal.core.samples.basic.FSContentDrivenPortlet
public class FSContentDrivenPortlet
An example of content driven portlet that display the files located in the war file. The portlet does not implement any code to improve performance like caching in order to keep the code easier to understand. It should not be used in production for a large scale portal.
Content URI is defined as the canonical path of the file relative to the war file context root.
| Field Summary | |
|---|---|
static javax.portlet.PortletMode |
EDIT_CONTENT_MODE
The edit_content mode. |
| Constructor Summary | |
|---|---|
FSContentDrivenPortlet()
|
|
| Method Summary | |
|---|---|
protected void |
doDispatch(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse resp)
Additional dispatch that will call the doEditContent(RenderRequest,RenderResponse) method. |
protected void |
doEditContent(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse resp)
Implements the edit content functionnality. |
protected void |
doView(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse resp)
|
protected java.lang.String |
getContentURI(java.io.File file)
Return the content uri of the file or null if it cannot be determined. |
protected java.io.File |
getFile(java.lang.String contentURI)
Return a file from the specified path or null if the file cannot be determined. |
void |
processAction(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse resp)
|
| Methods inherited from class javax.portlet.GenericPortlet |
|---|
destroy, doEdit, doHeaders, doHelp, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, init, processEvent, render, serveResource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final javax.portlet.PortletMode EDIT_CONTENT_MODE
| Constructor Detail |
|---|
public FSContentDrivenPortlet()
| Method Detail |
|---|
protected void doDispatch(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse resp)
throws javax.portlet.PortletException,
javax.portlet.PortletSecurityException,
java.io.IOException
doEditContent(RenderRequest,RenderResponse) method.
doDispatch in class javax.portlet.GenericPortletjavax.portlet.PortletException
javax.portlet.PortletSecurityException
java.io.IOException
protected void doEditContent(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse resp)
throws javax.portlet.PortletException,
javax.portlet.PortletSecurityException,
java.io.IOException
javax.portlet.PortletException
javax.portlet.PortletSecurityException
java.io.IOException
protected void doView(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse resp)
throws javax.portlet.PortletException,
javax.portlet.PortletSecurityException,
java.io.IOException
doView in class javax.portlet.GenericPortletjavax.portlet.PortletException
javax.portlet.PortletSecurityException
java.io.IOException
public void processAction(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse resp)
throws javax.portlet.PortletException,
javax.portlet.PortletSecurityException,
java.io.IOException
processAction in interface javax.portlet.PortletprocessAction in class javax.portlet.GenericPortletjavax.portlet.PortletException
javax.portlet.PortletSecurityException
java.io.IOException
protected java.io.File getFile(java.lang.String contentURI)
throws java.io.IOException
contentURI - the file path
java.io.IOException
protected java.lang.String getContentURI(java.io.File file)
throws java.io.IOException
file - the file to get the URI from
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||