|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
org.apache.portals.bridges.perl.PerlPortlet
public class PerlPortlet
This portlet is executes a Perl/cgi files in a portlet. Note: The Perl Portlet uses the rewriter component that requires config xml files. Make sre that the portlet application using the Perl Portlet has the following files included in WEB-INF/conf: rewriter-rules-mapping.xml and default-rewriter-rules.xml
Field Summary | |
---|---|
java.lang.String |
defaultEncoding
Default encoding |
static java.lang.String |
PARAM_APPLICATION
PARAM_APPLICATION ApplicationName identifies the caller so that the portlet only refreshes content that was supposed for the portlet. |
static java.lang.String |
PARAM_DEMO_MODE
DemoMode on or off |
static java.lang.String |
PARAM_PERL_SCRIPT
INIT parameters required by the Perl Portlet:PerlScript, ScriptPath, DemoMode Name of the scrip to to execute |
static java.lang.String |
PARAM_SCRIPT_PATH
Name of the Script Path where the perl scripts (among others) are located |
Constructor Summary | |
---|---|
PerlPortlet()
|
Method Summary | |
---|---|
void |
doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
doView Executes the perl script that is defined by the property PerlScript. |
protected byte[] |
doWebContent(java.lang.StringBuffer perlRenderedPage,
javax.portlet.PortletURL actionURL,
java.lang.String actionParameterName)
|
void |
init(javax.portlet.PortletConfig config)
|
void |
processAction(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
processAction() Checks action initiated by the perl portlet (invoking other perl scripts) |
Methods inherited from class javax.portlet.GenericPortlet |
---|
destroy, doDispatch, doEdit, doHelp, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAM_PERL_SCRIPT
public static final java.lang.String PARAM_SCRIPT_PATH
public static final java.lang.String PARAM_DEMO_MODE
public static final java.lang.String PARAM_APPLICATION
public java.lang.String defaultEncoding
Constructor Detail |
---|
public PerlPortlet()
Method Detail |
---|
public void init(javax.portlet.PortletConfig config) throws javax.portlet.PortletException
init
in interface javax.portlet.Portlet
init
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
public void processAction(javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws javax.portlet.PortletException, java.io.IOException
processAction
in interface javax.portlet.Portlet
processAction
in class javax.portlet.GenericPortlet
actionRequest
- actionResponse
-
javax.portlet.PortletException
java.io.IOException
public void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, java.io.IOException
doView
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
java.io.IOException
protected byte[] doWebContent(java.lang.StringBuffer perlRenderedPage, javax.portlet.PortletURL actionURL, java.lang.String actionParameterName) throws javax.portlet.PortletException
javax.portlet.PortletException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |