Liferay 6.0.5

com.liferay.portlet
Class VelocityPortlet

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

public class VelocityPortlet
extends GenericPortlet


Constructor Summary
VelocityPortlet()
           
 
Method Summary
 void doEdit(RenderRequest renderRequest, RenderResponse renderResponse)
           
 void doHelp(RenderRequest renderRequest, RenderResponse renderResponse)
           
 void doView(RenderRequest renderRequest, RenderResponse renderResponse)
           
protected  VelocityContext getVelocityContext(PortletRequest portletRequest, PortletResponse portletResponse)
           
protected  String getVelocityTemplateId(String name)
           
 void init(PortletConfig portletConfig)
           
protected  void mergeTemplate(String velocityTemplateId, PortletRequest portletRequest, PortletResponse portletResponse)
           
protected  void mergeTemplate(String velocityTemplateId, VelocityContext velocityContext, PortletRequest portletRequest, PortletResponse portletResponse)
           
 void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
           
 void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse)
           
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, doDispatch, 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
 

Constructor Detail

VelocityPortlet

public VelocityPortlet()
Method Detail

init

public void init(PortletConfig portletConfig)
          throws PortletException
Specified by:
init in interface Portlet
Overrides:
init in class GenericPortlet
Throws:
PortletException

processAction

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

serveResource

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

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 PortletException
Overrides:
doHelp in class GenericPortlet
Throws:
PortletException

doView

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

getVelocityContext

protected VelocityContext getVelocityContext(PortletRequest portletRequest,
                                             PortletResponse portletResponse)

getVelocityTemplateId

protected String getVelocityTemplateId(String name)

mergeTemplate

protected void mergeTemplate(String velocityTemplateId,
                             PortletRequest portletRequest,
                             PortletResponse portletResponse)
                      throws Exception
Throws:
Exception

mergeTemplate

protected void mergeTemplate(String velocityTemplateId,
                             VelocityContext velocityContext,
                             PortletRequest portletRequest,
                             PortletResponse portletResponse)
                      throws Exception
Throws:
Exception

Liferay 6.0.5