Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

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

Packages that use Context
org.apache.velocity |
org.apache.velocity.app |
org.apache.velocity.app.event |
org.apache.velocity.app.event.implement |
org.apache.velocity.app.tools |
org.apache.velocity.context |
org.apache.velocity.runtime |
org.apache.velocity.runtime.directive |
org.apache.velocity.runtime.parser.node |
org.apache.velocity.servlet |
org.apache.velocity.texen |
org.apache.velocity.texen.ant |
org.apache.velocity.util |

Uses of Context in org.apache.velocity

Classes in org.apache.velocity that implement Context
`class` | `VelocityContext` General purpose implemention of the application Context interface for general application use.

Methods in org.apache.velocity with parameters of type Context
`void` | `Template.merge(Context context, Writer writer)` The AST node structure is merged with the context to produce the final output.
`void` | `Template.merge(Context context, Writer writer, List macroLibraries)` The AST node structure is merged with the context to produce the final output.

Constructors in org.apache.velocity with parameters of type Context
`VelocityContext(Context innerContext)` Chaining constructor, used when you want to wrap a context in another.
`VelocityContext(Map context, Context innerContext)` Initializes internal storage (never to `null`), and inner context.

Uses of Context in org.apache.velocity.app

Methods in org.apache.velocity.app with parameters of type Context
`boolean` | `VelocityEngine.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 writer, String logTag, InputStream instream)` Deprecated. Use `VelocityEngine.evaluate( Context context, Writer writer, String logTag, Reader reader )`
`boolean` | `VelocityEngine.evaluate(Context context, Writer writer, String logTag, Reader reader)` Renders the input reader using the context into the output writer.
`boolean` | `VelocityEngine.invokeVelocimacro(String vmName, String logTag, String[] params, Context context, Writer writer)` Invokes a currently registered Velocimacro with the params provided and places the rendered stream into the writer.
`boolean` | `VelocityEngine.mergeTemplate(String templateName, Context context, Writer writer)` Deprecated. Use `VelocityEngine.mergeTemplate( String templateName, String encoding, Context context, Writer writer )`
`boolean` | `VelocityEngine.mergeTemplate(String templateName, String encoding, Context context, Writer writer)` merges a template and puts the rendered stream into the writer
`static boolean` | `Velocity.evaluate(Context context, Writer out, String logTag, String instring)` renders the input string using the context into the output writer.
`static boolean` | `Velocity.evaluate(Context context, Writer writer, String logTag, InputStream instream)` Deprecated. Use `Velocity.evaluate( Context context, Writer writer, String logTag, Reader reader )`
`static boolean` | `Velocity.evaluate(Context context, Writer writer, String logTag, Reader reader)` Renders the input reader using the context into the output writer.
`static boolean` | `Velocity.invokeVelocimacro(String vmName, String logTag, String[] params, Context context, Writer writer)` Invokes a currently registered Velocimacro with the params provided and places the rendered stream into the writer.
`static boolean` | `Velocity.mergeTemplate(String templateName, Context context, Writer writer)` Deprecated. Use `Velocity.mergeTemplate( String templateName, String encoding, Context context, Writer writer )`
`static boolean` | `Velocity.mergeTemplate(String templateName, String encoding, Context context, Writer writer)` merges a template and puts the rendered stream into the writer

Uses of Context in org.apache.velocity.app.event

Methods in org.apache.velocity.app.event with parameters of type Context
`Object` | `InvalidReferenceEventHandler.invalidGetMethod(Context context, String reference, Object object, String property, Info info)` Called when object is null or there is no getter for the given property.
`boolean` | `InvalidReferenceEventHandler.invalidSetMethod(Context context, String leftreference, String rightreference, Info info)` Called when object is null or there is no setter for the given property.
`Object` | `InvalidReferenceEventHandler.invalidMethod(Context context, String reference, Object object, String method, Info info)` Called when object is null or the given method does not exist.
`boolean` | `EventCartridge.attachToContext(Context context)` Attached the EventCartridge to the context Final because not something one should mess with lightly :)

Uses of Context in org.apache.velocity.app.event.implement

Methods in org.apache.velocity.app.event.implement with parameters of type Context
`Object` | `ReportInvalidReferences.invalidGetMethod(Context context, String reference, Object object, String property, Info info)` Collect the error and/or throw an exception, depending on configuration.
`Object` | `ReportInvalidReferences.invalidMethod(Context context, String reference, Object object, String method, Info info)` Collect the error and/or throw an exception, depending on configuration.
`boolean` | `ReportInvalidReferences.invalidSetMethod(Context context, String leftreference, String rightreference, Info info)` Collect the error and/or throw an exception, depending on configuration.
`void` | `IncludeNotFound.setContext(Context context)`

Uses of Context in org.apache.velocity.app.tools

Constructors in org.apache.velocity.app.tools with parameters of type Context
`VelocityFormatter(Context context)` Deprecated. Constructor needs a backpointer to the context.

Uses of Context in org.apache.velocity.context

Subinterfaces of Context in org.apache.velocity.context
`interface` | `InternalContextAdapter` interface to bring all necessary internal and user contexts together.

Classes in org.apache.velocity.context that implement Context
`class` | `AbstractContext` This class is the abstract base class for all conventional Velocity Context implementations.
`class` | `ChainedInternalContextAdapter` This is an abstract internal-use-only context implementation to be used as a subclass for other internal-use-only contexts that wrap other internal-use-only contexts.
`class` | `EvaluateContext` Deprecated. Will be removed in 2.0
`class` | `InternalContextAdapterImpl` This adapter class is the container for all context types for internal use.
`class` | `ProxyVMContext` Context for Velocity macro arguments.

Methods in org.apache.velocity.context that return Context
`Context` | `InternalWrapperContext.getInternalUserContext()` Returns the wrapped user context.
`Context` | `InternalContextAdapterImpl.getInternalUserContext()` returns the user data context that we are wrapping
`Context` | `ChainedInternalContextAdapter.getInternalUserContext()` Return the inner / user context.
`Context` | `AbstractContext.getChainedContext()` returns innerContext if one is chained

Constructors in org.apache.velocity.context with parameters of type Context
`InternalContextAdapterImpl(Context c)` CTOR takes a Context and wraps it, delegating all 'data' calls to it.
`AbstractContext(Context inner)` Chaining constructor accepts a Context argument.

Uses of Context in org.apache.velocity.runtime

Methods in org.apache.velocity.runtime with parameters of type Context
`boolean` | `RuntimeServices.evaluate(Context context, Writer out, String logTag, String instring)` Renders the input string using the context into the output writer.
`boolean` | `RuntimeServices.evaluate(Context context, Writer writer, String logTag, Reader reader)` Renders the input reader using the context into the output writer.
`boolean` | `RuntimeServices.invokeVelocimacro(String vmName, String logTag, String[] params, Context context, Writer writer)` Invokes a currently registered Velocimacro with the params provided and places the rendered stream into the writer.
`boolean` | `RuntimeInstance.evaluate(Context context, Writer out, String logTag, String instring)` Renders the input string using the context into the output writer.
`boolean` | `RuntimeInstance.evaluate(Context context, Writer writer, String logTag, Reader reader)` Renders the input reader using the context into the output writer.
`boolean` | `RuntimeInstance.render(Context context, Writer writer, String logTag, SimpleNode nodeTree)` Initializes and renders the AST `SimpleNode` using the context into the output writer.
`boolean` | `RuntimeInstance.invokeVelocimacro(String vmName, String logTag, String[] params, Context context, Writer writer)` Invokes a currently registered Velocimacro with the params provided and places the rendered stream into the writer.

Uses of Context in org.apache.velocity.runtime.directive

Classes in org.apache.velocity.runtime.directive that implement Context
`protected static class` | `Foreach.NullHolderContext` A special context to use when the foreach iterator returns a null.

Uses of Context in org.apache.velocity.runtime.parser.node

Methods in org.apache.velocity.runtime.parser.node with parameters of type Context
`static String` | `NodeUtils.interpolate(String argStr, Context vars)` Deprecated. this method isn't called by any class
`Object` | `ASTReference.getVariableValue(Context context, String variable)`

Uses of Context in org.apache.velocity.servlet

Methods in org.apache.velocity.servlet that return Context
`protected Context` | `VelocityServlet.createContext(HttpServletRequest request, HttpServletResponse response)` Deprecated. 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.

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

Uses of Context in org.apache.velocity.texen

Methods in org.apache.velocity.texen that return Context
`protected Context` | `Generator.getContext(Hashtable objs)` Create a new context and fill it with the elements of the objs Hashtable.

Methods in org.apache.velocity.texen with parameters of type Context
`String` | `Generator.parse(String controlTemplate, Context controlContext)` Parse the control template and merge it with the control context.
`protected void` | `Generator.fillContextHash(Context context, Hashtable objs)` Add all the contents of a Hashtable to the context.
`protected void` | `Generator.fillContextDefaults(Context context)` Add properties that will aways be in the context by default
`protected void` | `Generator.fillContextProperties(Context context)` Add objects to the context from the current properties.

Uses of Context in org.apache.velocity.texen.ant

Methods in org.apache.velocity.texen.ant that return Context
`Context` | `TexenTask.initControlContext()` Creates a VelocityContext.

Methods in org.apache.velocity.texen.ant with parameters of type Context
`protected void` | `TexenTask.populateInitialContext(Context context)` Place useful objects into the initial context.

Uses of Context in org.apache.velocity.util

Methods in org.apache.velocity.util with parameters of type Context
`void` | `ContextAware.setContext(Context context)` Initialize the EventHandler.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.