public class IMAPServer extends AbstractConfigurableAsyncServer implements org.apache.james.imap.api.ImapConstants, IMAPServerMBean, NettyConstants
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_IN_MEMORY_SIZE_LIMIT |
static int |
DEFAULT_LITERAL_SIZE_LIMIT |
static int |
DEFAULT_MAX_LINE_LENGTH |
static int |
DEFAULT_TIMEOUT |
connectionLimit, connPerIP, DEFAULT_BACKLOG, DEFAULT_MAX_EXECUTOR_COUNT, HELLO_NAME, jmxName
DEFAULT_IO_WORKER_COUNT
ACL_RESPONSE_NAME, APPEND_COMMAND_NAME, AUTHENTICATE_COMMAND_NAME, BACK_SLASH, BAD, BYE, BYTE_BACK_SLASH, BYTE_CLOSE_BRACE, BYTE_CLOSE_SQUARE_BRACKET, BYTE_CLOSING_PARENTHESIS, BYTE_DQUOTE, BYTE_OPEN_BRACE, BYTE_OPEN_SQUARE_BRACKET, BYTE_OPENING_PARENTHESIS, BYTE_QUESTION, BYTE_SP, CAPABILITY_COMMAND_NAME, CHECK_COMMAND_NAME, CLOSE_COMMAND_NAME, CLOSING_PARENTHESIS, CLOSING_SQUARE_BRACKET, COMPRESS_COMMAND_NAME, CONTINUATION, COPY_COMMAND_NAME, CREATE_COMMAND_NAME, DEFAULT_BATCH_SIZE, DELETE_COMMAND_NAME, DELETEACL_COMMAND_NAME, DQUOTE, EMPTY_STRING_ARRAY, ENABLE_COMMAND_NAME, EXAMINE_COMMAND_NAME, EXPUNGE_COMMAND_NAME, FETCH_BODY, FETCH_BODY_STRUCTURE, FETCH_COMMAND_NAME, FETCH_MODSEQ, FETCH_RFC822, FETCH_RFC822_HEADER, FETCH_RFC822_TEXT, GETACL_COMMAND_NAME, IDLE_COMMAND_NAME, INBOX_NAME, LINE_END, LIST_COMMAND_NAME, LIST_RESPONSE_NAME, LISTRIGHTS_COMMAND_NAME, LISTRIGHTS_RESPONSE_NAME, LOGIN_COMMAND_NAME, LOGOUT_COMMAND_NAME, LSUB_COMMAND_NAME, LSUB_RESPONSE_NAME, MAX_NZ_NUMBER, MIME_HEADER_CONTENT_LANGUAGE, MIME_HEADER_CONTENT_LOCATION, MIME_HEADER_CONTENT_MD5, MIME_SUBTYPE_PLAIN, MIME_SUBTYPE_RFC822, MIME_TYPE_MESSAGE, MIME_TYPE_MULTIPART, MIME_TYPE_TEXT, MIN_NZ_NUMBER, MYRIGHTS_COMMAND_NAME, MYRIGHTS_RESPONSE_NAME, NAME_ATTRIBUTE_HAS_CHILDREN, NAME_ATTRIBUTE_HAS_NO_CHILDREN, NAME_ATTRIBUTE_MARKED, NAME_ATTRIBUTE_NOINFERIORS, NAME_ATTRIBUTE_NOSELECT, NAME_ATTRIBUTE_UNMARKED, NAMESPACE_COMMAND_NAME, NIL, NO, NOOP_COMMAND_NAME, OK, OPENING_PARENTHESIS, OPENING_SQUARE_BRACKET, PS_HEADER, PS_MIME, PS_TEXT, RENAME_COMMAND_NAME, RFC822_BCC, RFC822_CC, RFC822_DATE, RFC822_FROM, RFC822_IN_REPLY_TO, RFC822_MESSAGE_ID, RFC822_REPLY_TO, RFC822_SENDER, RFC822_SUBJECT, RFC822_TO, SEARCH_COMMAND_NAME, SEARCH_RESPONSE_NAME, SELECT_COMMAND_NAME, SETACL_COMMAND_NAME, SP, SP_CHAR, STARTTLS, STATUS_COMMAND_NAME, STATUS_HIGHESTMODSEQ, STATUS_MESSAGES, STATUS_RECENT, STATUS_UIDNEXT, STATUS_UIDVALIDITY, STATUS_UNSEEN, STORE_COMMAND_NAME, SUBSCRIBE_COMMAND_NAME, SUPPORTS_ACL, SUPPORTS_CONDSTORE, SUPPORTS_ENABLE, SUPPORTS_I18NLEVEL_1, SUPPORTS_IDLE, SUPPORTS_LITERAL_PLUS, SUPPORTS_NAMESPACES, SUPPORTS_QRESYNC, SUPPORTS_RFC3348, SUPPORTS_STARTTLS, SUPPORTS_XLIST, UID, UID_COMMAND_NAME, UNSELECT_COMMAND_NAME, UNSUBSCRIBE_COMMAND_NAME, UNTAGGED, UTF8, VERSION, XLIST_COMMAND_NAME, XLIST_RESPONSE_NAME
attributes, CHUNK_WRITE_HANDLER, CONNECTION_COUNT_HANDLER, CONNECTION_LIMIT_HANDLER, CONNECTION_LIMIT_PER_IP_HANDLER, CORE_HANDLER, EXECUTION_HANDLER, FRAMER, GROUP_HANDLER, HEARTBEAT_HANDLER, REQUEST_DECODER, SSL_HANDLER, TIMEOUT_HANDLER, ZLIB_DECODER, ZLIB_ENCODER
Constructor and Description |
---|
IMAPServer() |
Modifier and Type | Method and Description |
---|---|
protected org.jboss.netty.channel.ChannelUpstreamHandler |
createCoreHandler() |
protected org.jboss.netty.handler.codec.oneone.OneToOneEncoder |
createEncoder()
Return null as we don't need this
|
protected org.jboss.netty.channel.ChannelPipelineFactory |
createPipelineFactory(org.jboss.netty.channel.group.ChannelGroup group) |
void |
doConfigure(org.apache.commons.configuration.HierarchicalConfiguration configuration) |
protected String |
getDefaultJMXName()
Return the default name of the the server in JMX if none is configured
via "jmxname" in the configuration
|
int |
getDefaultPort()
Return the default port which will get used for this server if non is
specify in the configuration
|
String |
getServiceType()
Return the service type of the server
|
void |
setImapDecoder(org.apache.james.imap.decode.ImapDecoder decoder) |
void |
setImapEncoder(org.apache.james.imap.encode.ImapEncoder encoder) |
void |
setImapProcessor(org.apache.james.imap.api.process.ImapProcessor processor) |
configure, configureBootstrap, configureHelloName, createBossExecutor, createExecutionHander, createWorkerExecutor, destroy, getBoundAddresses, getConnectionCountHandler, getCurrentConnections, getEnabledCipherSuites, getEncryption, getExecutionHandler, getFileSystem, getHandledConnections, getHelloName, getLogger, getMaximumConcurrentConnections, getSocketType, getStartTLSSupported, getThreadPoolJMXPath, init, isEnabled, isStarted, postDestroy, preInit, 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
getBoundAddresses, getCurrentConnections, getHandledConnections, getMaximumConcurrentConnections, getSocketType, getStartTLSSupported, getTimeout, isEnabled, isStarted, start, stop
public static final int DEFAULT_MAX_LINE_LENGTH
public static final int DEFAULT_IN_MEMORY_SIZE_LIMIT
public static final int DEFAULT_TIMEOUT
public static final int DEFAULT_LITERAL_SIZE_LIMIT
public void setImapDecoder(org.apache.james.imap.decode.ImapDecoder decoder)
public void setImapEncoder(org.apache.james.imap.encode.ImapEncoder encoder)
public void setImapProcessor(org.apache.james.imap.api.process.ImapProcessor processor)
public void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration configuration) throws org.apache.commons.configuration.ConfigurationException
doConfigure
in class AbstractConfigurableAsyncServer
org.apache.commons.configuration.ConfigurationException
public int getDefaultPort()
AbstractConfigurableAsyncServer
getDefaultPort
in class AbstractConfigurableAsyncServer
AbstractConfigurableAsyncServer.getDefaultPort()
public String getServiceType()
ServerMBean
getServiceType
in interface ServerMBean
ServerMBean.getServiceType()
protected org.jboss.netty.channel.ChannelPipelineFactory createPipelineFactory(org.jboss.netty.channel.group.ChannelGroup group)
createPipelineFactory
in class AbstractConfigurableAsyncServer
protected String getDefaultJMXName()
AbstractConfigurableAsyncServer
getDefaultJMXName
in class AbstractConfigurableAsyncServer
protected org.jboss.netty.channel.ChannelUpstreamHandler createCoreHandler()
createCoreHandler
in class AbstractConfigurableAsyncServer
protected org.jboss.netty.handler.codec.oneone.OneToOneEncoder createEncoder()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.