|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VelocityService
Service to render and retrieve resources from Velocity.
| Method Summary | |
|---|---|
InputStream |
getResource(String resourcePath)
Gets a Velocity resource. |
InputStream |
getResource(String portalId,
String resourceName)
Gets a Velocity resource. |
void |
renderTemplate(String portalId,
String templateName,
org.apache.velocity.context.Context context,
Writer writer)
Renders a Velocity template with the given context. |
String |
resourceExists(String portalId,
String resourceName)
Gets the resolved path to the specified resource. |
| Method Detail |
|---|
InputStream getResource(String resourcePath)
resourcePath - a valid Velocity resource
InputStream getResource(String portalId,
String resourceName)
portalId - the portal to get the resource fromresourceName - the resource to get
String resourceExists(String portalId,
String resourceName)
portalId - the portal to get the resource fromresourceName - the resource to check for
void renderTemplate(String portalId,
String templateName,
org.apache.velocity.context.Context context,
Writer writer)
throws Exception
portalId - the portal to render the resource fromtemplateName - the template to rendercontext - the Velocity context to renderwriter - a writer to output the render result to
Exception - if an error occurred while rendering the template
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||