|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.portal.services.impl.VelocityServiceImpl
public class VelocityServiceImpl
Velocity service implementation with skinning support.
| Constructor Summary | |
|---|---|
VelocityServiceImpl(PortalManager portalManager,
DynamicPageCache pageCache)
Construct and configure the Velocity service. |
|
| 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)
Resolves the given resource to a valid Velocity resource if possible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VelocityServiceImpl(PortalManager portalManager,
DynamicPageCache pageCache)
portalManager - PortalManager instancepageCache - DynamicPageCache instance| Method Detail |
|---|
public InputStream getResource(String resourcePath)
getResource in interface VelocityServiceresourcePath - valid Velocity resource path
public InputStream getResource(String portalId,
String resourceName)
getResource in interface VelocityServiceportalId - the portal to get the resource fromresourceName - the resource to get
public String resourceExists(String portalId,
String resourceName)
resourceExists in interface VelocityServiceportalId - the portal to get the resource fromresourceName - the resource to check
public void renderTemplate(String portalId,
String templateName,
org.apache.velocity.context.Context context,
Writer writer)
throws Exception
renderTemplate in interface VelocityServiceportalId - 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 | |||||||||