org.apache.portals.bridges.velocity
Class BridgesVelocityViewServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.velocity.tools.view.servlet.VelocityViewServlet
org.apache.portals.bridges.velocity.BridgesVelocityViewServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class BridgesVelocityViewServlet
- extends org.apache.velocity.tools.view.servlet.VelocityViewServlet
- Version:
- $Id: BridgesVelocityViewServlet.java 187820 2004-10-29 03:29:50 +0200 (Fri, 29 Oct 2004) taylor $
- Author:
- Scott T. Weaver
- See Also:
- Serialized Form
Fields inherited from class org.apache.velocity.tools.view.servlet.VelocityViewServlet |
CONTENT_TYPE, DEFAULT_CONTENT_TYPE, DEFAULT_OUTPUT_ENCODING, INIT_PROPS_KEY, SERVLET_CONTEXT_KEY, TOOLBOX_KEY, toolboxManager |
Method Summary |
protected org.apache.velocity.Template |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.velocity.context.Context ctx)
Adds the RenderRequest, RenderResponse and PortletConfig to the context |
protected void |
mergeTemplate(org.apache.velocity.Template template,
org.apache.velocity.context.Context context,
javax.servlet.http.HttpServletResponse response)
|
Methods inherited from class org.apache.velocity.tools.view.servlet.VelocityViewServlet |
createContext, doGet, doPost, doRequest, error, getResponseWriter, getTemplate, getTemplate, init, initToolbox, initVelocity, loadConfiguration, requestCleanup, setContentType |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PORTLET_REQUEST
public static final String PORTLET_REQUEST
- See Also:
- Constant Field Values
PORTLET_RESPONSE
public static final String PORTLET_RESPONSE
- See Also:
- Constant Field Values
PORTLET_CONFIG
public static final String PORTLET_CONFIG
- See Also:
- Constant Field Values
VELOCITY_WRITER_ATTR
public static final String VELOCITY_WRITER_ATTR
- See Also:
- Constant Field Values
writerPool
private static org.apache.velocity.util.SimplePool writerPool
- Cache of writers
VELOCITY_CONTEXT_ATTR
public static final String VELOCITY_CONTEXT_ATTR
- See Also:
- Constant Field Values
BridgesVelocityViewServlet
public BridgesVelocityViewServlet()
handleRequest
protected org.apache.velocity.Template handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.velocity.context.Context ctx)
throws Exception
- Adds the RenderRequest, RenderResponse and PortletConfig to the context
- Overrides:
handleRequest
in class org.apache.velocity.tools.view.servlet.VelocityViewServlet
- Throws:
Exception
- See Also:
VelocityViewServlet.handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.velocity.context.Context)
mergeTemplate
protected void mergeTemplate(org.apache.velocity.Template template,
org.apache.velocity.context.Context context,
javax.servlet.http.HttpServletResponse response)
throws org.apache.velocity.exception.ResourceNotFoundException,
org.apache.velocity.exception.ParseErrorException,
org.apache.velocity.exception.MethodInvocationException,
IOException,
UnsupportedEncodingException,
Exception
- Overrides:
mergeTemplate
in class org.apache.velocity.tools.view.servlet.VelocityViewServlet
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
IOException
UnsupportedEncodingException
Exception
- See Also:
VelocityViewServlet.mergeTemplate(org.apache.velocity.Template, org.apache.velocity.context.Context, javax.servlet.http.HttpServletResponse)
Copyright © 2005 Apache Software Foundation. All Rights Reserved.