public class JDBCAlias
extends org.apache.mailet.base.GenericMailet
<mailet match="All" class="JDBCAlias"> <mappings>db://maildb/Aliases</mappings> <source_column>source_email_address</source_column> <target_column>target_email_address</target_column> </mailet>
Modifier and Type | Field and Description |
---|---|
protected DataSource |
datasource |
protected String |
query |
Constructor and Description |
---|
JDBCAlias() |
Modifier and Type | Method and Description |
---|---|
String |
getMailetInfo()
Return a string describing this mailet.
|
void |
init()
Initialize the mailet
|
void |
service(org.apache.mailet.Mail mail) |
void |
setDataSource(DataSource datasource) |
protected DataSource datasource
protected String query
public void setDataSource(DataSource datasource)
public void init() throws javax.mail.MessagingException
init
in class org.apache.mailet.base.GenericMailet
javax.mail.MessagingException
public void service(org.apache.mailet.Mail mail) throws javax.mail.MessagingException
service
in interface org.apache.mailet.Mailet
service
in class org.apache.mailet.base.GenericMailet
javax.mail.MessagingException
public String getMailetInfo()
getMailetInfo
in interface org.apache.mailet.Mailet
getMailetInfo
in class org.apache.mailet.base.GenericMailet
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.