com.atlassian.jira.service.services.mail
Class MailFetcherService
java.lang.Object
com.atlassian.jira.service.AbstractService
com.atlassian.jira.service.services.file.AbstractMessageHandlingService
com.atlassian.jira.service.services.mail.MailFetcherService
- All Implemented Interfaces:
- JiraService, com.atlassian.configurable.ObjectConfigurable
- public class MailFetcherService
- extends AbstractMessageHandlingService
- implements com.atlassian.configurable.ObjectConfigurable
Connect to a POP mailbox specified by the 'mail-hostname', 'username' and 'password' parameters, and
for each message call handleMessage().
Method Summary |
void |
destroy()
This method is called when the service is unloaded (usually when the web application or server
is being shut down). |
com.atlassian.configurable.ObjectConfiguration |
getObjectConfiguration()
|
void |
init(com.opensymphony.module.propertyset.PropertySet props)
MUST pass 'mail-hostname', 'username' and 'password' as parameters |
void |
run()
Connect to the POP email box and then handle each message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.configurable.ObjectConfigurable |
getDefaultProperty, getKey, getLongProperty, getProperties, getProperty, hasProperty |
mailserverId
protected java.lang.Long mailserverId
MailFetcherService
public MailFetcherService()
init
public void init(com.opensymphony.module.propertyset.PropertySet props)
throws com.atlassian.configurable.ObjectConfigurationException
- MUST pass 'mail-hostname', 'username' and 'password' as parameters
- Specified by:
init
in interface JiraService
- Overrides:
init
in class AbstractMessageHandlingService
- Throws:
com.atlassian.configurable.ObjectConfigurationException
destroy
public void destroy()
- Description copied from class:
AbstractService
- This method is called when the service is unloaded (usually when the web application or server
is being shut down).
You may wish to remove any connections that you have established, eg. database connections.
- Specified by:
destroy
in interface JiraService
- Overrides:
destroy
in class AbstractService
run
public void run()
- Connect to the POP email box and then handle each message.
- Specified by:
run
in interface JiraService
- Specified by:
run
in class AbstractService
getObjectConfiguration
public com.atlassian.configurable.ObjectConfiguration getObjectConfiguration()
throws com.atlassian.configurable.ObjectConfigurationException
- Specified by:
getObjectConfiguration
in interface com.atlassian.configurable.ObjectConfigurable
- Throws:
com.atlassian.configurable.ObjectConfigurationException
Copyright © 2002-2005 Atlassian. All Rights Reserved.