|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.fetcher.StandardFetcher org.blojsom.fetcher.CachingFetcher
CachingFetcher
Field Summary | |
protected static com.opensymphony.oscache.general.GeneralCacheAdministrator |
_cache
|
Fields inherited from class org.blojsom.fetcher.StandardFetcher |
_blojsomConfiguration, _ignoreFlavors, DEFAULT_IGNORE_FLAVORS, DEPTH_PARAM, IGNORE_FLAVORS_PARAM, STANDARD_FETCHER_CATEGORY, STANDARD_FETCHER_DEPTH |
Fields inherited from interface org.blojsom.fetcher.BlojsomFetcher |
FETCHER_CATEGORY, FETCHER_FLAVOR, FETCHER_NUM_POSTS_INTEGER, FETCHER_PERMALINK |
Constructor Summary | |
CachingFetcher()
Default constructor |
Method Summary | |
BlogEntry[] |
fetchEntries(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
BlogUser user,
java.lang.String flavor,
java.util.Map context)
Fetch a set of BlogEntry objects. |
protected BlogEntry[] |
filterEntriesForFlavor(BlogUser blog,
java.lang.String flavor)
Filter blog entries for the flavor |
protected BlogEntry[] |
getEntriesFromCache(BlogUser blog)
Retrieve cached blog entries for a given blog |
void |
handleEvent(BlojsomEvent event)
Handle an event broadcast from another component |
void |
init(javax.servlet.ServletConfig servletConfig,
BlojsomConfiguration blojsomConfiguration)
Initialize this fetcher. |
void |
processEvent(BlojsomEvent event)
Process an event from another component |
Methods inherited from class org.blojsom.fetcher.StandardFetcher |
destroy, fetchCategories, fetchCategories, fetchEntries, getBlogCategories, getBlogCategory, getBlogCategoryHierarchy, getEntriesAllCategories, getEntriesAllCategories, getEntriesForCategory, getPermalinkEntry, newBlogCategory, newBlogComment, newBlogEntry, newPingback, newTrackback, recursiveCategoryBuilder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static com.opensymphony.oscache.general.GeneralCacheAdministrator _cache
Constructor Detail |
public CachingFetcher()
Method Detail |
public void init(javax.servlet.ServletConfig servletConfig, BlojsomConfiguration blojsomConfiguration) throws BlojsomFetcherException
init
in interface BlojsomFetcher
init
in class StandardFetcher
servletConfig
- Servlet config object for the plugin to retrieve any initialization parametersblojsomConfiguration
- blojsom configuration information
BlojsomFetcherException
- If there is an error initializing the fetcherpublic BlogEntry[] fetchEntries(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, BlogUser user, java.lang.String flavor, java.util.Map context) throws BlojsomFetcherException
BlogEntry
objects.
fetchEntries
in interface BlojsomFetcher
fetchEntries
in class StandardFetcher
httpServletRequest
- RequesthttpServletResponse
- Responseuser
- BlogUser
instanceflavor
- Flavorcontext
- Context
BlojsomFetcherException
- If there is an error retrieving the blog entries for the requestprotected BlogEntry[] getEntriesFromCache(BlogUser blog)
blog
- BlogUser
protected BlogEntry[] filterEntriesForFlavor(BlogUser blog, java.lang.String flavor)
blog
- BlogUser
flavor
- Flavor
BlogEntry[]
for flavorpublic void handleEvent(BlojsomEvent event)
handleEvent
in interface BlojsomListener
event
- BlojsomEvent
to be handledpublic void processEvent(BlojsomEvent event)
processEvent
in interface BlojsomListener
event
- BlojsomEvent
to be handled
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |