Modifier and Type | Method and Description |
---|---|
void |
Template.merge(Context context,
java.io.Writer writer)
The AST node structure is merged with the
context to produce the final output.
|
boolean |
Template.process()
gets the named resource as a stream, parses and inits
|
Modifier and Type | Method and Description |
---|---|
boolean |
VelocityEngine.evaluate(Context context,
java.io.Writer writer,
java.lang.String logTag,
java.io.InputStream instream)
|
static boolean |
Velocity.evaluate(Context context,
java.io.Writer writer,
java.lang.String logTag,
java.io.InputStream instream)
|
boolean |
VelocityEngine.evaluate(Context context,
java.io.Writer writer,
java.lang.String logTag,
java.io.Reader reader)
Renders the input reader using the context into the output writer.
|
static boolean |
Velocity.evaluate(Context context,
java.io.Writer writer,
java.lang.String logTag,
java.io.Reader reader)
Renders the input reader using the context into the output writer.
|
boolean |
VelocityEngine.evaluate(Context context,
java.io.Writer out,
java.lang.String logTag,
java.lang.String instring)
renders the input string using the context into the output writer.
|
static boolean |
Velocity.evaluate(Context context,
java.io.Writer out,
java.lang.String logTag,
java.lang.String instring)
renders the input string using the context into the output writer.
|
Template |
VelocityEngine.getTemplate(java.lang.String name)
Returns a
Template from the Velocity
resource management system. |
static Template |
Velocity.getTemplate(java.lang.String name)
Returns a
Template from the Velocity
resource management system. |
Template |
VelocityEngine.getTemplate(java.lang.String name,
java.lang.String encoding)
Returns a
Template from the Velocity
resource management system. |
static Template |
Velocity.getTemplate(java.lang.String name,
java.lang.String encoding)
Returns a
Template from the Velocity
resource management system. |
boolean |
VelocityEngine.mergeTemplate(java.lang.String templateName,
Context context,
java.io.Writer writer)
merges a template and puts the rendered stream into the writer
|
static boolean |
Velocity.mergeTemplate(java.lang.String templateName,
Context context,
java.io.Writer writer)
|
boolean |
VelocityEngine.mergeTemplate(java.lang.String templateName,
java.lang.String encoding,
Context context,
java.io.Writer writer)
merges a template and puts the rendered stream into the writer
|
static boolean |
Velocity.mergeTemplate(java.lang.String templateName,
java.lang.String encoding,
Context context,
java.io.Writer writer)
merges a template and puts the rendered stream into the writer
|
Modifier and Type | Method and Description |
---|---|
static ContentResource |
RuntimeSingleton.getContent(java.lang.String name)
Returns a static content resource from the
resource manager.
|
ContentResource |
RuntimeInstance.getContent(java.lang.String name)
Returns a static content resource from the
resource manager.
|
static ContentResource |
Runtime.getContent(java.lang.String name)
Deprecated.
Returns a static content resource from the
resource manager.
|
ContentResource |
RuntimeServices.getContent(java.lang.String name)
Returns a static content resource from the
resource manager.
|
static ContentResource |
RuntimeSingleton.getContent(java.lang.String name,
java.lang.String encoding)
Returns a static content resource from the
resource manager.
|
ContentResource |
RuntimeInstance.getContent(java.lang.String name,
java.lang.String encoding)
Returns a static content resource from the
resource manager.
|
static ContentResource |
Runtime.getContent(java.lang.String name,
java.lang.String encoding)
Deprecated.
Returns a static content resource from the
resource manager.
|
ContentResource |
RuntimeServices.getContent(java.lang.String name,
java.lang.String encoding)
Returns a static content resource from the
resource manager.
|
static Template |
RuntimeSingleton.getTemplate(java.lang.String name)
Returns a
Template from the resource manager. |
Template |
RuntimeInstance.getTemplate(java.lang.String name)
Returns a
Template from the resource manager. |
static Template |
Runtime.getTemplate(java.lang.String name)
Deprecated.
Returns a
Template from the resource manager. |
Template |
RuntimeServices.getTemplate(java.lang.String name)
Returns a
Template from the resource manager. |
static Template |
RuntimeSingleton.getTemplate(java.lang.String name,
java.lang.String encoding)
Returns a
Template from the resource manager |
Template |
RuntimeInstance.getTemplate(java.lang.String name,
java.lang.String encoding)
Returns a
Template from the resource manager |
static Template |
Runtime.getTemplate(java.lang.String name,
java.lang.String encoding)
Deprecated.
Returns a
Template from the resource manager |
Template |
RuntimeServices.getTemplate(java.lang.String name,
java.lang.String encoding)
Returns a
Template from the resource manager |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
Directive.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
How this directive is to be rendered
|
boolean |
Parse.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
iterates through the argument list and renders every
argument that is appropriate.
|
boolean |
Foreach.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
renders the #foreach() block
|
Modifier and Type | Method and Description |
---|---|
boolean |
ASTElseIfStatement.render(InternalContextAdapter context,
java.io.Writer writer)
renders the block
|
boolean |
ASTBlock.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
ASTDirective.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
SimpleNode.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
ASTComment.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
Node.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
ASTIfStatement.render(InternalContextAdapter context,
java.io.Writer writer) |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceManagerImpl.getResource(java.lang.String resourceName,
int resourceType)
|
Resource |
ResourceManager.getResource(java.lang.String resourceName,
int resourceType,
java.lang.String encoding)
Gets the named resource.
|
Resource |
ResourceManagerImpl.getResource(java.lang.String resourceName,
int resourceType,
java.lang.String encoding)
Gets the named resource.
|
protected Resource |
ResourceManagerImpl.loadResource(java.lang.String resourceName,
int resourceType,
java.lang.String encoding)
Loads a resource from the current set of resource loaders
|
abstract boolean |
Resource.process()
Perform any subsequent processing that might need
to be done by a resource.
|
protected void |
ResourceManagerImpl.refreshResource(Resource resource,
java.lang.String encoding)
Takes an existing resource, and 'refreshes' it.
|
Modifier and Type | Method and Description |
---|---|
Template |
VelocityServlet.getTemplate(java.lang.String name)
Retrieves the requested template.
|
Template |
VelocityServlet.getTemplate(java.lang.String name,
java.lang.String encoding)
Retrieves the requested template with the specified
character encoding.
|
protected void |
VelocityServlet.mergeTemplate(Template template,
Context context,
javax.servlet.http.HttpServletResponse response)
merges the template with the context.
|
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.