com.xerceo.learn
Class ErrorsHtml
java.lang.Object
com.xerceo.learn.ErrorsHtml
public class ErrorsHtml
- extends java.lang.Object
- Author:
- tom@xerceo.com
|
Constructor Summary |
ErrorsHtml(org.apache.velocity.app.VelocityEngine velocityEngine)
|
|
Method Summary |
protected org.apache.velocity.VelocityContext |
getContext(java.util.Map errors,
java.lang.String webAppCtx)
|
java.lang.String |
getHtml(java.util.Map errors,
java.lang.String webAppCtx)
|
java.lang.String |
getTemplateName()
|
org.apache.velocity.app.VelocityEngine |
getVelocityEngine()
|
void |
setTemplateName(java.lang.String templateName)
|
void |
writeHtml(java.util.Map errors,
java.lang.String webAppCtx,
java.io.Writer writer)
This method is useful for debugging and unit tests as it can write to any Writer implementation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorsHtml
public ErrorsHtml(org.apache.velocity.app.VelocityEngine velocityEngine)
throws java.lang.Exception
- Throws:
java.lang.Exception
getHtml
public java.lang.String getHtml(java.util.Map errors,
java.lang.String webAppCtx)
throws LearnException
- Throws:
LearnException
writeHtml
public void writeHtml(java.util.Map errors,
java.lang.String webAppCtx,
java.io.Writer writer)
throws LearnException
- This method is useful for debugging and unit tests as it can write to any Writer implementation.
- Parameters:
day - month - year - events - tz - writer - webAppCtx -
- Throws:
LearnException
getContext
protected org.apache.velocity.VelocityContext getContext(java.util.Map errors,
java.lang.String webAppCtx)
getTemplateName
public java.lang.String getTemplateName()
setTemplateName
public void setTemplateName(java.lang.String templateName)
getVelocityEngine
public org.apache.velocity.app.VelocityEngine getVelocityEngine()
Copyright © 2006. Xerceo, Inc. All Rights Reserved.