Liferay 6.0.5

com.liferay.util.bridges.bsf
Class BaseBSFPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by com.liferay.util.bridges.bsf.BaseBSFPortlet
All Implemented Interfaces:
EventPortlet, Portlet, PortletConfig, ResourceServingPortlet

public abstract class BaseBSFPortlet
extends GenericPortlet


Field Summary
protected  String actionFile
           
protected  org.apache.bsf.BSFManager bsfManager
           
protected  String editFile
           
protected  String[] globalFiles
           
protected  String helpFile
           
protected  String resourceFile
           
protected  String viewFile
           
 
Constructor Summary
BaseBSFPortlet()
           
 
Method Summary
protected  void declareBeans(InputStream is, PortletRequest portletRequest, PortletResponse portletResponse)
           
protected  void declareBeans(String code, PortletRequest portletRequest, PortletResponse portletResponse)
           
 void doDispatch(RenderRequest renderRequest, RenderResponse renderResponse)
           
 void doEdit(RenderRequest renderRequest, RenderResponse renderResponse)
           
 void doHelp(RenderRequest renderRequest, RenderResponse renderResponse)
           
 void doView(RenderRequest renderRequest, RenderResponse renderResponse)
           
protected abstract  String getFileParam()
           
protected  String getGlobalScript()
           
protected abstract  String getScriptingEngineClassName()
           
protected abstract  String getScriptingEngineExtension()
           
protected abstract  String getScriptingEngineLanguage()
           
protected  void include(String path, PortletRequest portletRequest, PortletResponse portletResponse)
           
 void init()
           
protected  void logBSFException(org.apache.bsf.BSFException bsfe, String path)
           
 void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
           
 void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse)
           
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, doHeaders, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, processEvent, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editFile

protected String editFile

helpFile

protected String helpFile

viewFile

protected String viewFile

actionFile

protected String actionFile

resourceFile

protected String resourceFile

globalFiles

protected String[] globalFiles

bsfManager

protected org.apache.bsf.BSFManager bsfManager
Constructor Detail

BaseBSFPortlet

public BaseBSFPortlet()
Method Detail

init

public void init()
Overrides:
init in class GenericPortlet

doDispatch

public void doDispatch(RenderRequest renderRequest,
                       RenderResponse renderResponse)
                throws IOException,
                       PortletException
Overrides:
doDispatch in class GenericPortlet
Throws:
IOException
PortletException

doEdit

public void doEdit(RenderRequest renderRequest,
                   RenderResponse renderResponse)
            throws IOException,
                   PortletException
Overrides:
doEdit in class GenericPortlet
Throws:
IOException
PortletException

doHelp

public void doHelp(RenderRequest renderRequest,
                   RenderResponse renderResponse)
            throws IOException
Overrides:
doHelp in class GenericPortlet
Throws:
IOException

doView

public void doView(RenderRequest renderRequest,
                   RenderResponse renderResponse)
            throws IOException
Overrides:
doView in class GenericPortlet
Throws:
IOException

processAction

public void processAction(ActionRequest actionRequest,
                          ActionResponse actionResponse)
                   throws IOException
Specified by:
processAction in interface Portlet
Overrides:
processAction in class GenericPortlet
Throws:
IOException

serveResource

public void serveResource(ResourceRequest resourceRequest,
                          ResourceResponse resourceResponse)
                   throws IOException
Specified by:
serveResource in interface ResourceServingPortlet
Overrides:
serveResource in class GenericPortlet
Throws:
IOException

declareBeans

protected void declareBeans(InputStream is,
                            PortletRequest portletRequest,
                            PortletResponse portletResponse)
                     throws org.apache.bsf.BSFException,
                            IOException
Throws:
org.apache.bsf.BSFException
IOException

declareBeans

protected void declareBeans(String code,
                            PortletRequest portletRequest,
                            PortletResponse portletResponse)
                     throws org.apache.bsf.BSFException,
                            IOException
Throws:
org.apache.bsf.BSFException
IOException

getGlobalScript

protected String getGlobalScript()
                          throws IOException
Throws:
IOException

getFileParam

protected abstract String getFileParam()

getScriptingEngineClassName

protected abstract String getScriptingEngineClassName()

getScriptingEngineExtension

protected abstract String getScriptingEngineExtension()

getScriptingEngineLanguage

protected abstract String getScriptingEngineLanguage()

include

protected void include(String path,
                       PortletRequest portletRequest,
                       PortletResponse portletResponse)
                throws IOException
Throws:
IOException

logBSFException

protected void logBSFException(org.apache.bsf.BSFException bsfe,
                               String path)

Liferay 6.0.5