public class ValidRcptMX extends Object implements InitializingLifecycleAwareProtocolHandler, org.apache.james.protocols.smtp.hook.RcptHook
Constructor and Description |
---|
ValidRcptMX() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
org.apache.james.protocols.smtp.hook.HookResult |
doRcpt(org.apache.james.protocols.smtp.SMTPSession session,
org.apache.james.protocols.smtp.MailAddress sender,
org.apache.james.protocols.smtp.MailAddress rcpt) |
DNSService |
getDNSService()
Gets the DNS service.
|
void |
init(org.apache.commons.configuration.Configuration config)
Init with the given
Configuration |
void |
setBannedNetworks(Collection<String> networks,
DNSService dnsServer)
Set the banned networks
|
void |
setDNSService(DNSService dnsService)
Sets the DNS service.
|
void |
setLog(org.slf4j.Logger log)
Sets the service log.
Where available, a context sensitive log should be used. |
public void setLog(org.slf4j.Logger log)
log
- not nullpublic final DNSService getDNSService()
public final void setDNSService(DNSService dnsService)
dnsService
- the dnsService to setpublic void setBannedNetworks(Collection<String> networks, DNSService dnsServer)
networks
- Collection of networksdnsServer
- The DNSServerpublic org.apache.james.protocols.smtp.hook.HookResult doRcpt(org.apache.james.protocols.smtp.SMTPSession session, org.apache.james.protocols.smtp.MailAddress sender, org.apache.james.protocols.smtp.MailAddress rcpt)
doRcpt
in interface org.apache.james.protocols.smtp.hook.RcptHook
org.apache.james.protocols.smtp.hook.RcptHook#doRcpt(org.apache.james.protocols.smtp.SMTPSession,
org.apache.mailet.MailAddress, org.apache.mailet.MailAddress)
public void init(org.apache.commons.configuration.Configuration config) throws org.apache.commons.configuration.ConfigurationException
InitializingLifecycleAwareProtocolHandler
Configuration
init
in interface InitializingLifecycleAwareProtocolHandler
org.apache.commons.configuration.ConfigurationException
public void destroy()
destroy
in interface org.apache.james.protocols.api.handler.LifecycleAwareProtocolHandler
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.