|
|||||||||||
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_AUTHORIZED_ADDRESSES
|
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 |
_servletConfig, _velocityProperties |
Constructor Summary | |
MoblogPlugin()
|
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 |
protected java.lang.String |
sanitizeContentType(java.lang.String contentType)
Return a content type up to the first ; character |
void |
setEventBroadcaster(EventBroadcaster eventBroadcaster)
Set the EventBroadcaster |
void |
setFetcher(Fetcher fetcher)
Set the Fetcher |
Methods inherited from class org.blojsom.plugin.velocity.StandaloneVelocityPlugin |
mergeTemplate, setServletConfig, setVelocityProperties |
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
public static final java.lang.String PLUGIN_MOBLOG_AUTHORIZED_ADDRESSES
Constructor Detail |
public MoblogPlugin()
Method Detail |
public void setFetcher(Fetcher fetcher)
Fetcher
fetcher
- Fetcher
public void setEventBroadcaster(EventBroadcaster eventBroadcaster)
EventBroadcaster
eventBroadcaster
- EventBroadcaster
public void init() throws PluginException
init
in interface Plugin
init
in class StandaloneVelocityPlugin
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
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[])
.
PluginException
- If there is an error performing cleanup for this pluginpublic void destroy() throws PluginException
PluginException
- If there is an error in finalizing this pluginprotected 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 |