|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.niggle.templates.velocityimpl.VelocityPage
An implementation of the org.niggle.templates.Page interface that uses the Velocity template engine.
Constructor Summary | |
VelocityPage(org.apache.velocity.Template template,
org.apache.velocity.context.Context context,
java.util.Locale locale,
java.lang.ClassLoader cl)
Deprecated. Creates a new VelocityPage. |
Method Summary | |
void |
expose(java.lang.String key,
boolean b)
Deprecated. Expose internal data, publishing it to make it available to the page Template. |
void |
expose(java.lang.String key,
java.lang.Object item)
Deprecated. Expose internal data, publishing it to make it available to the page template. |
void |
exposeResourceBundle(java.lang.String lookupName)
Deprecated. expose an instance of java.util.ResourceBundle as a template hash variable |
java.util.Locale |
getLocale()
Deprecated. |
void |
outputPage(javax.servlet.http.HttpServletResponse response)
Deprecated. Prepare the cooked output, filling in the parameters with data values, and send it to the end user via the servlet's response stream. |
void |
setHeader(java.lang.String param,
java.lang.String value)
Deprecated. Set a header in the servlet response. |
void |
setStatic(boolean isStatic)
Deprecated. sets a technical hint as to whether the page should be cached. |
java.lang.String |
toString()
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VelocityPage(org.apache.velocity.Template template, org.apache.velocity.context.Context context, java.util.Locale locale, java.lang.ClassLoader cl) throws java.io.IOException
template
- the template to use.context
- the WebMacro contextcl
- The classloader for looking up resources.Method Detail |
public void outputPage(javax.servlet.http.HttpServletResponse response) throws java.io.IOException
Page
outputPage
in interface Page
response
- handle to where the output should go.
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public void expose(java.lang.String key, java.lang.Object item)
Page
expose
in interface Page
key
- name of the field in the templateitem
- source of the data to populate the templatepublic void expose(java.lang.String key, boolean b)
Page
expose
in interface Page
key
- name of the field in the templateb
- sets to boolean value according to: b ? "true" : ""public void exposeResourceBundle(java.lang.String lookupName)
Page
exposeResourceBundle
in interface Page
public java.util.Locale getLocale()
public void setStatic(boolean isStatic)
Page
setStatic
in interface Page
public void setHeader(java.lang.String param, java.lang.String value)
Page
setHeader
in interface Page
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |