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, setUsersRepository
public void setDNSService(DNSService dns)
dns
- protected String getSQLSectionName()
getSQLSectionName
in class AbstractSQLWhitelistMatcher
AbstractSQLWhitelistMatcher.getSQLSectionName()
public void init() throws javax.mail.MessagingException
init
in class AbstractSQLWhitelistMatcher
javax.mail.MessagingException
protected boolean matchedWhitelist(org.apache.mailet.MailAddress recipientMailAddress, org.apache.mailet.Mail mail) throws javax.mail.MessagingException
matchedWhitelist
in class AbstractSQLWhitelistMatcher
javax.mail.MessagingException
#matchedWhitelist(org.apache.mailet.MailAddress, org.apache.mailet.Mail)
protected String getTableCreateQueryName()
getTableCreateQueryName
in class AbstractSQLWhitelistMatcher
AbstractSQLWhitelistMatcher.getTableCreateQueryName()
protected String getTableName()
getTableName
in class AbstractSQLWhitelistMatcher
AbstractSQLWhitelistMatcher.getTableName()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.