public class NetworkIsInWhitelist extends AbstractSQLWhitelistMatcher
Matcher which lookup whitelisted networks in a database. The networks can be specified via netmask.
For example: 192.168.0.0/24
Th whitelisting is done per recipient
datasource, sqlQueries, theJDBCUtil| Constructor and Description |
|---|
NetworkIsInWhitelist() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getSQLSectionName() |
protected String |
getTableCreateQueryName() |
protected String |
getTableName() |
void |
init() |
protected boolean |
matchedWhitelist(org.apache.mailet.MailAddress recipientMailAddress,
org.apache.mailet.Mail mail) |
void |
setDNSService(DNSService dns)
Injection setter for the DNSService.
|
getPrimaryName, initSqlQueries, match, setDataSource, setFilesystem, setUsersRepositorypublic void setDNSService(DNSService dns)
dns - protected String getSQLSectionName()
getSQLSectionName in class AbstractSQLWhitelistMatcherAbstractSQLWhitelistMatcher.getSQLSectionName()public void init()
throws javax.mail.MessagingException
init in class AbstractSQLWhitelistMatcherjavax.mail.MessagingExceptionprotected boolean matchedWhitelist(org.apache.mailet.MailAddress recipientMailAddress,
org.apache.mailet.Mail mail)
throws javax.mail.MessagingException
matchedWhitelist in class AbstractSQLWhitelistMatcherjavax.mail.MessagingException#matchedWhitelist(org.apache.mailet.MailAddress, org.apache.mailet.Mail)protected String getTableCreateQueryName()
getTableCreateQueryName in class AbstractSQLWhitelistMatcherAbstractSQLWhitelistMatcher.getTableCreateQueryName()protected String getTableName()
getTableName in class AbstractSQLWhitelistMatcherAbstractSQLWhitelistMatcher.getTableName()Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.