public class URIRBLHandler extends Object implements JamesMessageHook, InitializingLifecycleAwareProtocolHandler
| Constructor and Description | 
|---|
| URIRBLHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | check(org.apache.james.protocols.smtp.SMTPSession session,
     org.apache.mailet.Mail mail)Check method | 
| void | destroy() | 
| DNSService | getDNSService()Gets the DNS service. | 
| void | init(org.apache.commons.configuration.Configuration config)Init with the given  Configuration | 
| org.apache.james.protocols.smtp.hook.HookResult | onMessage(org.apache.james.protocols.smtp.SMTPSession session,
         org.apache.mailet.Mail mail)Handle Message | 
| void | setDNSService(DNSService dnsService)Sets the DNS service. | 
| void | setGetDetail(boolean getDetail)Set for try to get a TXT record for the blocked record. | 
| void | setUriRblServer(Collection<String> uriRbl)Set the UriRBL Servers | 
public final DNSService getDNSService()
public final void setDNSService(DNSService dnsService)
dnsService - the dnsService to setpublic void setUriRblServer(Collection<String> uriRbl)
uriRbl - The Collection holding the serverspublic void setGetDetail(boolean getDetail)
getDetail - Set to ture for enablepublic org.apache.james.protocols.smtp.hook.HookResult onMessage(org.apache.james.protocols.smtp.SMTPSession session,
                                                        org.apache.mailet.Mail mail)
JamesMessageHookonMessage in interface JamesMessageHookJamesMessageHook.onMessage(org.apache.james.protocols.smtp.SMTPSession,
      org.apache.mailet.Mail)protected boolean check(org.apache.james.protocols.smtp.SMTPSession session,
            org.apache.mailet.Mail mail)
public void init(org.apache.commons.configuration.Configuration config)
          throws org.apache.commons.configuration.ConfigurationException
InitializingLifecycleAwareProtocolHandlerConfigurationinit in interface InitializingLifecycleAwareProtocolHandlerorg.apache.commons.configuration.ConfigurationExceptionpublic void destroy()
destroy in interface org.apache.james.protocols.api.handler.LifecycleAwareProtocolHandlerCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.