com.dyuproject.web.rest.dispatcher
Class VelocityDispatcher

java.lang.Object
  extended by com.dyuproject.web.rest.AbstractLifeCycle
      extended by com.dyuproject.web.rest.dispatcher.VelocityDispatcher
All Implemented Interfaces:
LifeCycle, ViewDispatcher

public final class VelocityDispatcher
extends AbstractLifeCycle
implements ViewDispatcher

Author:
David Yu
Date created:
Jun 15, 2008

Field Summary
static String DEFAULT_BASE_DIR
           
static String DEFAULT_FILE_EXTENSION
           
 
Constructor Summary
VelocityDispatcher()
           
 
Method Summary
 void dispatch(String uri, HttpServletRequest request, HttpServletResponse response)
           
 String getFileExtension()
           
protected  void init()
           
 void setBaseDir(String baseDir)
           
 void setFileExtension(String fileExtension)
           
 void setProperties(File location)
           
 void setProperties(InputStream stream)
           
 void setProperties(Properties props)
           
 void setProperties(URL location)
           
 
Methods inherited from class com.dyuproject.web.rest.AbstractLifeCycle
destroy, destroy, getWebContext, init, isDestroyed, isInitialized, newObjectInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.dyuproject.web.rest.LifeCycle
destroy, init
 

Field Detail

DEFAULT_BASE_DIR

public static final String DEFAULT_BASE_DIR
See Also:
Constant Field Values

DEFAULT_FILE_EXTENSION

public static final String DEFAULT_FILE_EXTENSION
See Also:
Constant Field Values
Constructor Detail

VelocityDispatcher

public VelocityDispatcher()
Method Detail

getFileExtension

public String getFileExtension()

init

protected void init()
Specified by:
init in class AbstractLifeCycle

dispatch

public void dispatch(String uri,
                     HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     IOException
Specified by:
dispatch in interface ViewDispatcher
Throws:
ServletException
IOException

setBaseDir

public void setBaseDir(String baseDir)

setFileExtension

public void setFileExtension(String fileExtension)

setProperties

public void setProperties(Properties props)

setProperties

public void setProperties(InputStream stream)

setProperties

public void setProperties(File location)
                   throws IOException
Throws:
IOException

setProperties

public void setProperties(URL location)
                   throws IOException
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.