org.apache.velocity.tools.view.servlet
Class VelocityViewServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.velocity.tools.view.VelocityViewServlet
              extended by org.apache.velocity.tools.view.servlet.VelocityViewServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

Deprecated. This class has moved to VelocityViewServlet

@Deprecated
public class VelocityViewServlet
extends VelocityViewServlet

Version:
$Id: VelocityViewServlet.java 511959 2007-02-26 19:24:39Z nbubna $
See Also:
Serialized Form

Field Summary
protected static java.lang.String DEFAULT_TOOLBOX_PATH
          Deprecated. Default path is now managed by VelocityView
protected static java.lang.String TOOLBOX_KEY
          Deprecated. toolbox key is now managed by VelocityView
private  VelocityView view
          Deprecated.  
 
Fields inherited from class org.apache.velocity.tools.view.VelocityViewServlet
BUFFER_OUTPUT_PARAM
 
Constructor Summary
VelocityViewServlet()
          Deprecated.  
 
Method Summary
protected  VelocityView getVelocityView()
          Deprecated. Overrides parent to ensure each VVS instance has it's own separate configuration, just like in Tools 1.x.
 void init(javax.servlet.ServletConfig config)
          Deprecated. Initializes servlet and VelocityView used to process requests.
 
Methods inherited from class org.apache.velocity.tools.view.VelocityViewServlet
createContext, doGet, doPost, doRequest, error, fillContext, findInitParameter, getLog, getTemplate, getTemplate, getVelocityProperty, handleRequest, manageResourceNotFound, mergeTemplate, requestCleanup, setContentType, setVelocityView
 
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

TOOLBOX_KEY

protected static final java.lang.String TOOLBOX_KEY
Deprecated. toolbox key is now managed by VelocityView
See Also:
Constant Field Values

DEFAULT_TOOLBOX_PATH

protected static final java.lang.String DEFAULT_TOOLBOX_PATH
Deprecated. Default path is now managed by VelocityView
See Also:
Constant Field Values

view

private transient VelocityView view
Deprecated. 
Constructor Detail

VelocityViewServlet

public VelocityViewServlet()
Deprecated. 
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Deprecated. 
Description copied from class: VelocityViewServlet

Initializes servlet and VelocityView used to process requests. Called by the servlet container on loading.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class VelocityViewServlet
Parameters:
config - servlet configuation
Throws:
javax.servlet.ServletException

getVelocityView

protected VelocityView getVelocityView()
Deprecated. 
Overrides parent to ensure each VVS instance has it's own separate configuration, just like in Tools 1.x.

Overrides:
getVelocityView in class VelocityViewServlet


Copyright (c) 2003-2007 Apache Software Foundation