| org.apache.cocoon.portlet.ManagedCocoonPortlet
ManagedCocoonPortlet | public class ManagedCocoonPortlet extends GenericPortlet (Code) | | 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.
version: CVS $Id: ManagedCocoonPortlet.java 503698 2007-02-05 14:30:30Z cziegeler $ |
Method Summary | |
protected Environment | getEnvironment(String servletPath, String pathInfo, String uri, ActionRequest req, ActionResponse res) | protected Environment | getEnvironment(String servletPath, String pathInfo, String uri, RenderRequest req, RenderResponse res) | public String | getInitParameter(String name) Get an initialisation parameter. | protected String | getInitParameter(String name, String defaultValue) | protected boolean | getInitParameterAsBoolean(String name, boolean defaultValue) | protected int | getInitParameterAsInteger(String name, int defaultValue) | protected Logger | getLogger() | public void | init(PortletConfig conf) Initialize this CocoonPortlet instance. | protected void | initLogger() | protected void | manageException(ActionRequest req, ActionResponse res, Environment env, String uri, String title, String message, String description, Exception e) | protected void | manageException(RenderRequest req, RenderResponse res, Environment env, String uri, String title, String message, String description, Exception e) | public void | processAction(ActionRequest req, ActionResponse res) | public void | render(RenderRequest req, RenderResponse res) Process the specified RenderRequest producing output
on the specified RenderResponse . |
HOUR | final static float HOUR(Code) | | |
MINUTE | final static float MINUTE(Code) | | |
PROCESSED_BY | final protected static String PROCESSED_BY(Code) | | |
SECOND | final static float SECOND(Code) | | |
defaultSessionScope | protected int defaultSessionScope(Code) | | Default scope for the session attributes, either
javax.portlet.PortletSession.PORTLET_SCOPE or
javax.portlet.PortletSession.APPLICATION_SCOPE .
This corresponds to default-session-scope
parameter, with default value portlet .
See Also: org.apache.cocoon.environment.portlet.PortletSession |
exception | protected Exception exception(Code) | | Holds exception happened during initialization (if any)
|
hiddenShowTime | protected boolean hiddenShowTime(Code) | | If true, processing time will be added as an HTML comment
|
portletContext | protected javax.portlet.PortletContext portletContext(Code) | | |
portletContextPath | protected String portletContextPath(Code) | | This is the path to the portlet context (or the result
of calling getRealPath('/') on the PortletContext.
Note, that this can be null.
|
portletContextURL | protected String portletContextURL(Code) | | This is the url to the portlet context directory
|
requestFactory | protected RequestFactory requestFactory(Code) | | The RequestFactory is responsible for wrapping multipart-encoded
forms and for handing the file payload of incoming requests
|
servletPath | protected String servletPath(Code) | | Value to be used as servletPath in the request.
Provided via configuration parameter, if missing, defaults to the
'/portlets/' + portletName.
|
showTime | protected boolean showTime(Code) | | Allow adding processing time to the response
|
storeSessionPath | protected boolean storeSessionPath(Code) | | Store pathInfo in session
|
getInitParameter | public String getInitParameter(String name)(Code) | | Get an initialisation parameter. The value is trimmed, and null is returned if the trimmed value
is empty.
|
getInitParameter | protected String getInitParameter(String name, String defaultValue)(Code) | | Convenience method to access portlet parameters
|
getInitParameterAsBoolean | protected boolean getInitParameterAsBoolean(String name, boolean defaultValue)(Code) | | Convenience method to access boolean portlet parameters
|
getInitParameterAsInteger | protected int getInitParameterAsInteger(String name, int defaultValue)(Code) | | |
getLogger | protected Logger getLogger()(Code) | | |
init | public void init(PortletConfig conf) throws PortletException(Code) | | Initialize this 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
Parameters: conf - The PortletConfig object from the portlet container. throws: PortletException - |
initLogger | protected void initLogger()(Code) | | |
processAction | public void processAction(ActionRequest req, ActionResponse res) throws PortletException, IOException(Code) | | |
render | public void render(RenderRequest req, RenderResponse res) throws PortletException, IOException(Code) | | Process the specified RenderRequest producing output
on the specified RenderResponse .
|
|
|