|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.blojsom.dispatcher.velocity.VelocityDispatcher
Velocity dispatcher
| Nested Class Summary | |
class |
VelocityDispatcher.BlojsomRenderTool
Blojsom render tool mimics the functionality of the Velocity render tool to parse VTL markup added to a template |
| Constructor Summary | |
VelocityDispatcher()
Create a new instance of the Velocity dispatcher |
|
| Method Summary | |
protected void |
destroyVelocityContext(org.apache.velocity.VelocityContext velocityContext)
Remove references from the Velocity context |
void |
dispatch(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Blog blog,
java.util.Map context,
java.lang.String flavorTemplate,
java.lang.String flavorContentType)
Dispatch a request and response. |
void |
init()
Initialization method for blojsom dispatchers |
protected void |
populateVelocityContext(javax.servlet.http.HttpServletRequest httpServletRequest,
java.util.Map context)
Populate the Velocity context with the request and session attributes |
void |
setBlojsomProperties(java.util.Properties blojsomProperties)
Set the properties in use by blojsom |
void |
setServletConfig(javax.servlet.ServletConfig servletConfig)
Set the ServletConfig |
void |
setVelocityProperties(java.util.Properties velocityProperties)
Set the Velocity properties for use by the dispatcher |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VelocityDispatcher()
| Method Detail |
public void init()
throws BlojsomException
init in interface DispatcherBlojsomException - If there is an error initializing the dispatcherpublic void setVelocityProperties(java.util.Properties velocityProperties)
velocityProperties - Properties for Velocity configurationpublic void setBlojsomProperties(java.util.Properties blojsomProperties)
blojsomProperties - Properties in use by blojsompublic void setServletConfig(javax.servlet.ServletConfig servletConfig)
ServletConfig
servletConfig - ServletConfig
protected void populateVelocityContext(javax.servlet.http.HttpServletRequest httpServletRequest,
java.util.Map context)
httpServletRequest - Requestcontext - Contextprotected void destroyVelocityContext(org.apache.velocity.VelocityContext velocityContext)
velocityContext - VelocityContext
public void dispatch(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Blog blog,
java.util.Map context,
java.lang.String flavorTemplate,
java.lang.String flavorContentType)
throws java.io.IOException,
javax.servlet.ServletException
dispatch in interface DispatcherhttpServletRequest - RequesthttpServletResponse - Responseblog - Blogcontext - Context mapflavorTemplate - Template to dispatch to for the requested flavorflavorContentType - Content type for the requested flavor
java.io.IOException - If there is an exception during IO
javax.servlet.ServletException - If there is an exception in dispatching the request
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||