Logo Search packages:      
Sourcecode: velocity version File versions  Download package

org::apache::velocity::app::Velocity Class Reference

Inheritance diagram for org::apache::velocity::app::Velocity:

org::apache::velocity::runtime::RuntimeConstants

List of all members.


Detailed Description

This class provides services to the application developer, such as :



While the most common way to use Velocity is via templates, as Velocity is a general-purpose template engine, there are other uses that Velocity is well suited for, such as processing dynamically created templates, or processing content streams.



The methods herein were developed to allow easy access to the Velocity facilities without direct spelunking of the internals. If there is something you feel is necessary to add here, please, send a patch.

Author:
Geir Magnusson Jr.

Christoph Reck

Jason van Zyl

Version:
Id
Velocity.java,v 1.30.4.1 2004/03/03 23:22:53 geirm Exp

Definition at line 71 of file Velocity.java.


Static Public Member Functions

static void addProperty (String key, Object value)
static void clearProperty (String key)
static void debug (Object message)
static void error (Object message)
static boolean evaluate (Context context, Writer writer, String logTag, Reader reader) throws ParseErrorException, MethodInvocationException, ResourceNotFoundException,IOException
static boolean evaluate (Context context, Writer writer, String logTag, InputStream instream) throws ParseErrorException, MethodInvocationException, ResourceNotFoundException, IOException
static boolean evaluate (Context context, Writer out, String logTag, String instring) throws ParseErrorException, MethodInvocationException, ResourceNotFoundException, IOException
static Object getProperty (String key)
static Template getTemplate (String name, String encoding) throws ResourceNotFoundException, ParseErrorException, Exception
static Template getTemplate (String name) throws ResourceNotFoundException, ParseErrorException, Exception
static void info (Object message)
static void init (Properties p) throws Exception
static void init (String propsFilename) throws Exception
static void init () throws Exception
static boolean invokeVelocimacro (String vmName, String logTag, String params[], Context context, Writer writer)
static boolean mergeTemplate (String templateName, String encoding, Context context, Writer writer) throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, Exception
static boolean mergeTemplate (String templateName, Context context, Writer writer) throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, Exception
static boolean resourceExists (String resourceName)
static void setApplicationAttribute (Object key, Object value)
static void setConfiguration (Configuration configuration)
static void setExtendedProperties (ExtendedProperties configuration)
static void setProperty (String key, Object value)
static boolean templateExists (String resourceName)
static void warn (Object message)

Static Public Attributes

static final String COUNTER_INITIAL_VALUE
static final String COUNTER_NAME
static final String DEBUG_PREFIX = " [debug] "
static final String DEFAULT_RUNTIME_DIRECTIVES
static final String DEFAULT_RUNTIME_PROPERTIES
static final String ENCODING_DEFAULT = "ISO-8859-1"
static final String ERROR_PREFIX = " [error] "
static String ERRORMSG_END
static String ERRORMSG_START
static final String FILE_RESOURCE_LOADER_CACHE
static final String FILE_RESOURCE_LOADER_PATH
static final String INFO_PREFIX = " [info] "
static final String INPUT_ENCODING = "input.encoding"
static String INTERPOLATE_STRINGLITERALS
static final String LOGSYSTEM_LOG4J_EMAIL_BUFFER_SIZE
static final String LOGSYSTEM_LOG4J_EMAIL_FROM
static final String LOGSYSTEM_LOG4J_EMAIL_SERVER
static final String LOGSYSTEM_LOG4J_EMAIL_SUBJECT
static final String LOGSYSTEM_LOG4J_EMAIL_TO
static final String LOGSYSTEM_LOG4J_FILE_BACKUPS
static final String LOGSYSTEM_LOG4J_FILE_SIZE
static final String LOGSYSTEM_LOG4J_PATTERN
static final String LOGSYSTEM_LOG4J_REMOTE_HOST
static final String LOGSYSTEM_LOG4J_REMOTE_PORT
static final String LOGSYSTEM_LOG4J_SYSLOGD_FACILITY
static final String LOGSYSTEM_LOG4J_SYSLOGD_HOST
static final int NUMBER_OF_PARSERS = 20
static final String OUTPUT_ENCODING = "output.encoding"
static String PARSE_DIRECTIVE_MAXDEPTH = "directive.parse.max.depth"
static final String PARSER_POOL_SIZE = "parser.pool.size"
static final String RESOURCE_LOADER = "resource.loader"
static String RESOURCE_MANAGER_CACHE_CLASS
static String RESOURCE_MANAGER_CLASS = "resource.manager.class"
static final String RESOURCE_MANAGER_LOGWHENFOUND
static final String RUNTIME_LOG
static final String RUNTIME_LOG_ERROR_STACKTRACE
static final String RUNTIME_LOG_INFO_STACKTRACE
static final String RUNTIME_LOG_LOGSYSTEM
static final String RUNTIME_LOG_LOGSYSTEM_CLASS
static final String RUNTIME_LOG_REFERENCE_LOG_INVALID
static final String RUNTIME_LOG_WARN_STACKTRACE
static final String UBERSPECT_CLASSNAME = "runtime.introspector.uberspect"
static final String UNKNOWN_PREFIX = " [unknown] "
static final String VM_CONTEXT_LOCALSCOPE
static final String VM_LIBRARY = "velocimacro.library"
static final String VM_LIBRARY_AUTORELOAD
static final String VM_MESSAGES_ON = "velocimacro.messages.on"
static final String VM_PERM_ALLOW_INLINE
static final String VM_PERM_ALLOW_INLINE_REPLACE_GLOBAL
static final String VM_PERM_INLINE_LOCAL
static final String WARN_PREFIX = " [warn] "

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index