|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
BlojsomFetcher
Field Summary | |
static java.lang.String |
FETCHER_CATEGORY
|
static java.lang.String |
FETCHER_FLAVOR
|
static java.lang.String |
FETCHER_NUM_POSTS_INTEGER
|
static java.lang.String |
FETCHER_PERMALINK
|
Method Summary | |
void |
destroy()
Called when BlojsomServlet is taken out of service |
BlogCategory[] |
fetchCategories(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
BlogUser user,
java.lang.String flavor,
java.util.Map context)
Fetch a set of BlogCategory objects |
BlogCategory[] |
fetchCategories(java.util.Map fetchParameters,
BlogUser user)
Fetch a set of BlogCategory objects. |
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. |
BlogEntry[] |
fetchEntries(java.util.Map fetchParameters,
BlogUser user)
Fetch a set of BlogEntry objects. |
void |
init(javax.servlet.ServletConfig servletConfig,
BlojsomConfiguration blojsomConfiguration)
Initialize this fetcher. |
BlogCategory |
newBlogCategory()
Return a new blog category instance |
BlogComment |
newBlogComment()
Return a new BlogComment instance |
BlogEntry |
newBlogEntry()
Return a new blog entry instance |
Pingback |
newPingback()
Return a new Pingback instance |
Trackback |
newTrackback()
Return a new Trackback instance |
Field Detail |
public static final java.lang.String FETCHER_CATEGORY
public static final java.lang.String FETCHER_PERMALINK
public static final java.lang.String FETCHER_NUM_POSTS_INTEGER
public static final java.lang.String FETCHER_FLAVOR
Method Detail |
public void init(javax.servlet.ServletConfig servletConfig, BlojsomConfiguration blojsomConfiguration) throws BlojsomFetcherException
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 newBlogEntry()
public BlogComment newBlogComment()
BlogComment
instance
BlogComment
public Trackback newTrackback()
Trackback
instance
Trackback
public Pingback newPingback()
Pingback
instance
Pingback
public BlogCategory newBlogCategory()
public 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.
httpServletRequest
- RequesthttpServletResponse
- Responseuser
- BlogUser
instanceflavor
- Flavorcontext
- Context
BlojsomFetcherException
- If there is an error retrieving the blog entries for the requestpublic BlogEntry[] fetchEntries(java.util.Map fetchParameters, BlogUser user) throws BlojsomFetcherException
BlogEntry
objects. This method is intended to be used for other
components such as the XML-RPC handlers that cannot generate servlet request and
response objects, but still need to be able to fetch entries. Implementations of this
method must be explicit about the exact parameter names and types that are
expected to return an appropriate set of BlogEntry
objects.
fetchParameters
- Parameters which will be used to retrieve blog entriesuser
- BlogUser
instance
BlojsomFetcherException
- If there is an error retrieving the blog entries for the requestpublic BlogCategory[] fetchCategories(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, BlogUser user, java.lang.String flavor, java.util.Map context) throws BlojsomFetcherException
BlogCategory
objects
httpServletRequest
- RequesthttpServletResponse
- Responseuser
- BlogUser
instanceflavor
- Flavorcontext
- Context
BlojsomFetcherException
- If there is an error retrieving the blog categories for the requestpublic BlogCategory[] fetchCategories(java.util.Map fetchParameters, BlogUser user) throws BlojsomFetcherException
BlogCategory
objects. This method is intended to be used for other
components such as the XML-RPC handlers that cannot generate servlet request and
response objects, but still need to be able to fetch categories. Implementations of this
method must be explicit about the exact parameter names and types that are
expected to return an appropriate set of BlogCategory
objects.
fetchParameters
- Parameters which will be used to retrieve blog entriesuser
- BlogUser
instance
BlojsomFetcherException
- If there is an error retrieving the blog categories for the requestpublic void destroy() throws BlojsomFetcherException
BlojsomServlet
is taken out of service
BlojsomFetcherException
- If there is an error in finalizing this fetcher
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |