|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.mail.ProtocolGBean org.apache.geronimo.mail.IMAPStoreGBean
public class IMAPStoreGBean
A GBean that provides for the configuration of a JavaMail IMAP message store protocol.
IMAP store properties that are common to all IMAP stores are provided via member variables of this class. Values that are set in the individual member variables will override any of the corresponding values that have been set in the properties set.
MailGBean
Fields inherited from class org.apache.geronimo.mail.ProtocolGBean |
---|
GBEAN_ADD_OVERRIDES, GBEAN_AUTH, GBEAN_CONNECTION_TIMEOUT, GBEAN_FACTORY_CLASS, GBEAN_FACTORY_FALLBACK, GBEAN_FACTORY_PORT, GBEAN_FROM, GBEAN_HOST, GBEAN_LOCALADDRESS, GBEAN_LOCALHOST, GBEAN_LOCALPORT, GBEAN_OBJECTNAME, GBEAN_PORT, GBEAN_PROPERTIES, GBEAN_PROTOCOL, GBEAN_QUITWAIT, GBEAN_REALM, GBEAN_TIMEOUT, GBEAN_USER |
Constructor Summary | |
---|---|
IMAPStoreGBean(String objectName,
Properties properties,
String host,
String user,
Integer port,
Boolean partialFetch,
Integer fetchSize,
Integer connectionTimeout,
Integer timeout,
Integer statusCacheTimeout,
Integer appendBufferSize,
Integer connectionPoolSize,
Integer connectionPoolTimeout,
Boolean separateStoreConnection,
Boolean allowReadOnlySelect,
Boolean authLoginDisable,
Boolean authPlainDisable,
Boolean startTLSEnable,
String localaddress,
Integer localport,
Boolean saslEnable,
String saslMechanisms,
String saslAuthorizationId,
String socketFactoryClass,
Boolean socketFactoryFallback,
Integer socketFactoryPort)
Construct an instance of IMAPStoreGBean Values that are set in the individual member variables will override any of the corresponding values that have been set in the properties set. |
Method Summary | |
---|---|
void |
addOverrides(Properties props)
Add the overrides from the member variables to the properties file. |
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
Boolean |
getAllowReadOnlySelect()
Returns the flag to indicate whether SELECT commands are read-only. |
Integer |
getAppendBufferSize()
Returns the maximum size of a message to buffer in memory when appending to an IMAP folder. |
Boolean |
getAuthLoginDisable()
Returns the flag that prevents use of the non-standard AUTHENTICATE LOGIN command, instead using the plain LOGIN command. |
Boolean |
getAuthPlainDisable()
Returns the flag that prevents use of the AUTHENTICATE PLAIN command. |
Integer |
getConnectionPoolSize()
Returns the maximum number of available connections in the connection pool. |
Integer |
getConnectionPoolTimeout()
Returns the timeout value in milliseconds for connection pool connections. |
Integer |
getConnectionTimeout()
Returns the socket connection timeout value in milliseconds. |
Integer |
getFetchSize()
Returns the partial fetch size in bytes. |
static GBeanInfo |
getGBeanInfo()
|
String |
getLocaladdress()
Returns the local address (host name) to bind to when creating the IMAP socket. |
Integer |
getLocalport()
Returns the local port number to bind to when creating the IMAP socket. |
Boolean |
getPartialFetch()
Returns whether the IMAP partial-fetch capability should be used. |
Integer |
getPort()
Returns the IMAP server port to connect to, if the connect() method doesn't explicitly specify one. |
String |
getSaslAuthorizationId()
Returns the authorization ID to use in the SASL authentication. |
Boolean |
getSaslEnable()
Returns the flag that enables an attempt to use the javax.security.sasl package to choose an authentication mechanism for login. |
String |
getSaslMechanisms()
Returns a space or comma separated list of SASL mechanism names to try to use. |
Boolean |
getSeparateStoreConnection()
Returns the flag to indicate whether to use a dedicated store connection for store commands. |
String |
getSocketFactoryClass()
Returns the class that will be used to create IMAP sockets. |
Boolean |
getSocketFactoryFallback()
Returns whether java.net.Socket class will be created if the specified socket factory class cannot be created. |
Integer |
getSocketFactoryPort()
Returns the port to connect to when using the specified socket factory. |
Boolean |
getStartTLSEnable()
Returns the flag that enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands. |
Integer |
getStatusCacheTimeout()
Returns the timeout value in milliseconds for cache of STATUS command response. |
Integer |
getTimeout()
Returns the socket I/O timeout value in milliseconds. |
void |
setAllowReadOnlySelect(Boolean allowReadOnlySelect)
Sets the flag to indicate whether SELECT commands are read-only. |
void |
setAppendBufferSize(Integer appendBufferSize)
Sets the maximum size of a message to buffer in memory when appending to an IMAP folder. |
void |
setAuthLoginDisable(Boolean authLoginDisable)
Sets the flag that prevents use of the non-standard AUTHENTICATE LOGIN command, instead using the plain LOGIN command. |
void |
setAuthPlainDisable(Boolean authPlainDisable)
Sets the flag that prevents use of the AUTHENTICATE PLAIN command. |
void |
setConnectionPoolSize(Integer connectionPoolSize)
Sets the maximum number of available connections in the connection pool. |
void |
setConnectionPoolTimeout(Integer connectionPoolTimeout)
Sets the timeout value in milliseconds for connection pool connections Default is 45000 (45 seconds). |
void |
setConnectionTimeout(Integer connectionTimeout)
Sets the socket connection timeout value in milliseconds. |
void |
setFetchSize(Integer fetchSize)
Sets the partial fetch size in bytes Defaults to 16K. |
void |
setLocaladdress(String localaddress)
Sets the local address (host name) to bind to when creating the IMAP socket. |
void |
setLocalport(Integer localport)
Sets the local port number to bind to when creating the IMAP socket. |
void |
setPartialFetch(Boolean partialFetch)
Sets whether the IMAP partial-fetch capability should be used. |
void |
setPort(Integer port)
Sets the IMAP server port to connect to, if the connect() method doesn't explicitly specify one. |
void |
setSaslAuthorizationId(String saslAuthorizationId)
Sets the authorization ID to use in the SASL authentication. |
void |
setSaslEnable(Boolean saslEnable)
Sets the flag that enables an attempt to use the javax.security.sasl package to choose an authentication mechanism for login. |
void |
setSaslMechanisms(String saslMechanisms)
Sets a space or comma separated list of SASL mechanism names to try to use. |
void |
setSeparateStoreConnection(Boolean separateStoreConnection)
Sets the flag to indicate whether to use a dedicated store connection for store commands Flag to indicate whether to use a dedicated store connection for store commands. |
void |
setSocketFactoryClass(String socketFactoryClass)
Sets the class that will be used to create SMTP sockets. |
void |
setSocketFactoryFallback(Boolean socketFactoryFallback)
Sets whether java.net.Socket class will be created if the specified socket factory class cannot be created. |
void |
setSocketFactoryPort(Integer socketFactoryPort)
Sets the port to connect to when using the specified socket factory. |
void |
setStartTLSEnable(Boolean startTLSEnable)
Sets the flag that enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands. |
void |
setStatusCacheTimeout(Integer statusCacheTimeout)
Sets the timeout value in milliseconds for cache of STATUS command response Timeout value in milliseconds for cache of STATUS command response. |
void |
setTimeout(Integer timeout)
Sets the socket I/O timeout value in milliseconds. |
Methods inherited from class org.apache.geronimo.mail.ProtocolGBean |
---|
getHost, getObjectName, getProperties, getProtocol, getUser, setHost, setProperties, setUser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String IMAP_PORT
public static final String IMAP_CONNECTION_TIMEOUT
public static final String IMAP_TIMEOUT
public static final String IMAP_FACTORY_CLASS
public static final String IMAP_FACTORY_FALLBACK
public static final String IMAP_FACTORY_PORT
public static final String IMAP_LOCALHOST
public static final String IMAP_LOCALADDRESS
public static final String IMAP_LOCALPORT
public static final String IMAP_PARTIAL_FETCH
public static final String IMAP_FETCH_SIZE
public static final String IMAP_STATUS_TIMEOUT
public static final String IMAP_APPEND_SIZE
public static final String IMAP_POOL_SIZE
public static final String IMAP_POOL_TIMEOUT
public static final String IMAP_SEPARATE_STORE_CONNECTION
public static final String IMAP_READONLY_SELECT
public static final String IMAP_LOGIN_DISABLE
public static final String IMAP_PLAIN_DISABLE
public static final String IMAP_STARTTLS_ENABLE
public static final String IMAP_SASL_ENABLE
public static final String IMAP_SASL_MECHANISMS
public static final String IMAP_SASL_AUTHORIZATIONID
public static final String GBEAN_PARTIAL_FETCH
public static final String GBEAN_FETCH_SIZE
public static final String GBEAN_STATUS_TIMEOUT
public static final String GBEAN_APPEND_SIZE
public static final String GBEAN_POOL_SIZE
public static final String GBEAN_POOL_TIMEOUT
public static final String GBEAN_SEPARATE_STORE_CONNECTION
public static final String GBEAN_READONLY_SELECT
public static final String GBEAN_LOGIN_DISABLE
public static final String GBEAN_PLAIN_DISABLE
public static final String GBEAN_STARTTLS_ENABLE
public static final String GBEAN_SASL_ENABLE
public static final String GBEAN_SASL_MECHANISMS
public static final String GBEAN_SASL_AUTHORIZATIONID
public static final GBeanInfo GBEAN_INFO
Constructor Detail |
---|
public IMAPStoreGBean(String objectName, Properties properties, String host, String user, Integer port, Boolean partialFetch, Integer fetchSize, Integer connectionTimeout, Integer timeout, Integer statusCacheTimeout, Integer appendBufferSize, Integer connectionPoolSize, Integer connectionPoolTimeout, Boolean separateStoreConnection, Boolean allowReadOnlySelect, Boolean authLoginDisable, Boolean authPlainDisable, Boolean startTLSEnable, String localaddress, Integer localport, Boolean saslEnable, String saslMechanisms, String saslAuthorizationId, String socketFactoryClass, Boolean socketFactoryFallback, Integer socketFactoryPort)
objectName
- the object name of the protocolproperties
- the set of default properties for the protocolhost
- the host the protocol connects touser
- the default name for the protocolport
- the IMAP server portpartialFetch
- whether the IMAP partial-fetch capability should be usedfetchSize
- the partial fetch size in bytesconnectionTimeout
- the socket connection timeout value in millisecondstimeout
- the socket I/O timeout value in millisecondsstatusCacheTimeout
- the timeout value in milliseconds for cache of STATUS command responseappendBufferSize
- the maximum size of a message to buffer in memory when appending to an IMAP folderconnectionPoolSize
- the maximum number of available connections in the connection poolconnectionPoolTimeout
- the timeout value in milliseconds for connection pool connectionsseparateStoreConnection
- the flag to indicate whether to use a dedicated store connection for store commandsallowReadOnlySelect
- the flag to indicate whether SELECT commands are read-onlyauthLoginDisable
- the flag that prevents use of the non-standard AUTHENTICATE LOGIN command, instead using the plain LOGIN commandauthPlainDisable
- the flag that prevents use of the AUTHENTICATE PLAIN commandstartTLSEnable
- the flag that enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commandslocaladdress
- the local address (host name) to bind to when creating the IMAP socketlocalport
- the local port number to bind to when creating the IMAP socketsaslEnable
- the flag that enables an attempt to use the javax.security.sasl package to choose an authentication mechanism for loginsaslMechanisms
- a space or comma separated list of SASL mechanism names to try to usesaslAuthorizationId
- the authorization ID to use in the SASL authenticationsocketFactoryClass
- the class that will be used to create IMAP socketssocketFactoryFallback
- whether java.net.Socket class will be created if the specified
socket factory class cannot be createdsocketFactoryPort
- whether java.net.Socket class will be created if the specified
socket factory class cannot be createdMethod Detail |
---|
public Integer getPort()
public void setPort(Integer port)
port
- the IMAP server port to connect to, if the connect() method
doesn't explicitly specify onepublic Boolean getPartialFetch()
public void setPartialFetch(Boolean partialFetch)
partialFetch
- whether the IMAP partial-fetch capability should be usedpublic Integer getFetchSize()
public void setFetchSize(Integer fetchSize)
fetchSize
- the partial fetch size in bytespublic Integer getConnectionTimeout()
public void setConnectionTimeout(Integer connectionTimeout)
connectionTimeout
- the socket connection timeout value in milliseconds.public Integer getTimeout()
public void setTimeout(Integer timeout)
timeout
- the socket I/O timeout value in millisecondspublic Integer getStatusCacheTimeout()
public void setStatusCacheTimeout(Integer statusCacheTimeout)
statusCacheTimeout
- the timeout value in milliseconds for cache of STATUS command responsepublic Integer getAppendBufferSize()
public void setAppendBufferSize(Integer appendBufferSize)
appendBufferSize
- the maximum size of a message to buffer in memory when appending
to an IMAP folderpublic Integer getConnectionPoolSize()
public void setConnectionPoolSize(Integer connectionPoolSize)
connectionPoolSize
- the maximum number of available connections in the connection poolpublic Integer getConnectionPoolTimeout()
public void setConnectionPoolTimeout(Integer connectionPoolTimeout)
connectionPoolTimeout
- the timeout value in milliseconds for connection pool connectionspublic Boolean getSeparateStoreConnection()
public void setSeparateStoreConnection(Boolean separateStoreConnection)
separateStoreConnection
- the flag to indicate whether to use a dedicated store
connection for store commandspublic Boolean getAllowReadOnlySelect()
public void setAllowReadOnlySelect(Boolean allowReadOnlySelect)
allowReadOnlySelect
- the flag to indicate whether SELECT commands are read-onlypublic Boolean getAuthLoginDisable()
public void setAuthLoginDisable(Boolean authLoginDisable)
authLoginDisable
- the flag that prevents use of the non-standard AUTHENTICATE LOGIN
command, instead using the plain LOGIN commandpublic Boolean getAuthPlainDisable()
public void setAuthPlainDisable(Boolean authPlainDisable)
authPlainDisable
- the flag that prevents use of the AUTHENTICATE PLAIN commandpublic Boolean getStartTLSEnable()
public void setStartTLSEnable(Boolean startTLSEnable)
startTLSEnable
- the flag that enables the use of the STARTTLS command (if
supported by the server) to switch the connection to a TLS-protected
connection before issuing any login commandspublic String getLocaladdress()
public void setLocaladdress(String localaddress)
localaddress
- the local address (host name) to bind to when creating the IMAP socketpublic Integer getLocalport()
public void setLocalport(Integer localport)
localport
- the local port number to bind to when creating the IMAP socketpublic Boolean getSaslEnable()
public void setSaslEnable(Boolean saslEnable)
saslEnable
- the flag that enables an attempt to use the javax.security.sasl
package to choose an authentication mechanism for loginpublic String getSaslMechanisms()
public void setSaslMechanisms(String saslMechanisms)
saslMechanisms
- a space or comma separated list of SASL mechanism names to try to usepublic String getSaslAuthorizationId()
public void setSaslAuthorizationId(String saslAuthorizationId)
saslAuthorizationId
- the authorization ID to use in the SASL authenticationpublic String getSocketFactoryClass()
public void setSocketFactoryClass(String socketFactoryClass)
socketFactoryClass
- the class that will be used to create SMTP socketspublic Boolean getSocketFactoryFallback()
public void setSocketFactoryFallback(Boolean socketFactoryFallback)
socketFactoryFallback
- whether java.net.Socket class will be created if the specified
socket factory class cannot be createdpublic Integer getSocketFactoryPort()
public void setSocketFactoryPort(Integer socketFactoryPort)
socketFactoryPort
- the port to connect to when using the specified socket factorypublic void addOverrides(Properties props)
addOverrides
in class ProtocolGBean
public void doStart() throws Exception
GBeanLifecycle
doStart
in interface GBeanLifecycle
doStart
in class ProtocolGBean
Exception
- if the target failed to start; this will cause a transition to the failed statepublic void doStop() throws Exception
GBeanLifecycle
doStop
in interface GBeanLifecycle
doStop
in class ProtocolGBean
Exception
- if the target failed to stop; this will cause a transition to the failed statepublic void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
doFail
in class ProtocolGBean
public static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |