|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.portlet.GenericPortlet org.apache.cocoon.portlet.ManagedCocoonPortlet
public class ManagedCocoonPortlet
This is the entry point for Cocoon execution as an JSR-168 Portlet.
This implementation of the Portlet interface requires that someone will first create and initialize an instance of the Cocoon object, and this Portlet will use this instance to process requests.
Field Summary | |
---|---|
protected int |
defaultSessionScope
Default scope for the session attributes, either PortletSession.PORTLET_SCOPE or
PortletSession.APPLICATION_SCOPE . |
protected PortletContext |
envPortletContext
|
protected Exception |
exception
Holds exception happened during initialization (if any) |
protected boolean |
hiddenShowTime
If true, processing time will be added as an HTML comment |
protected javax.portlet.PortletContext |
portletContext
|
protected String |
portletContextPath
This is the path to the portlet context (or the result of calling getRealPath('/') on the PortletContext. |
protected String |
portletContextURL
This is the url to the portlet context directory |
protected static String |
PROCESSED_BY
|
protected RequestFactory |
requestFactory
The RequestFactory is responsible for wrapping multipart-encoded forms and for handing the file payload of incoming requests |
protected String |
servletPath
Value to be used as servletPath in the request. |
protected boolean |
showTime
Allow adding processing time to the response |
protected boolean |
storeSessionPath
Store pathInfo in session |
Constructor Summary | |
---|---|
ManagedCocoonPortlet()
|
Method Summary | |
---|---|
protected Environment |
getEnvironment(String servletPath,
String pathInfo,
String uri,
javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
Create the environment for the request |
protected Environment |
getEnvironment(String servletPath,
String pathInfo,
String uri,
javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
Create the environment for the request |
String |
getInitParameter(String name)
Get an initialisation parameter. |
protected String |
getInitParameter(String name,
String defaultValue)
Convenience method to access portlet parameters |
protected boolean |
getInitParameterAsBoolean(String name,
boolean defaultValue)
Convenience method to access boolean portlet parameters |
protected int |
getInitParameterAsInteger(String name,
int defaultValue)
|
protected Logger |
getLogger()
|
void |
init(javax.portlet.PortletConfig conf)
Initialize this CocoonPortlet instance. |
protected void |
initLogger()
|
protected void |
manageException(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res,
Environment env,
String uri,
String title,
String message,
String description,
Exception e)
|
protected void |
manageException(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res,
Environment env,
String uri,
String title,
String message,
String description,
Exception e)
|
void |
processAction(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
|
void |
render(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
Process the specified RenderRequest producing output
on the specified RenderResponse . |
Methods inherited from class javax.portlet.GenericPortlet |
---|
destroy, doDispatch, doEdit, doHelp, doView, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String PROCESSED_BY
protected Exception exception
protected boolean showTime
protected boolean hiddenShowTime
protected javax.portlet.PortletContext portletContext
protected PortletContext envPortletContext
protected String portletContextPath
protected String portletContextURL
protected RequestFactory requestFactory
protected String servletPath
protected int defaultSessionScope
PortletSession.PORTLET_SCOPE
or
PortletSession.APPLICATION_SCOPE
.
This corresponds to default-session-scope
parameter, with default value portlet
.
PortletSession
protected boolean storeSessionPath
Constructor Detail |
---|
public ManagedCocoonPortlet()
Method Detail |
---|
public void init(javax.portlet.PortletConfig conf) throws javax.portlet.PortletException
CocoonPortlet
instance.
Uses the following parameters: portlet-logger enable-uploads autosave-uploads overwrite-uploads upload-max-size show-time container-encoding form-encoding manage-exceptions servlet-path
init
in interface javax.portlet.Portlet
init
in class javax.portlet.GenericPortlet
conf
- The PortletConfig object from the portlet container.
javax.portlet.PortletException
public void processAction(javax.portlet.ActionRequest req, javax.portlet.ActionResponse res) throws javax.portlet.PortletException, IOException
processAction
in interface javax.portlet.Portlet
processAction
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
public void render(javax.portlet.RenderRequest req, javax.portlet.RenderResponse res) throws javax.portlet.PortletException, IOException
RenderRequest
producing output
on the specified RenderResponse
.
render
in interface javax.portlet.Portlet
render
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
protected void manageException(javax.portlet.ActionRequest req, javax.portlet.ActionResponse res, Environment env, String uri, String title, String message, String description, Exception e) throws javax.portlet.PortletException
javax.portlet.PortletException
protected void manageException(javax.portlet.RenderRequest req, javax.portlet.RenderResponse res, Environment env, String uri, String title, String message, String description, Exception e) throws IOException, javax.portlet.PortletException
IOException
javax.portlet.PortletException
protected Environment getEnvironment(String servletPath, String pathInfo, String uri, javax.portlet.ActionRequest req, javax.portlet.ActionResponse res) throws Exception
Exception
protected Environment getEnvironment(String servletPath, String pathInfo, String uri, javax.portlet.RenderRequest req, javax.portlet.RenderResponse res) throws Exception
Exception
public String getInitParameter(String name)
getInitParameter
in interface javax.portlet.PortletConfig
getInitParameter
in class javax.portlet.GenericPortlet
protected String getInitParameter(String name, String defaultValue)
protected boolean getInitParameterAsBoolean(String name, boolean defaultValue)
protected int getInitParameterAsInteger(String name, int defaultValue)
protected void initLogger()
protected Logger getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |