Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


oracle.stellent.wcm.javaee.script.velocity
Class IdcVelocityServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.velocity.tools.view.servlet.VelocityViewServlet
              extended by oracle.stellent.wcm.javaee.script.velocity.IdcVelocityServlet

All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class IdcVelocityServlet
extends org.apache.velocity.tools.view.servlet.VelocityViewServlet

Customize the Velocity servlet to load templates from the Content Server

See Also:
Serialized Form

Field Summary

 

Fields inherited from class org.apache.velocity.tools.view.servlet.VelocityViewServlet
CONTENT_TYPE, DEFAULT_CONTENT_TYPE, DEFAULT_OUTPUT_ENCODING, DEFAULT_PROPERTIES_PATH, DEFAULT_TOOLBOX_PATH, DEFAULT_TOOLS_PROPERTIES, INIT_PROPS_KEY, SERVLET_CONTEXT_KEY, TOOLBOX_KEY, toolboxManager

 

Constructor Summary
IdcVelocityServlet()
           

 

Method Summary
protected  org.apache.commons.collections.ExtendedProperties loadConfiguration(javax.servlet.ServletConfig config)
           
protected  void performMerge(org.apache.velocity.Template template, org.apache.velocity.context.Context context, java.io.Writer writer)
          This is here so developers may override it and gain access to the Writer which the template will be merged into.
protected  void setVelocityEngine(org.apache.velocity.app.VelocityEngine ve)
           

 

Methods inherited from class org.apache.velocity.tools.view.servlet.VelocityViewServlet
createContext, doGet, doPost, doRequest, error, fillContext, findInitParameter, getResponseWriter, getTemplate, getTemplate, getTemplate, getTemplate, getVelocityEngine, getVelocityProperty, handleRequest, init, initToolbox, initVelocity, mergeTemplate, 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

 

Constructor Detail

IdcVelocityServlet

public IdcVelocityServlet()

Method Detail

setVelocityEngine

protected void setVelocityEngine(org.apache.velocity.app.VelocityEngine ve)
Overrides:
setVelocityEngine in class org.apache.velocity.tools.view.servlet.VelocityViewServlet

loadConfiguration

protected org.apache.commons.collections.ExtendedProperties loadConfiguration(javax.servlet.ServletConfig config)
                                                                       throws java.io.IOException
Overrides:
loadConfiguration in class org.apache.velocity.tools.view.servlet.VelocityViewServlet
Throws:
java.io.IOException

performMerge

protected void performMerge(org.apache.velocity.Template template,
                            org.apache.velocity.context.Context context,
                            java.io.Writer writer)
                     throws org.apache.velocity.exception.ResourceNotFoundException,
                            org.apache.velocity.exception.ParseErrorException,
                            org.apache.velocity.exception.MethodInvocationException,
                            java.lang.Exception
This is here so developers may override it and gain access to the Writer which the template will be merged into. See VELTOOLS-7 for discussion of this.
Overrides:
performMerge in class org.apache.velocity.tools.view.servlet.VelocityViewServlet
Parameters:
template - template object returned by the handleRequest() method
context - Context created by the VelocityViewServlet.createContext(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
writer - a VelocityWriter that the template is merged into
Throws:
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
java.lang.Exception

Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.