| 
 | Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
   oracle.stellent.wcm.client.script.vm.VelocityScriptProvider
oracle.stellent.wcm.client.script.vm.VelocityScriptProvider
public class VelocityScriptProvider
Control the initialization of the Velocity Engine
| Nested Class Summary | |
|---|---|
| static interface | VelocityScriptProvider.ContextProviderAllow clients to populate the velocity context | 
| Field Summary | |
|---|---|
| static java.lang.String | EXTENSION | 
| static java.lang.String | VELOCITY_PROPERTY_PREFIX | 
| Constructor Summary | |
|---|---|
| VelocityScriptProvider(ClientApplication clientApplication) | |
| Method Summary | |
|---|---|
|  org.apache.velocity.context.Context | createDefaultContext(RequestContext requestContext)Create the default execution context for a velocity script | 
|  ScriptTemplate | createTemplate(RequestContext requestContext, java.lang.String path)Create the remote template for the given request context and path. | 
|  org.apache.velocity.app.VelocityEngine | getEngine() | 
| static org.apache.commons.collections.ExtendedProperties | getVelocityProperties(ClientApplication clientApplication) | 
|  void | registerContextProvider(VelocityScriptProvider.ContextProvider provider)Register a context provider | 
|  void | removeContextProvider(VelocityScriptProvider.ContextProvider provider)Remove the context provider from the list | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String EXTENSION
public static final java.lang.String VELOCITY_PROPERTY_PREFIX
| Constructor Detail | 
|---|
public VelocityScriptProvider(ClientApplication clientApplication)
                       throws java.lang.Exception
java.lang.Exception| Method Detail | 
|---|
public org.apache.velocity.app.VelocityEngine getEngine()
public void registerContextProvider(VelocityScriptProvider.ContextProvider provider)
provider - the providerpublic void removeContextProvider(VelocityScriptProvider.ContextProvider provider)
provider - the provider to remove
public org.apache.velocity.context.Context createDefaultContext(RequestContext requestContext)
                                                         throws ApplicationException
requestContext - the request contextApplicationExceptionpublic static org.apache.commons.collections.ExtendedProperties getVelocityProperties(ClientApplication clientApplication)
public ScriptTemplate createTemplate(RequestContext requestContext,
                                     java.lang.String path)
                              throws ApplicationException
createTemplate in interface ScriptProviderrequestContext - the request contextpath - the web path to the remote templateApplicationException - if the template cannot be created| 
 | Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||