org.apache.james.transport.mailets
Class VirtualUserTable

java.lang.Object
  extended by org.apache.mailet.base.GenericMailet
      extended by org.apache.james.transport.mailets.AbstractVirtualUserTableMailet
          extended by org.apache.james.transport.mailets.VirtualUserTable
All Implemented Interfaces:
org.apache.mailet.Mailet, org.apache.mailet.MailetConfig

public class VirtualUserTable
extends AbstractVirtualUserTableMailet

Mailet which should get used when using VirtualUserTable-Store to implementations for mappings of forwards and aliases. If no VirtualUsertable-Store name is given the default of DefaultVirtualUserTable will get used. eg. DefaultVirtualUserTable


Constructor Summary
VirtualUserTable()
           
 
Method Summary
 java.lang.String getMailetInfo()
           
 VirtualUserTable getVut()
          Gets the virtual user table.
 VirtualUserTableStore getVutStore()
          Gets the virtual user table store.
 void init()
           
 java.util.Collection processMail(org.apache.mailet.MailAddress sender, org.apache.mailet.MailAddress recipient, javax.mail.internet.MimeMessage message)
          Process the mail
 void setVut(VirtualUserTable vut)
          Sets the virtual user table.
 void setVutStore(VirtualUserTableStore vutStore)
          Sets the virtual table store.
 
Methods inherited from class org.apache.james.transport.mailets.AbstractVirtualUserTableMailet
handleMappings, service
 
Methods inherited from class org.apache.mailet.base.GenericMailet
arrayToString, checkInitParameters, destroy, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualUserTable

public VirtualUserTable()
Method Detail

getVut

public final VirtualUserTable getVut()
Gets the virtual user table.

Returns:
the vut

setVut

public final void setVut(VirtualUserTable vut)
Sets the virtual user table.

Parameters:
vut - the vut to set

getVutStore

public final VirtualUserTableStore getVutStore()
Gets the virtual user table store.

Returns:
the vutStore, possibly null

setVutStore

public final void setVutStore(VirtualUserTableStore vutStore)
Sets the virtual table store.

Parameters:
vutStore - the vutStore to set, possibly null

init

public void init()
          throws javax.mail.MessagingException
Overrides:
init in class org.apache.mailet.base.GenericMailet
Throws:
javax.mail.MessagingException
See Also:
GenericMailet.init()

processMail

public java.util.Collection processMail(org.apache.mailet.MailAddress sender,
                                        org.apache.mailet.MailAddress recipient,
                                        javax.mail.internet.MimeMessage message)
                                 throws javax.mail.MessagingException
Description copied from class: AbstractVirtualUserTableMailet
Process the mail

Specified by:
processMail in class AbstractVirtualUserTableMailet
Parameters:
sender - the sender of the mail
recipient - the recipient of the mail
message - the mail message
Returns:
collection of recipients
Throws:
javax.mail.MessagingException
See Also:
org.apache.james.transport.mailets.AbstractVirtualUserTable#processMail(org.apache.mailet.MailAddress, org.apache.mailet.MailAddress, javax.mail.internet.MimeMessage)

getMailetInfo

public java.lang.String getMailetInfo()
Specified by:
getMailetInfo in interface org.apache.mailet.Mailet
Overrides:
getMailetInfo in class org.apache.mailet.base.GenericMailet
See Also:
GenericMailet.getMailetInfo()


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