com.dyuproject.web.rest
Class JSPDispatcher

java.lang.Object
  extended by com.dyuproject.web.rest.JSPDispatcher
All Implemented Interfaces:
ViewDispatcher

public class JSPDispatcher
extends Object
implements ViewDispatcher

Efficiently dispatches to the jsp servlet.

Author:
David Yu

Field Summary
static String DEFAULT_BASE_DIR
           
static String JSP
           
 
Constructor Summary
JSPDispatcher()
           
 
Method Summary
 void dispatch(String uri, HttpServletRequest request, HttpServletResponse response)
           
 void init(WebContext context)
           
 void setBaseDir(String baseDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSP

public static final String JSP
See Also:
Constant Field Values

DEFAULT_BASE_DIR

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

JSPDispatcher

public JSPDispatcher()
Method Detail

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)


Copyright © 2013. All Rights Reserved.