Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- attachEventCartridge(EventCartridge) - Method in class org.apache.velocity.example.DBContext
- attachEventCartridge(EventCartridge) - Method in class org.apache.velocity.example.TreeMapContext
C
- compile(Reader) - Method in class org.apache.velocity.script.VelocityScriptEngine
-
Compile a template
- compile(String) - Method in class org.apache.velocity.script.VelocityScriptEngine
-
Compile a template
- conn - Variable in class org.apache.velocity.example.DBContext
- context - Variable in class org.apache.velocity.example.TreeMapContext
- createBindings() - Method in class org.apache.velocity.script.VelocityScriptEngine
-
creates a new Bindings to be used with this script
D
- DBContext - Class in org.apache.velocity.example
-
Example context impl that uses a database to store stuff :) yes, this is silly expects a mysql db test with table CREATE TABLE contextstore ( k varchar(100), val blob ); very fragile, crappy code....
- DBContext() - Constructor for class org.apache.velocity.example.DBContext
- DBContext(Context) - Constructor for class org.apache.velocity.example.DBContext
- DBContextTest - Class in org.apache.velocity.example
-
the ultimate in silliness...
- DBContextTest(String) - Constructor for class org.apache.velocity.example.DBContextTest
- debug(String) - Method in class org.apache.velocity.example.EventExample
- debug(String, Object) - Method in class org.apache.velocity.example.EventExample
- debug(String, Object...) - Method in class org.apache.velocity.example.EventExample
- debug(String, Object, Object) - Method in class org.apache.velocity.example.EventExample
- debug(String, Throwable) - Method in class org.apache.velocity.example.EventExample
E
- engine - Variable in class org.apache.velocity.script.VelocityCompiledScript
- error(String) - Method in class org.apache.velocity.example.EventExample
- error(String, Object) - Method in class org.apache.velocity.example.EventExample
- error(String, Object...) - Method in class org.apache.velocity.example.EventExample
- error(String, Object, Object) - Method in class org.apache.velocity.example.EventExample
- error(String, Throwable) - Method in class org.apache.velocity.example.EventExample
- eval(Reader, ScriptContext) - Method in class org.apache.velocity.script.VelocityScriptEngine
-
Evaluate the given script.
- eval(String, ScriptContext) - Method in class org.apache.velocity.script.VelocityScriptEngine
-
Evaluate the given script.
- eval(ScriptContext) - Method in class org.apache.velocity.script.VelocityCompiledScript
- EventExample - Class in org.apache.velocity.example
-
This class is a simple demonstration of how the event handling features of the Velocity Servlet Engine are used.
- EventExample() - Constructor for class org.apache.velocity.example.EventExample
- Example - Class in org.apache.velocity.example
-
This class is a simple demonstration of how the Velocity Template Engine can be used in a standalone application.
- Example(String) - Constructor for class org.apache.velocity.example.Example
- Example2 - Class in org.apache.velocity.example
-
This class is a simple demonstration of how the Velocity Template Engine can be used in a standalone application using the Velocity utility class.
- Example2() - Constructor for class org.apache.velocity.example.Example2
- exceptionSwitch - Variable in class org.apache.velocity.example.EventExample
- extensions - Static variable in class org.apache.velocity.script.VelocityScriptEngineFactory
F
- factory - Variable in class org.apache.velocity.script.VelocityScriptEngine
- formatAndLog(int, String, Object...) - Method in class org.apache.velocity.example.EventExample
-
This prints the level and formatted message to System.out.
G
- getCurrentMacroCallDepth() - Method in class org.apache.velocity.example.DBContext
- getCurrentMacroCallDepth() - Method in class org.apache.velocity.example.TreeMapContext
- getCurrentMacroName() - Method in class org.apache.velocity.example.DBContext
- getCurrentMacroName() - Method in class org.apache.velocity.example.TreeMapContext
- getCurrentResource() - Method in class org.apache.velocity.example.DBContext
- getCurrentResource() - Method in class org.apache.velocity.example.TreeMapContext
- getCurrentTemplateName() - Method in class org.apache.velocity.example.DBContext
- getCurrentTemplateName() - Method in class org.apache.velocity.example.TreeMapContext
- getEngine() - Method in class org.apache.velocity.script.VelocityCompiledScript
- getEngineName() - Method in class org.apache.velocity.script.VelocityScriptEngineFactory
-
get engine name
- getEngineVersion() - Method in class org.apache.velocity.script.VelocityScriptEngineFactory
-
get engine version
- getEventCartridge() - Method in class org.apache.velocity.example.DBContext
- getEventCartridge() - Method in class org.apache.velocity.example.TreeMapContext
- getExtensions() - Method in class org.apache.velocity.script.VelocityScriptEngineFactory
-
get the list of file extensions handled by Velocity: vm, vtl, vhtml
- getFactory() - Method in class org.apache.velocity.script.VelocityScriptEngine
-
get the factory used to create this script engine
- getFilename(ScriptContext) - Static method in class org.apache.velocity.script.VelocityScriptEngine
- getLanguageName() - Method in class org.apache.velocity.script.VelocityScriptEngineFactory
-
get language name
- getLanguageVersion() - Method in class org.apache.velocity.script.VelocityScriptEngineFactory
-
get language version (same as engine version)
- getMacroLibraries() - Method in class org.apache.velocity.example.DBContext
- getMacroLibraries() - Method in class org.apache.velocity.example.TreeMapContext
- getMacroNameStack() - Method in class org.apache.velocity.example.DBContext
- getMacroNameStack() - Method in class org.apache.velocity.example.TreeMapContext
- getMethodCallSyntax(String, String, String...) - Method in class org.apache.velocity.script.VelocityScriptEngineFactory
-
get Velocity syntax for calling method 'm' on object 'obj' with provided arguments
- getMimeTypes() - Method in class org.apache.velocity.script.VelocityScriptEngineFactory
-
get the list of Velocity mime types
- getName() - Method in class org.apache.velocity.example.EventExample
-
Required init methods for Logger interface
- getNames() - Method in class org.apache.velocity.example.Example
- getNames() - Method in class org.apache.velocity.script.VelocityScriptEngineFactory
-
get the list of names
- getOutputStatement(String) - Method in class org.apache.velocity.script.VelocityScriptEngineFactory
-
get VTL expression used to display specified string
- getParameter(String) - Method in class org.apache.velocity.script.VelocityScriptEngineFactory
-
get engine parameter for provided key
- getProgram(String...) - Method in class org.apache.velocity.script.VelocityScriptEngineFactory
-
get whole VTL program given VTL lines
- getResourceReader(String, String) - Method in class org.apache.velocity.script.VelocityScriptEngine.SingleResourceReader
- getScriptEngine() - Method in class org.apache.velocity.script.VelocityScriptEngineFactory
-
get a Velocity script engine
- getTemplateNameStack() - Method in class org.apache.velocity.example.DBContext
- getTemplateNameStack() - Method in class org.apache.velocity.example.TreeMapContext
- getVelocityContext(ScriptContext) - Static method in class org.apache.velocity.script.VelocityScriptEngine
- getVelocityEngine() - Method in class org.apache.velocity.script.VelocityScriptEngine
-
get the internal Velocity RuntimeInstance
- getVelocityProperties(ScriptContext) - Static method in class org.apache.velocity.script.VelocityScriptEngine
I
- icacheGet(Object) - Method in class org.apache.velocity.example.DBContext
- icacheGet(Object) - Method in class org.apache.velocity.example.TreeMapContext
- icachePut(Object, IntrospectionCacheData) - Method in class org.apache.velocity.example.DBContext
- icachePut(Object, IntrospectionCacheData) - Method in class org.apache.velocity.example.TreeMapContext
- info(String) - Method in class org.apache.velocity.example.EventExample
- info(String, Object) - Method in class org.apache.velocity.example.EventExample
- info(String, Object...) - Method in class org.apache.velocity.example.EventExample
- info(String, Object, Object) - Method in class org.apache.velocity.example.EventExample
- info(String, Throwable) - Method in class org.apache.velocity.example.EventExample
- initVelocityEngine(ScriptContext) - Method in class org.apache.velocity.script.VelocityScriptEngine
- internalContainsKey(String) - Method in class org.apache.velocity.example.DBContext
-
Not implementing.
- internalContainsKey(String) - Method in class org.apache.velocity.example.TreeMapContext
- internalGet(String) - Method in class org.apache.velocity.example.DBContext
-
retrieves a serialized object from the db and returns the living instance to the caller.
- internalGet(String) - Method in class org.apache.velocity.example.TreeMapContext
- internalGetKeys() - Method in class org.apache.velocity.example.DBContext
-
Not implementing.
- internalGetKeys() - Method in class org.apache.velocity.example.TreeMapContext
- internalPut(String, Object) - Method in class org.apache.velocity.example.DBContext
-
Serializes and stores an object in the database.
- internalPut(String, Object) - Method in class org.apache.velocity.example.TreeMapContext
- internalRemove(String) - Method in class org.apache.velocity.example.DBContext
-
Not implementing.
- internalRemove(String) - Method in class org.apache.velocity.example.TreeMapContext
- invalidGetMethod(Context, String, Object, String, Info) - Method in class org.apache.velocity.example.EventExample
- invalidMethod(Context, String, Object, String, Info) - Method in class org.apache.velocity.example.EventExample
- invalidSetMethod(Context, String, String, Info) - Method in class org.apache.velocity.example.EventExample
-
Event handler for when the right hand side of a #set() directive is null, which results in a log message.
- isDebugEnabled() - Method in class org.apache.velocity.example.EventExample
- isErrorEnabled() - Method in class org.apache.velocity.example.EventExample
- isInfoEnabled() - Method in class org.apache.velocity.example.EventExample
- isLevelEnabled(int) - Method in class org.apache.velocity.example.EventExample
-
This always returns true because logging levels can't be disabled in this impl.
- isTraceEnabled() - Method in class org.apache.velocity.example.EventExample
- isWarnEnabled() - Method in class org.apache.velocity.example.EventExample
L
- log(int, String) - Method in class org.apache.velocity.example.EventExample
-
This just prints the message and level to System.out.
- log(int, String, Throwable) - Method in class org.apache.velocity.example.EventExample
-
This prints the level, message, and the Throwable's message to System.out.
- LOG_LEVEL_DEBUG - Static variable in class org.apache.velocity.example.EventExample
- LOG_LEVEL_ERROR - Static variable in class org.apache.velocity.example.EventExample
- LOG_LEVEL_INFO - Static variable in class org.apache.velocity.example.EventExample
- LOG_LEVEL_TRACE - Static variable in class org.apache.velocity.example.EventExample
- LOG_LEVEL_WARN - Static variable in class org.apache.velocity.example.EventExample
- logOutput - Variable in class org.apache.velocity.example.EventExample
M
- main(String[]) - Static method in class org.apache.velocity.example.DBContextTest
- main(String[]) - Static method in class org.apache.velocity.example.EventExample
- main(String[]) - Static method in class org.apache.velocity.example.Example
- main(String[]) - Static method in class org.apache.velocity.example.Example2
- main(String[]) - Static method in class org.apache.velocity.example.XMLTest
- methodException(Context, Class, String, Exception, Info) - Method in class org.apache.velocity.example.EventExample
- mimeTypes - Static variable in class org.apache.velocity.script.VelocityScriptEngineFactory
N
- name - Variable in class org.apache.velocity.example.EventExample
- names - Static variable in class org.apache.velocity.script.VelocityScriptEngineFactory
O
- org.apache.velocity.example - package org.apache.velocity.example
- org.apache.velocity.script - package org.apache.velocity.script
P
- parameters - Static variable in class org.apache.velocity.script.VelocityScriptEngineFactory
- popCurrentMacroName() - Method in class org.apache.velocity.example.DBContext
- popCurrentMacroName() - Method in class org.apache.velocity.example.TreeMapContext
- popCurrentTemplateName() - Method in class org.apache.velocity.example.DBContext
- popCurrentTemplateName() - Method in class org.apache.velocity.example.TreeMapContext
- pushCurrentMacroName(String) - Method in class org.apache.velocity.example.DBContext
- pushCurrentMacroName(String) - Method in class org.apache.velocity.example.TreeMapContext
- pushCurrentTemplateName(String) - Method in class org.apache.velocity.example.DBContext
- pushCurrentTemplateName(String) - Method in class org.apache.velocity.example.TreeMapContext
R
- reader - Variable in class org.apache.velocity.script.VelocityScriptEngine.SingleResourceReader
- readResolve() - Method in class org.apache.velocity.example.EventExample
- referenceInsert(Context, String, Object) - Method in class org.apache.velocity.example.EventExample
-
Event handler for when a reference is inserted into the output stream.
S
- setCurrentResource(Resource) - Method in class org.apache.velocity.example.DBContext
- setCurrentResource(Resource) - Method in class org.apache.velocity.example.TreeMapContext
- setMacroLibraries(List<Template>) - Method in class org.apache.velocity.example.DBContext
- setMacroLibraries(List<Template>) - Method in class org.apache.velocity.example.TreeMapContext
- setup() - Method in class org.apache.velocity.example.DBContext
- SingleResourceReader(Reader) - Constructor for class org.apache.velocity.script.VelocityScriptEngine.SingleResourceReader
T
- template - Variable in class org.apache.velocity.script.VelocityCompiledScript
- throwException() - Method in class org.apache.velocity.example.EventExample
-
silly method to throw an exception to demonstrate the method invocation exception event handling
- trace(String) - Method in class org.apache.velocity.example.EventExample
- trace(String, Object) - Method in class org.apache.velocity.example.EventExample
- trace(String, Object...) - Method in class org.apache.velocity.example.EventExample
- trace(String, Object, Object) - Method in class org.apache.velocity.example.EventExample
- trace(String, Throwable) - Method in class org.apache.velocity.example.EventExample
- TreeMapContext - Class in org.apache.velocity.example
-
Example context impl that uses a TreeMap Not much point other than to show how easy it is.
- TreeMapContext() - Constructor for class org.apache.velocity.example.TreeMapContext
- TreeMapContext(Context) - Constructor for class org.apache.velocity.example.TreeMapContext
V
- VELOCITY_LANGUAGE - Static variable in class org.apache.velocity.script.VelocityScriptEngineFactory
- VELOCITY_NAME - Static variable in class org.apache.velocity.script.VelocityScriptEngineFactory
- VELOCITY_PROPERTIES_KEY - Static variable in class org.apache.velocity.script.VelocityScriptEngine
-
Key used to provide this engine with the pathname of the Velocity properties file.
- VELOCITY_VERSION - Static variable in class org.apache.velocity.script.VelocityScriptEngineFactory
- VelocityCompiledScript - Class in org.apache.velocity.script
- VelocityCompiledScript(VelocityScriptEngine, Template) - Constructor for class org.apache.velocity.script.VelocityCompiledScript
- velocityEngine - Variable in class org.apache.velocity.script.VelocityScriptEngine
- VelocityScriptEngine - Class in org.apache.velocity.script
- VelocityScriptEngine() - Constructor for class org.apache.velocity.script.VelocityScriptEngine
-
constructs a new standalone Velocity script engine
- VelocityScriptEngine(ScriptEngineFactory) - Constructor for class org.apache.velocity.script.VelocityScriptEngine
-
constructs a new Velocity script engine, linked to the given factory
- VelocityScriptEngine.SingleResourceReader - Class in org.apache.velocity.script
- VelocityScriptEngineFactory - Class in org.apache.velocity.script
- VelocityScriptEngineFactory() - Constructor for class org.apache.velocity.script.VelocityScriptEngineFactory
W
- warn(String) - Method in class org.apache.velocity.example.EventExample
- warn(String, Object) - Method in class org.apache.velocity.example.EventExample
- warn(String, Object...) - Method in class org.apache.velocity.example.EventExample
- warn(String, Object, Object) - Method in class org.apache.velocity.example.EventExample
- warn(String, Throwable) - Method in class org.apache.velocity.example.EventExample
X
- XMLTest - Class in org.apache.velocity.example
-
Example to show basic XML handling in a template.
- XMLTest(String) - Constructor for class org.apache.velocity.example.XMLTest
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form