com.atlassian.jira.service.services.imap
Class ImapService

java.lang.Object
  extended by com.atlassian.jira.service.AbstractService
      extended by com.atlassian.jira.service.services.file.AbstractMessageHandlingService
          extended by com.atlassian.jira.service.services.mail.MailFetcherService
              extended by com.atlassian.jira.service.services.imap.ImapService
All Implemented Interfaces:
com.atlassian.configurable.ObjectConfigurable, JiraService

public class ImapService
extends MailFetcherService

Connect to a IMAP mailbox specified by the 'mail-hostname', 'username' and 'password' parameters, and for each message call handleMessage(). Reads mail from a specified IMAP 'foldername' JRA-6067 (default is INBOX)


Field Summary
 
Fields inherited from class com.atlassian.jira.service.services.mail.MailFetcherService
DEFAULT_FOLDER, FORWARD_EMAIL, mailserverId, USE_SSL
 
Fields inherited from class com.atlassian.jira.service.services.file.AbstractMessageHandlingService
handler, KEY_HANDLER, KEY_HANDLER_PARAMS
 
Fields inherited from class com.atlassian.jira.service.AbstractService
name
 
Fields inherited from interface com.atlassian.jira.service.JiraService
NAME_COMPARATOR
 
Constructor Summary
ImapService()
           
 
Method Summary
protected  String getFolderName()
           
 com.atlassian.configurable.ObjectConfiguration getObjectConfiguration()
           
 String getProtocol(boolean useSSL)
           
 
Methods inherited from class com.atlassian.jira.service.services.mail.MailFetcherService
destroy, init, run
 
Methods inherited from class com.atlassian.jira.service.services.file.AbstractMessageHandlingService
getHandler
 
Methods inherited from class com.atlassian.jira.service.AbstractService
getDefaultProperty, getDescription, getKey, getLongProperty, getName, getObjectConfiguration, getProperties, getProperty, getTextProperty, hasProperty, isInternal, isUnique, setName
 
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, getTextProperty, hasProperty
 

Constructor Detail

ImapService

public ImapService()
Method Detail

getProtocol

public String getProtocol(boolean useSSL)
Specified by:
getProtocol in class MailFetcherService

getFolderName

protected String getFolderName()
Specified by:
getFolderName in class MailFetcherService

getObjectConfiguration

public com.atlassian.configurable.ObjectConfiguration getObjectConfiguration()
                                                                      throws com.atlassian.configurable.ObjectConfigurationException
Throws:
com.atlassian.configurable.ObjectConfigurationException


Copyright © 2002-2009 Atlassian. All Rights Reserved.