public class ValidRcptHandler extends org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler implements InitializingLifecycleAwareProtocolHandler
Constructor and Description |
---|
ValidRcptHandler() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
UsersRepository |
getUsers()
Gets the users repository.
|
void |
init(org.apache.commons.configuration.Configuration config)
Init with the given
Configuration |
protected boolean |
isLocalDomain(org.apache.james.protocols.smtp.SMTPSession session,
String domain) |
protected boolean |
isValidRecipient(org.apache.james.protocols.smtp.SMTPSession session,
org.apache.james.protocols.smtp.MailAddress recipient) |
void |
setDomainList(DomainList domains) |
void |
setRecipientRewriteTable(RecipientRewriteTable vut)
Sets the virtual user table store.
|
void |
setRecipientRewriteTableSupport(boolean useVut) |
void |
setUsers(UsersRepository users)
Sets the users repository.
|
public final UsersRepository getUsers()
public final void setUsers(UsersRepository users)
users
- the users to setpublic final void setRecipientRewriteTable(RecipientRewriteTable vut)
vut
- the tableStore to setpublic void setDomainList(DomainList domains)
public void setRecipientRewriteTableSupport(boolean useVut)
protected boolean isValidRecipient(org.apache.james.protocols.smtp.SMTPSession session, org.apache.james.protocols.smtp.MailAddress recipient)
isValidRecipient
in class org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler
protected boolean isLocalDomain(org.apache.james.protocols.smtp.SMTPSession session, String domain)
isLocalDomain
in class org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler
#isLocalDomain(org.apache.james.protocols.smtp.SMTPSession,
java.lang.String)
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.