|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.blojsom.dispatcher.VelocityDispatcher
VelocityDispatcher
| 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 |
| Field Summary |
| Constructor Summary | |
VelocityDispatcher()
Create a new VelocityDispatcher |
|
| 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,
BlogUser user,
java.util.Map context,
java.lang.String flavorTemplate,
java.lang.String flavorContentType)
Dispatch a request and response. |
protected java.lang.String |
getVelocityFileLoaderPath(java.lang.String userId)
Return a path appropriate for the Velocity file resource loader |
void |
init(javax.servlet.ServletConfig servletConfig,
BlojsomConfiguration blojsomConfiguration)
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 |
| 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(javax.servlet.ServletConfig servletConfig,
BlojsomConfiguration blojsomConfiguration)
throws BlojsomException
init in interface BlojsomDispatcherservletConfig - ServletConfig for obtaining any initialization parametersblojsomConfiguration - BlojsomConfiguration for blojsom-specific configuration information
BlojsomException - If there is an error initializing the dispatcherprotected java.lang.String getVelocityFileLoaderPath(java.lang.String userId)
userId - User ID
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,
BlogUser user,
java.util.Map context,
java.lang.String flavorTemplate,
java.lang.String flavorContentType)
throws java.io.IOException,
javax.servlet.ServletException
dispatch in interface BlojsomDispatcherhttpServletRequest - RequesthttpServletResponse - Responseuser - BlogUser instancecontext - 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 | ||||||||||