com.liferay.portlet
Class VelocityPortlet
java.lang.Object
javax.portlet.GenericPortlet
com.liferay.portlet.VelocityPortlet
- All Implemented Interfaces:
- javax.portlet.EventPortlet, javax.portlet.Portlet, javax.portlet.PortletConfig, javax.portlet.ResourceServingPortlet
public class VelocityPortlet
- extends javax.portlet.GenericPortlet
View Source
- Author:
- Brian Wing Shun Chan, Steven P. Goldsmith
Field Summary |
static java.lang.String |
REQUEST
The context key for the portlet request. |
static java.lang.String |
RESPONSE
The context key for the portlet response. |
Method Summary |
void |
doEdit(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
|
void |
doHelp(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
|
void |
doView(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
|
protected org.apache.velocity.context.Context |
getContext(javax.portlet.PortletRequest req,
javax.portlet.PortletResponse res)
|
protected org.apache.velocity.Template |
getTemplate(java.lang.String name)
|
protected org.apache.velocity.Template |
getTemplate(java.lang.String name,
java.lang.String encoding)
|
void |
init(javax.portlet.PortletConfig config)
|
protected void |
mergeTemplate(org.apache.velocity.Template template,
org.apache.velocity.context.Context context,
javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
|
protected void |
mergeTemplate(org.apache.velocity.Template template,
javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
|
void |
processAction(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
|
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, serveResource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REQUEST
public static final java.lang.String REQUEST
- The context key for the portlet request.
- See Also:
- Constant Field Values
RESPONSE
public static final java.lang.String RESPONSE
- The context key for the portlet response.
- See Also:
- Constant Field Values
VelocityPortlet
public VelocityPortlet()
init
public void init(javax.portlet.PortletConfig config)
throws javax.portlet.PortletException
- Specified by:
init
in interface javax.portlet.Portlet
- Overrides:
init
in class javax.portlet.GenericPortlet
- Throws:
javax.portlet.PortletException
processAction
public void processAction(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
throws java.io.IOException,
javax.portlet.PortletException
- Specified by:
processAction
in interface javax.portlet.Portlet
- Overrides:
processAction
in class javax.portlet.GenericPortlet
- Throws:
java.io.IOException
javax.portlet.PortletException
doEdit
public void doEdit(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws java.io.IOException,
javax.portlet.PortletException
- Overrides:
doEdit
in class javax.portlet.GenericPortlet
- Throws:
java.io.IOException
javax.portlet.PortletException
doHelp
public void doHelp(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws java.io.IOException,
javax.portlet.PortletException
- Overrides:
doHelp
in class javax.portlet.GenericPortlet
- Throws:
java.io.IOException
javax.portlet.PortletException
doView
public void doView(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws java.io.IOException,
javax.portlet.PortletException
- Overrides:
doView
in class javax.portlet.GenericPortlet
- Throws:
java.io.IOException
javax.portlet.PortletException
getContext
protected org.apache.velocity.context.Context getContext(javax.portlet.PortletRequest req,
javax.portlet.PortletResponse res)
getTemplate
protected org.apache.velocity.Template getTemplate(java.lang.String name)
throws java.lang.Exception
- Throws:
java.lang.Exception
getTemplate
protected org.apache.velocity.Template getTemplate(java.lang.String name,
java.lang.String encoding)
throws java.lang.Exception
- Throws:
java.lang.Exception
mergeTemplate
protected void mergeTemplate(org.apache.velocity.Template template,
javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws java.lang.Exception
- Throws:
java.lang.Exception
mergeTemplate
protected void mergeTemplate(org.apache.velocity.Template template,
org.apache.velocity.context.Context context,
javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws java.lang.Exception
- Throws:
java.lang.Exception