|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.blojsom.servlet.BlojsomBaseServlet org.blojsom.servlet.BlojsomServlet
BlojsomServlet
Field Summary |
Fields inherited from class org.blojsom.servlet.BlojsomBaseServlet |
_baseConfigurationDirectory, _blojsomConfiguration, _fetcher, _servletConfig |
Constructor Summary | |
BlojsomServlet()
Create a new blojsom servlet instance |
Method Summary | |
protected void |
configureDispatchers(javax.servlet.ServletConfig servletConfig)
Configure the dispatchers that blojsom will use when passing a request/response on to a particular template |
protected void |
configureFlavorsForBlog(javax.servlet.ServletConfig servletConfig,
BlogUser blogUser)
Configure the flavors for the blog which map flavor values like "html" and "rss" to the proper template and content type |
protected void |
configurePlugins(javax.servlet.ServletConfig servletConfig)
Load the plugins |
protected void |
configurePluginsForBlog(javax.servlet.ServletConfig servletConfig,
BlogUser blogUser)
Configure the plugins that blojsom will use for a given blog |
protected void |
configureResourceManager()
Instantiate the resource manager |
void |
destroy()
Called when removing the servlet from the servlet container. |
void |
init(javax.servlet.ServletConfig servletConfig)
Initialize blojsom: configure blog, configure flavors, configure dispatchers |
protected void |
service(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Service a request to blojsom |
Methods inherited from class org.blojsom.servlet.BlojsomBaseServlet |
configureBlojsom, configureFetcher |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BlojsomServlet()
Method Detail |
protected void configureDispatchers(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
servletConfig
- Servlet configuration information
javax.servlet.ServletException
protected void configureFlavorsForBlog(javax.servlet.ServletConfig servletConfig, BlogUser blogUser) throws javax.servlet.ServletException
servletConfig
- Servlet configuration information
javax.servlet.ServletException
protected void configurePlugins(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
servletConfig
- ServletConfig
javax.servlet.ServletException
- If there is an error loading the plugin configuration fileprotected void configurePluginsForBlog(javax.servlet.ServletConfig servletConfig, BlogUser blogUser) throws javax.servlet.ServletException
servletConfig
- Servlet configuration informationblogUser
- BlogUser
information
javax.servlet.ServletException
protected void configureResourceManager() throws javax.servlet.ServletException
javax.servlet.ServletException
- If there is an error instantiating the resource manager classpublic void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class BlojsomBaseServlet
servletConfig
- Servlet configuration information
javax.servlet.ServletException
- If there is an error initializing blojsomprotected void service(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws javax.servlet.ServletException, java.io.IOException
httpServletRequest
- RequesthttpServletResponse
- Response
javax.servlet.ServletException
- If there is an error processing the request
java.io.IOException
- If there is an error in IOpublic void destroy()
BlojsomPlugin.destroy()
method for each of the plugins loaded by
blojsom. This method also calls the BlojsomFetcher.destroy()
method for the fetcher loaded
by blojsom.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |