|
||||||||||
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.POP3StoreGBean
public class POP3StoreGBean
A GBean that provides for the configuration of a JavaMail POP3 message store protocol.
POP3 store properties that are common to all POP3 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
Field Summary | |
---|---|
static String |
GBEAN_APOP
|
static GBeanInfo |
GBEAN_INFO
|
static String |
GBEAN_MESSAGE_CLASS
|
static String |
GBEAN_RESET
|
static String |
POP3_APOP
|
static String |
POP3_CONNECTION_TIMEOUT
|
static String |
POP3_FACTORY_CLASS
|
static String |
POP3_FACTORY_FALLBACK
|
static String |
POP3_FACTORY_PORT
|
static String |
POP3_LOCALADDRESS
|
static String |
POP3_LOCALHOST
|
static String |
POP3_LOCALPORT
|
static String |
POP3_MESSAGE_CLASS
|
static String |
POP3_PORT
|
static String |
POP3_RESET
|
static String |
POP3_TIMEOUT
|
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 | |
---|---|
POP3StoreGBean(String objectName,
Properties properties,
String host,
String user,
Integer port,
Integer connectionTimeout,
Integer timeout,
Boolean rsetBeforeQuit,
String messageClass,
String localaddress,
Integer localport,
Boolean apopEnable,
String socketFactoryClass,
Boolean socketFactoryFallback,
Integer socketFactoryPort)
Construct an instance of POP3StoreGBean 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. |
Integer |
getConnectionTimeout()
Returns the socket connection timeout value in milliseconds. |
static GBeanInfo |
getGBeanInfo()
|
String |
getLocaladdress()
Returns the local address (host name) to bind to when creating the POP3 socket. |
Integer |
getLocalport()
Returns the local port number to bind to when creating the POP3 socket. |
String |
getMessageClass()
Returns the class name of a subclass of com.sun.mail.pop3.POP3Message. |
Integer |
getPort()
Returns the POP3 server port to connect to, if the connect() method doesn't explicitly specify one. |
Boolean |
getRsetBeforeQuit()
Returns whether an attempt will be made send a POP3 RSET command when closing the folder, before sending the QUIT command. |
String |
getSocketFactoryClass()
Returns the class that will be used to create POP3 sockets. |
Integer |
getSocketFactoryPort()
Returns the port to connect to when using the specified socket factory. |
Integer |
getTimeout()
Returns the socket I/O timeout value in milliseconds. |
Boolean |
isApopEnable()
Returns whether to use APOP instead of USER/PASS to login to the POP3 server, if the POP3 server supports APOP. |
Boolean |
isSocketFactoryFallback()
Returns whether java.net.Socket class will be created if the specified socket factory class cannot be created. |
void |
setApopEnable(Boolean apopEnable)
Sets whether to use APOP instead of USER/PASS to login to the POP3 server, if the POP3 server supports APOP. |
void |
setConnectionTimeout(Integer connectionTimeout)
Sets the socket connection timeout value in milliseconds. |
void |
setLocaladdress(String localaddress)
Sets the local address (host name) to bind to when creating the POP3 socket. |
void |
setLocalport(Integer localport)
Sets the local port number to bind to when creating the POP3 socket. |
void |
setMessageClass(String messageClass)
Sets the class name of a subclass of com.sun.mail.pop3.POP3Message. |
void |
setPort(Integer port)
Sets the POP3 server port to connect to, if the connect() method doesn't explicitly specify one. |
void |
setRsetBeforeQuit(Boolean rsetBeforeQuit)
Sets whether an attempt will be made send a POP3 RSET command when closing the folder, before sending the QUIT command. |
void |
setSocketFactoryClass(String socketFactoryClass)
Sets the class that will be used to create POP3 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 |
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 POP3_PORT
public static final String POP3_CONNECTION_TIMEOUT
public static final String POP3_TIMEOUT
public static final String POP3_FACTORY_CLASS
public static final String POP3_FACTORY_FALLBACK
public static final String POP3_FACTORY_PORT
public static final String POP3_LOCALHOST
public static final String POP3_LOCALADDRESS
public static final String POP3_LOCALPORT
public static final String POP3_RESET
public static final String POP3_MESSAGE_CLASS
public static final String POP3_APOP
public static final String GBEAN_RESET
public static final String GBEAN_APOP
public static final String GBEAN_MESSAGE_CLASS
public static final GBeanInfo GBEAN_INFO
Constructor Detail |
---|
public POP3StoreGBean(String objectName, Properties properties, String host, String user, Integer port, Integer connectionTimeout, Integer timeout, Boolean rsetBeforeQuit, String messageClass, String localaddress, Integer localport, Boolean apopEnable, 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 POP3 server portconnectionTimeout
- the socket connection timeout value in millisecondstimeout
- the socket I/O timeout value in millisecondsrsetBeforeQuit
- whether an attempt will be made send a POP3 RSET command when closing
the folder, before sending the QUIT commandmessageClass
- the class name of a subclass of com.sun.mail.pop3.POP3Messagelocaladdress
- the local address (host name) to bind to when creating the POP3 socketlocalport
- the local port number to bind to when creating the POP3 socketapopEnable
- whether to use APOP instead of USER/PASS to login to the POP3 server,
if the POP3 server supports APOPsocketFactoryClass
- the class that will be used to create POP3 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 POP3 server port to connect to, if the connect() method
doesn't explicitly specify onepublic 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 Boolean getRsetBeforeQuit()
public void setRsetBeforeQuit(Boolean rsetBeforeQuit)
rsetBeforeQuit
- whether an attempt will be made send a POP3 RSET command when
closing the folder, before sending the QUIT commandpublic String getMessageClass()
public void setMessageClass(String messageClass)
messageClass
- the class name of a subclass of com.sun.mail.pop3.POP3Message.public String getLocaladdress()
public void setLocaladdress(String localaddress)
localaddress
- the local address (host name) to bind to when creating the POP3 socketpublic Integer getLocalport()
public void setLocalport(Integer localport)
localport
- the local port number to bind to when creating the POP3 socketpublic Boolean isApopEnable()
public void setApopEnable(Boolean apopEnable)
apopEnable
- whether to use APOP instead of USER/PASS to login to the POP3
server, if the POP3 server supports APOPpublic String getSocketFactoryClass()
public void setSocketFactoryClass(String socketFactoryClass)
socketFactoryClass
- the class that will be used to create POP3 socketspublic Boolean isSocketFactoryFallback()
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 |