|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.blojsom.plugin.calendar.AbstractCalendarPlugin
AbstractCalendarPlugin is a base plugin that is used by the various calendar plugins to filter content.
Field Summary | |
protected Fetcher |
_fetcher
|
static java.lang.String |
BLOJSOM_CALENDAR
Key under which the blog calendar will be placed (example: on the request for the JSPDispatcher) |
protected static java.lang.String |
BLOJSOM_CALENDAR_FORMAT
Format String for Calendar Month (Example: March 2003) |
protected static java.lang.String |
BLOJSOM_CALENDAR_LOCALE
|
protected static java.lang.String |
BLOJSOM_CALENDAR_SHORTFORMAT
Short Format String for Previous/Next Calendar Month(s) (Example: Mar) |
static java.lang.String |
BLOJSOM_CALENDAR_VTLHELPER
Key under which the blog calendar vtl helper will be placed (example: on the request for the JSPDispatcher) |
protected static java.lang.String |
BLOJSOM_FILTER_END_DATE
|
protected static java.lang.String |
BLOJSOM_FILTER_START_DATE
|
protected static java.lang.String |
DAY_PARAM
Request parameter for the "day" |
protected static java.lang.String |
MONTH_PARAM
Request parameter for the "month" |
protected static java.lang.String |
YEAR_PARAM
Request parameter for the "year" |
Constructor Summary | |
AbstractCalendarPlugin()
|
Method Summary | |
void |
cleanup()
Perform any cleanup for the plugin. |
void |
destroy()
Called when BlojsomServlet is taken out of service |
void |
init()
Initialize this plugin. |
Entry[] |
process(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Blog blog,
java.util.Map context,
Entry[] entries)
Process the blog entries |
void |
setFetcher(Fetcher fetcher)
Set the Fetcher |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String BLOJSOM_CALENDAR_LOCALE
protected static final java.lang.String YEAR_PARAM
protected static final java.lang.String MONTH_PARAM
protected static final java.lang.String DAY_PARAM
protected static final java.lang.String BLOJSOM_CALENDAR_FORMAT
protected static final java.lang.String BLOJSOM_CALENDAR_SHORTFORMAT
protected static final java.lang.String BLOJSOM_FILTER_START_DATE
protected static final java.lang.String BLOJSOM_FILTER_END_DATE
public static final java.lang.String BLOJSOM_CALENDAR
public static final java.lang.String BLOJSOM_CALENDAR_VTLHELPER
protected Fetcher _fetcher
Constructor Detail |
public AbstractCalendarPlugin()
Method Detail |
public void setFetcher(Fetcher fetcher)
Fetcher
fetcher
- Fetcher
public void init() throws PluginException
init
in interface Plugin
PluginException
- If there is an error initializing the pluginpublic Entry[] process(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, Blog blog, java.util.Map context, Entry[] entries) throws PluginException
process
in interface Plugin
httpServletRequest
- RequesthttpServletResponse
- Responseblog
- Blog
instancecontext
- Contextentries
- Blog entries retrieved for the particular request
PluginException
- If there is an error processing the blog entriespublic void cleanup() throws PluginException
process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.blojsom.blog.Blog, java.util.Map, org.blojsom.blog.Entry[])
.
cleanup
in interface Plugin
PluginException
- If there is an error performing cleanup for this pluginpublic void destroy() throws PluginException
destroy
in interface Plugin
PluginException
- If there is an error in finalizing this plugin
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |