|
||||||||||
| 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
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 | |
private String |
applicationName
|
private boolean |
bDemoMode
|
String |
defaultEncoding
Default encoding |
(package private) String |
lastPage
|
private String |
lastQuery
|
private static org.apache.commons.logging.Log |
log
|
static String |
PARAM_APPLICATION
PARAM_APPLICATION ApplicationName identifies the caller so that the portlet only refreshes content that was supposed for the portlet. |
static String |
PARAM_DEMO_MODE
DemoMode on or off |
static String |
PARAM_PERL_SCRIPT
INIT parameters required by the Perl Portlet:PerlScript, ScriptPath, DemoMode Name of the scrip to to execute |
static String |
PARAM_SCRIPT_PATH
Name of the Script Path where the perl scripts (among others) are located |
private String |
perlScript
|
(package private) org.apache.jetspeed.rewriter.RewriterController |
rewriteController
|
(package private) org.apache.jetspeed.rewriter.RulesetRewriter |
rewriter
|
private String |
scriptPath
|
| Fields inherited from class javax.portlet.GenericPortlet |
|
| 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(StringBuffer perlRenderedPage,
javax.portlet.PortletURL actionURL,
String actionParameterName)
|
private org.apache.jetspeed.rewriter.RewriterController |
getController(String contextPath)
|
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) |
private String |
urlEncoding(String url,
String source,
String replace)
|
| 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 String PARAM_PERL_SCRIPT
public static final String PARAM_SCRIPT_PATH
public static final String PARAM_DEMO_MODE
public static final String PARAM_APPLICATION
private String perlScript
private String scriptPath
private String applicationName
private boolean bDemoMode
private static final org.apache.commons.logging.Log log
private String lastQuery
String lastPage
org.apache.jetspeed.rewriter.RulesetRewriter rewriter
org.apache.jetspeed.rewriter.RewriterController rewriteController
public String defaultEncoding
| Constructor Detail |
public PerlPortlet()
| Method Detail |
public void init(javax.portlet.PortletConfig config)
throws javax.portlet.PortletException
javax.portlet.PortletException
public void processAction(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws javax.portlet.PortletException,
IOException
actionRequest - actionResponse -
javax.portlet.PortletException
IOException
public void doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
javax.portlet.PortletException
IOException
private org.apache.jetspeed.rewriter.RewriterController getController(String contextPath)
throws Exception
Exception
protected byte[] doWebContent(StringBuffer perlRenderedPage,
javax.portlet.PortletURL actionURL,
String actionParameterName)
throws javax.portlet.PortletException
javax.portlet.PortletException
private String urlEncoding(String url,
String source,
String replace)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||