public class SMTPServer extends AbstractProtocolAsyncServer implements SMTPServerMBean
Modifier and Type | Class and Description |
---|---|
class |
SMTPServer.SMTPHandlerConfigurationDataImpl
A class to provide SMTP handler configuration to the handlers
|
connectionLimit, connPerIP, DEFAULT_BACKLOG, DEFAULT_MAX_EXECUTOR_COUNT, DEFAULT_TIMEOUT, HELLO_NAME, jmxName
Constructor and Description |
---|
SMTPServer() |
Modifier and Type | Method and Description |
---|---|
protected org.jboss.netty.channel.ChannelUpstreamHandler |
createCoreHandler() |
void |
doConfigure(org.apache.commons.configuration.HierarchicalConfiguration configuration) |
boolean |
getAddressBracketsEnforcement()
Return true if brackets around addresses in the MAIL and RCPT are
required
|
protected Class<? extends HandlersPackage> |
getCoreHandlersPackage()
Return the
HandlersPackage which is responsible to load the core ProtocolHandler |
protected String |
getDefaultJMXName()
Return the default name of the the server in JMX if none is configured
via "jmxname" in the configuration
|
protected int |
getDefaultPort()
Return the default port which will get used for this server if non is
specify in the configuration
|
boolean |
getHeloEhloEnforcement()
Return true if a HELO/EHLO is required when connecting to this server
|
String |
getHeloName()
Return the hello name
|
protected Class<? extends HandlersPackage> |
getJMXHandlersPackage()
Return the
HandlersPackage which is responsible to load the jmx ProtocolHandler |
long |
getMaximalMessageSize()
Return the maximum allowed size of the message
|
String |
getServiceType()
Return the service type of the server
|
protected void |
preInit()
This method is called on init of the Server.
|
void |
setAddressBracketsEnforcement(boolean enforceAddressBrackets)
Enable or disable brackets enforcement around addressed in the MAIL and
RCPT command
|
void |
setDNSService(DNSService dns) |
void |
setHeloEhloEnforcement(boolean enforceHeloEHlo)
Enable or disable the need of the HELO/EHLO
|
void |
setMaximalMessageSize(long maxSize)
Set the maximum allowed size of messages.
|
getProtocolHandlerChain, postDestroy, setProtocolHandlerLoader
configure, configureBootstrap, configureHelloName, createBossExecutor, createExecutionHander, createPipelineFactory, createWorkerExecutor, destroy, getBoundAddresses, getConnectionCountHandler, getCurrentConnections, getEnabledCipherSuites, getEncryption, getExecutionHandler, getFileSystem, getHandledConnections, getHelloName, getLogger, getMaximumConcurrentConnections, getSocketType, getStartTLSSupported, getThreadPoolJMXPath, init, isEnabled, isStarted, registerMBean, setFileSystem, setLog, start, stop, unregisterMBean
bind, createSocketChannelFactory, getBacklog, getIoWorkerCount, getListenAddresses, getTimeout, isBound, setBacklog, setIoWorkerCount, setListenAddresses, setTimeout, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSocketType, isEnabled
getBoundAddresses, getCurrentConnections, getHandledConnections, getMaximumConcurrentConnections, getSocketType, getStartTLSSupported, getTimeout, isEnabled, isStarted, start, stop
public void setDNSService(DNSService dns)
protected void preInit() throws Exception
AbstractConfigurableAsyncServer
preInit
in class AbstractProtocolAsyncServer
Exception
public void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration configuration) throws org.apache.commons.configuration.ConfigurationException
doConfigure
in class AbstractProtocolAsyncServer
org.apache.commons.configuration.ConfigurationException
protected int getDefaultPort()
getDefaultPort
in class AbstractConfigurableAsyncServer
public String getServiceType()
ServerMBean
getServiceType
in interface ServerMBean
ServerMBean.getServiceType()
public long getMaximalMessageSize()
SMTPServerMBean
SMTPServerMBean.getMaximalMessageSize()
public boolean getAddressBracketsEnforcement()
SMTPServerMBean
SMTPServerMBean.getAddressBracketsEnforcement()
public boolean getHeloEhloEnforcement()
SMTPServerMBean
SMTPServerMBean.getHeloEhloEnforcement()
protected String getDefaultJMXName()
AbstractConfigurableAsyncServer
getDefaultJMXName
in class AbstractConfigurableAsyncServer
AbstractConfigurableAsyncServer.getDefaultJMXName()
public void setMaximalMessageSize(long maxSize)
SMTPServerMBean
public void setAddressBracketsEnforcement(boolean enforceAddressBrackets)
SMTPServerMBean
public void setHeloEhloEnforcement(boolean enforceHeloEHlo)
SMTPServerMBean
public String getHeloName()
SMTPServerMBean
SMTPServerMBean.getHeloName()
protected org.jboss.netty.channel.ChannelUpstreamHandler createCoreHandler()
createCoreHandler
in class AbstractConfigurableAsyncServer
protected Class<? extends HandlersPackage> getCoreHandlersPackage()
AbstractProtocolAsyncServer
HandlersPackage
which is responsible to load the core ProtocolHandler
getCoreHandlersPackage
in class AbstractProtocolAsyncServer
protected Class<? extends HandlersPackage> getJMXHandlersPackage()
AbstractProtocolAsyncServer
HandlersPackage
which is responsible to load the jmx ProtocolHandler
getJMXHandlersPackage
in class AbstractProtocolAsyncServer
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.