Uses of Interface org.apache.velocity.context.Context

Uses in package org.apache.velocity.app.tools

Constructors with parameter type org.apache.velocity.context.Context

Constructor needs a backpointer to the context.

Fields of type org.apache.velocity.context.Context

Context

Uses in package org.apache.velocity

Classes implementing org.apache.velocity.context.Context

class
General purpose implemention of the application Context interface for general application use.

Constructors with parameter type org.apache.velocity.context.Context

VelocityContext.VelocityContext(Map context, Context innerContext)
Initializes internal storage (never to null), and inner context.
Chaining constructor, used when you want to wrap a context in another.

Methods with parameter type org.apache.velocity.context.Context

void
Template.merge(Context context, Writer writer)
The AST node structure is merged with the context to produce the final output.

Uses in package org.apache.velocity.texen

Fields of type org.apache.velocity.context.Context

Context
Context used for generating the texen output.

Methods with parameter type org.apache.velocity.context.Context

void
Add properties that will aways be in the context by default
void
Generator.fillContextHash(Context context, Hashtable objs)
Add all the contents of a Hashtable to the context.
void
Add objects to the context from the current properties.
String
Generator.parse(String controlTemplate, Context controlContext)
Parse the control template and merge it with the control context.

Methods with return type org.apache.velocity.context.Context

Context
Generator.getContext(Hashtable objs)
Create a new context and fill it with the elements of the objs Hashtable.

Uses in package org.apache.velocity.context

Classes implementing org.apache.velocity.context.Context

class
This class is the abstract base class for all conventional Velocity Context implementations.
class
This adapter class is the container for all context types for internal use.
class
This is a special, internal-use-only context implementation to be used for the new Velocimacro implementation.

Constructors with parameter type org.apache.velocity.context.Context

Chaining constructor accepts a Context argument.
CTOR takes a Context and wraps it, delegating all 'data' calls to it.

Fields of type org.apache.velocity.context.Context

Context
the user data Context that we are wrapping
Context
the chained Context if any

Methods with return type org.apache.velocity.context.Context

Context
returns innerContext if one is chained
Context
returns the user data context that we are wrapping
Context
returns the wrapped user context
Context
return the inner / user context

Uses in package org.apache.velocity.app.event

Methods with parameter type org.apache.velocity.context.Context

boolean
Attached the EventCartridge to the context Final because not something one should mess with lightly :)

Uses in package org.apache.velocity.texen.ant

Methods with parameter type org.apache.velocity.context.Context

void
Place useful objects into the initial context.

Methods with return type org.apache.velocity.context.Context

Context
Creates a VelocityContext.

Uses in package org.apache.velocity.runtime.parser.node

Methods with parameter type org.apache.velocity.context.Context

Object
ASTReference.getVariableValue(Context context, String variable)
String
NodeUtils.interpolate(String argStr, Context vars)
Utility method to interpolate context variables into string literals.

Uses in package org.apache.velocity.app

Methods with parameter type org.apache.velocity.context.Context

boolean
Velocity.evaluate(Context context, Writer writer, String logTag, InputStream instream)
Renders the input stream using the context into the output writer.
boolean
VelocityEngine.evaluate(Context context, Writer writer, String logTag, InputStream instream)
Renders the input stream using the context into the output writer.
boolean
Velocity.evaluate(Context context, Writer writer, String logTag, Reader reader)
Renders the input reader using the context into the output writer.
boolean
VelocityEngine.evaluate(Context context, Writer writer, String logTag, Reader reader)
Renders the input reader using the context into the output writer.
boolean
Velocity.evaluate(Context context, Writer out, String logTag, String instring)
renders the input string using the context into the output writer.
boolean
VelocityEngine.evaluate(Context context, Writer out, String logTag, String instring)
renders the input string using the context into the output writer.
boolean
Velocity.invokeVelocimacro(String vmName, String logTag, params[] , Context context, Writer writer)
Invokes a currently registered Velocimacro with the parms provided and places the rendered stream into the writer.
boolean
VelocityEngine.invokeVelocimacro(String vmName, String logTag, params[] , Context context, Writer writer)
Invokes a currently registered Velocimacro with the parms provided and places the rendered stream into the writer.
boolean
Velocity.mergeTemplate(String templateName, String encoding, Context context, Writer writer)
merges a template and puts the rendered stream into the writer
boolean
VelocityEngine.mergeTemplate(String templateName, String encoding, Context context, Writer writer)
merges a template and puts the rendered stream into the writer
boolean
Velocity.mergeTemplate(String templateName, Context context, Writer writer)
merges a template and puts the rendered stream into the writer
boolean
VelocityEngine.mergeTemplate(String templateName, Context context, Writer writer)
merges a template and puts the rendered stream into the writer

Uses in package org.apache.velocity.servlet

Methods with parameter type org.apache.velocity.context.Context

Template
VelocityServlet.handleRequest(HttpServletRequest request, HttpServletResponse response, Context ctx)
Implement this method to add your application data to the context, calling the getTemplate() method to produce your return value.
Template
Implement this method to add your application data to the context, calling the getTemplate() method to produce your return value.
void
VelocityServlet.mergeTemplate(Template template, Context context, HttpServletResponse response)
merges the template with the context.
void
VelocityServlet.requestCleanup(HttpServletRequest request, HttpServletResponse response, Context context)
A cleanup routine which is called at the end of the doRequest(HttpServletRequest,HttpServletResponse) processing sequence, allowing a derived class to do resource cleanup or other end of process cycle tasks.

Methods with return type org.apache.velocity.context.Context

Context
VelocityServlet.createContext(HttpServletRequest request, HttpServletResponse response)
Returns a context suitable to pass to the handleRequest() method

Default implementation will create a VelocityContext object, put the HttpServletRequest and HttpServletResponse into the context accessable via the keys VelocityServlet.REQUEST and VelocityServlet.RESPONSE, respectively.

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.