|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.plugin.velocity.StandaloneVelocityPlugin org.blojsom.plugin.moblog.MoblogPlugin
Moblog Plugin
Field Summary | |
static java.lang.String |
DEFAULT_IMAGE_MIME_TYPES
Default mime-types for images |
static java.lang.String |
DEFAULT_MOBLOG_AUTHORIZATION_FILE
Default moblog authorization properties file which lists valid e-mail addresses who can moblog entries |
static java.lang.String |
DEFAULT_TEXT_MIME_TYPES
Default mime-types for text |
static java.lang.String |
PLUGIN_MOBLOG_ATTACHMENT_MIME_TYPES
Configuration property for attachment mime-types |
static java.lang.String |
PLUGIN_MOBLOG_CONFIGURATION_IP
Moblog confifguration parameter for web.xml |
static java.lang.String |
PLUGIN_MOBLOG_IGNORE_EXPRESSION
Configuration property for regular expression to ignore a certain portion of text |
static java.lang.String |
PLUGIN_MOBLOG_IMAGE_MIME_TYPES
Configuration property for image mime-types |
static java.lang.String |
PLUGIN_MOBLOG_POLL_TIME
Moblog configuration parameter for mailbox polling time (5 minutes) |
static java.lang.String |
PLUGIN_MOBLOG_SECRET_WORD
Configuration property for the secret word that must be present at the beginning of the subject |
static java.lang.String |
PLUGIN_MOBLOG_STORE_PROVIDER
Moblog configuration parameter for message store provider |
static java.lang.String |
PLUGIN_MOBLOG_TEXT_MIME_TYPES
Configuration property for text mime-types |
static java.lang.String |
PROPERTY_AUTHORIZATION
Configuration property for moblog authorization properties file to use |
static java.lang.String |
PROPERTY_CATEGORY
Configuration property for moblog category |
static java.lang.String |
PROPERTY_ENABLED
Configuration property for whether or not moblog is enabled for this blog |
static java.lang.String |
PROPERTY_HOSTNAME
Configuration property for mailhost |
static java.lang.String |
PROPERTY_PASSWORD
Configuration property for mailbox user password |
static java.lang.String |
PROPERTY_USERID
Configuration property for mailbox user ID |
Fields inherited from class org.blojsom.plugin.velocity.StandaloneVelocityPlugin |
_baseConfigurationDirectory, _installationDirectory, _templatesDirectory, _velocityProperties |
Fields inherited from interface org.blojsom.plugin.email.EmailConstants |
SESSION_NAME, SMTPSERVER_IP, SMTPSERVER_PASSWORD_IP, SMTPSERVER_USERNAME_IP |
Constructor Summary | |
MoblogPlugin()
|
Method Summary | |
void |
cleanup()
Perform any cleanup for the plugin. |
void |
destroy()
Called when BlojsomServlet is taken out of service |
protected java.io.File |
getBlogCategoryDirectory(Blog blog,
java.lang.String categoryName)
Get the blog category. |
void |
init(javax.servlet.ServletConfig servletConfig,
BlojsomConfiguration blojsomConfiguration)
Initialize this plugin. |
BlogEntry[] |
process(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
BlogUser user,
java.util.Map context,
BlogEntry[] entries)
Process the blog entries |
protected java.lang.String |
sanitizeContentType(java.lang.String contentType)
Return a content type up to the first ; character |
Methods inherited from class org.blojsom.plugin.velocity.StandaloneVelocityPlugin |
getVelocityFileLoaderPath, mergeTemplate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_TEXT_MIME_TYPES
public static final java.lang.String DEFAULT_IMAGE_MIME_TYPES
public static final java.lang.String PLUGIN_MOBLOG_CONFIGURATION_IP
public static final java.lang.String PLUGIN_MOBLOG_POLL_TIME
public static final java.lang.String PLUGIN_MOBLOG_STORE_PROVIDER
public static final java.lang.String DEFAULT_MOBLOG_AUTHORIZATION_FILE
public static final java.lang.String PROPERTY_AUTHORIZATION
public static final java.lang.String PROPERTY_HOSTNAME
public static final java.lang.String PROPERTY_USERID
public static final java.lang.String PROPERTY_PASSWORD
public static final java.lang.String PROPERTY_CATEGORY
public static final java.lang.String PROPERTY_ENABLED
public static final java.lang.String PLUGIN_MOBLOG_SECRET_WORD
public static final java.lang.String PLUGIN_MOBLOG_IMAGE_MIME_TYPES
public static final java.lang.String PLUGIN_MOBLOG_ATTACHMENT_MIME_TYPES
public static final java.lang.String PLUGIN_MOBLOG_TEXT_MIME_TYPES
public static final java.lang.String PLUGIN_MOBLOG_IGNORE_EXPRESSION
Constructor Detail |
public MoblogPlugin()
Method Detail |
public void init(javax.servlet.ServletConfig servletConfig, BlojsomConfiguration blojsomConfiguration) throws BlojsomPluginException
init
in interface BlojsomPlugin
init
in class StandaloneVelocityPlugin
servletConfig
- Servlet config object for the plugin to retrieve any
initialization parametersblojsomConfiguration
- BlojsomConfiguration
information
BlojsomPluginException
- If there is an error
initializing the pluginpublic BlogEntry[] process(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, BlogUser user, java.util.Map context, BlogEntry[] entries) throws BlojsomPluginException
process
in interface BlojsomPlugin
httpServletRequest
- RequesthttpServletResponse
- Responseuser
- BlogUser
instancecontext
- Contextentries
- Blog entries retrieved for the particular request
BlojsomPluginException
- If there is an error processing the blog
entriespublic void cleanup() throws BlojsomPluginException
process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.blojsom.blog.BlogUser, java.util.Map, org.blojsom.blog.BlogEntry[])
.
cleanup
in interface BlojsomPlugin
BlojsomPluginException
- If there is an error performing cleanup
for this pluginpublic void destroy() throws BlojsomPluginException
destroy
in interface BlojsomPlugin
BlojsomPluginException
- If there is an error in finalizing this
pluginprotected java.io.File getBlogCategoryDirectory(Blog blog, java.lang.String categoryName)
categoryName
- Category name
protected java.lang.String sanitizeContentType(java.lang.String contentType)
contentType
- Content type
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |