com.dyuproject.ext.stringtemplate
Class StringTemplateDispatcher

java.lang.Object
  extended by com.dyuproject.web.rest.AbstractLifeCycle
      extended by com.dyuproject.ext.stringtemplate.StringTemplateDispatcher
All Implemented Interfaces:
LifeCycle, ViewDispatcher, org.antlr.stringtemplate.StringTemplateErrorListener

public final class StringTemplateDispatcher
extends AbstractLifeCycle
implements ViewDispatcher, org.antlr.stringtemplate.StringTemplateErrorListener

Author:
David Yu
Date created:
Jan 15, 2009

Field Summary
static String DEFAULT_BASE_DIR
           
static String DEFAULT_FILE_EXTENSION
           
 
Constructor Summary
StringTemplateDispatcher()
           
 
Method Summary
 void dispatch(String uri, HttpServletRequest request, HttpServletResponse response)
           
 void error(String message, Throwable t)
           
 String getFileExtension()
           
protected  void init()
           
 void warning(String message)
           
 
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

StringTemplateDispatcher

public StringTemplateDispatcher()
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

error

public void error(String message,
                  Throwable t)
Specified by:
error in interface org.antlr.stringtemplate.StringTemplateErrorListener

warning

public void warning(String message)
Specified by:
warning in interface org.antlr.stringtemplate.StringTemplateErrorListener


Copyright © 2008-2013. All Rights Reserved.