org.apache.portals.bridges.velocity
Class BridgesVelocityViewServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.velocity.tools.view.servlet.VelocityViewServlet
              extended byorg.apache.portals.bridges.velocity.BridgesVelocityViewServlet
All Implemented Interfaces:
java.io.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 01:29:50Z taylor $
Author:
Scott T. Weaver
See Also:
Serialized Form

Field Summary
static java.lang.String PORTLET_CONFIG
           
static java.lang.String PORTLET_REQUEST
           
static java.lang.String PORTLET_RESPONSE
           
static java.lang.String VELOCITY_CONTEXT_ATTR
           
static java.lang.String VELOCITY_WRITER_ATTR
           
 
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
 
Constructor Summary
BridgesVelocityViewServlet()
           
 
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
 

Field Detail

PORTLET_REQUEST

public static final java.lang.String PORTLET_REQUEST
See Also:
Constant Field Values

PORTLET_RESPONSE

public static final java.lang.String PORTLET_RESPONSE
See Also:
Constant Field Values

PORTLET_CONFIG

public static final java.lang.String PORTLET_CONFIG
See Also:
Constant Field Values

VELOCITY_WRITER_ATTR

public static final java.lang.String VELOCITY_WRITER_ATTR
See Also:
Constant Field Values

VELOCITY_CONTEXT_ATTR

public static final java.lang.String VELOCITY_CONTEXT_ATTR
See Also:
Constant Field Values
Constructor Detail

BridgesVelocityViewServlet

public BridgesVelocityViewServlet()
Method Detail

handleRequest

protected org.apache.velocity.Template handleRequest(javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response,
                                                     org.apache.velocity.context.Context ctx)
                                              throws java.lang.Exception
Adds the RenderRequest, RenderResponse and PortletConfig to the context

Throws:
java.lang.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,
                             java.io.IOException,
                             java.io.UnsupportedEncodingException,
                             java.lang.Exception
Throws:
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
java.io.IOException
java.io.UnsupportedEncodingException
java.lang.Exception
See Also:
VelocityViewServlet.mergeTemplate(org.apache.velocity.Template, org.apache.velocity.context.Context, javax.servlet.http.HttpServletResponse)


Copyright © -2005 . All Rights Reserved.