org.apache.james.jcr
Class JCRStoreMailet

java.lang.Object
  extended by org.apache.james.jcr.JCRStoreMailet
All Implemented Interfaces:
org.apache.mailet.Mailet

public class JCRStoreMailet
extends java.lang.Object
implements org.apache.mailet.Mailet

Mailet that stores messages to a JCR content repository.


Constructor Summary
JCRStoreMailet()
           
 
Method Summary
 void destroy()
          Closes this mailet by releasing the JCR connection.
 org.apache.mailet.MailetConfig getMailetConfig()
          Returns the mailet configuration.
 java.lang.String getMailetInfo()
          Returns information about this mailet.
 void init(org.apache.mailet.MailetConfig config)
          Initializes this mailet by connecting to the configured JCR repository.
 void service(org.apache.mailet.Mail mail)
          Stores the given mail message to the content repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCRStoreMailet

public JCRStoreMailet()
Method Detail

getMailetInfo

public java.lang.String getMailetInfo()
Returns information about this mailet.

Specified by:
getMailetInfo in interface org.apache.mailet.Mailet
Returns:
mailet information

getMailetConfig

public org.apache.mailet.MailetConfig getMailetConfig()
Returns the mailet configuration.

Specified by:
getMailetConfig in interface org.apache.mailet.Mailet
Returns:
mailet configuration

init

public void init(org.apache.mailet.MailetConfig config)
          throws javax.mail.MessagingException
Initializes this mailet by connecting to the configured JCR repository.

Specified by:
init in interface org.apache.mailet.Mailet
Parameters:
config - mailet configuration
Throws:
javax.mail.MessagingException - if the JCR repository can not be accessed

destroy

public void destroy()
Closes this mailet by releasing the JCR connection.

Specified by:
destroy in interface org.apache.mailet.Mailet

service

public void service(org.apache.mailet.Mail mail)
             throws javax.mail.MessagingException
Stores the given mail message to the content repository.

Specified by:
service in interface org.apache.mailet.Mailet
Parameters:
mail - mail message
Throws:
javax.mail.MessagingException - if the message could not be saved


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.