com.j2biz.blogunity.web.servlet
Class VelocityThemeServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.velocity.servlet.VelocityServlet
              extended bycom.j2biz.blogunity.web.servlet.VelocityThemeServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class VelocityThemeServlet
extends org.apache.velocity.servlet.VelocityServlet

This servlet answers to all requests send to velocity-templates. It checks, what the velocity page was requested, merges it with the values found within the HttpRequest/HttpSession and includes resulted stream (String-instance at the moment) into the main theme's page: mainView.theme

Since:
0.1
Author:
michelson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.velocity.servlet.VelocityServlet
CONTENT_TYPE, DEFAULT_CONTENT_TYPE, DEFAULT_OUTPUT_ENCODING, INIT_PROPS_KEY, REQUEST, RESPONSE
 
Constructor Summary
VelocityThemeServlet()
           
 
Method Summary
protected  org.apache.velocity.Template handleRequest(HttpServletRequest request, HttpServletResponse response, org.apache.velocity.context.Context context)
           
protected  Properties loadConfiguration(ServletConfig config)
           
 
Methods inherited from class org.apache.velocity.servlet.VelocityServlet
chooseCharacterEncoding, createContext, doGet, doPost, doRequest, error, getTemplate, getTemplate, handleRequest, init, 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

VelocityThemeServlet

public VelocityThemeServlet()
Method Detail

loadConfiguration

protected Properties loadConfiguration(ServletConfig config)
                                throws IOException,
                                       FileNotFoundException
Throws:
IOException
FileNotFoundException

handleRequest

protected org.apache.velocity.Template handleRequest(HttpServletRequest request,
                                                     HttpServletResponse response,
                                                     org.apache.velocity.context.Context context)
                                              throws Exception
Throws:
Exception


Copyright (c)j2biz.com