|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.blojsom.dispatcher.webmacro.WebMacroDispatcher
WebMacro dispatcher
| Constructor Summary | |
WebMacroDispatcher()
Construct a new instance of the WebMacro dispatcher |
|
| Method Summary | |
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. |
protected java.lang.String |
getWebMacroGlobalTemplatePath()
Return a path appropriate for the WebMacro file resource loader |
protected java.lang.String |
getWebMacroTemplatePathForBlog(java.lang.String blogID)
Return a path appropriate for the WebMacro file resource loader for a given blog |
void |
init()
Initialization method for blojsom dispatchers |
protected void |
populateWebMacroContext(javax.servlet.http.HttpServletRequest httpServletRequest,
java.util.Map context)
Populate the WebMacro 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 |
setWebMacroProperties(java.util.Properties webMacroProperties)
Set the WebMacro 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 WebMacroDispatcher()
| Method Detail |
public void setWebMacroProperties(java.util.Properties webMacroProperties)
webMacroProperties - Properties for WebMacro configurationpublic void setBlojsomProperties(java.util.Properties blojsomProperties)
blojsomProperties - Properties in use by blojsompublic void setServletConfig(javax.servlet.ServletConfig servletConfig)
ServletConfig
servletConfig - ServletConfig
public void init()
throws BlojsomException
init in interface DispatcherBlojsomException - If there is an error initializing the dispatcherprotected java.lang.String getWebMacroTemplatePathForBlog(java.lang.String blogID)
blogID - Blog ID
protected java.lang.String getWebMacroGlobalTemplatePath()
protected void populateWebMacroContext(javax.servlet.http.HttpServletRequest httpServletRequest,
java.util.Map context)
httpServletRequest - Requestcontext - Context
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 | ||||||||||