com.dyuproject.web.rest.dispatcher
Class VelocityDispatcher
java.lang.Object
com.dyuproject.web.rest.dispatcher.VelocityDispatcher
- All Implemented Interfaces:
- ViewDispatcher
public class VelocityDispatcher
- extends Object
- implements ViewDispatcher
- Author:
- David Yu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
VelocityDispatcher
public VelocityDispatcher()
init
public void init(WebContext context)
- Specified by:
init
in interface ViewDispatcher
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 © 2013. All Rights Reserved.