|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.mail.ProtocolGBean
public class ProtocolGBean
A generic GBean that provides for the configuration of a JavaMail protocol.
Values that are set in the individual member variables will override any of the corresponding values that have been set in the properties set.
Field Summary | |
---|---|
static String |
GBEAN_ADD_OVERRIDES
|
static String |
GBEAN_AUTH
|
static String |
GBEAN_CONNECTION_TIMEOUT
|
static String |
GBEAN_FACTORY_CLASS
|
static String |
GBEAN_FACTORY_FALLBACK
|
static String |
GBEAN_FACTORY_PORT
|
static String |
GBEAN_FROM
|
static String |
GBEAN_HOST
|
static GBeanInfo |
GBEAN_INFO
|
static String |
GBEAN_LOCALADDRESS
|
static String |
GBEAN_LOCALHOST
|
static String |
GBEAN_LOCALPORT
|
static String |
GBEAN_OBJECTNAME
|
static String |
GBEAN_PORT
|
static String |
GBEAN_PROPERTIES
|
static String |
GBEAN_PROTOCOL
|
static String |
GBEAN_QUITWAIT
|
static String |
GBEAN_REALM
|
static String |
GBEAN_TIMEOUT
|
static String |
GBEAN_USER
|
Constructor Summary | |
---|---|
ProtocolGBean()
Construct an instance of ProtocolGBean |
|
ProtocolGBean(String objectName,
String protocol,
Properties properties,
String host,
String user)
Construct an instance of ProtocolGBean 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. |
static GBeanInfo |
getGBeanInfo()
|
String |
getHost()
Returns the host the protocol connects to. |
String |
getObjectName()
Returns the object name of this protocol GBean |
Properties |
getProperties()
Returns the set of default properties for the protocol. |
String |
getProtocol()
Returns the name of the protocol |
String |
getUser()
Returns the default user name for the protocol. |
void |
setHost(String host)
Set the host the protocol connects to. |
void |
setProperties(Properties properties)
Sets the set of default properties for the protocol. |
void |
setUser(String user)
Sets the default user name for the protocol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String GBEAN_OBJECTNAME
public static final String GBEAN_PROTOCOL
public static final String GBEAN_PROPERTIES
public static final String GBEAN_HOST
public static final String GBEAN_USER
public static final String GBEAN_ADD_OVERRIDES
public static final String GBEAN_PORT
public static final String GBEAN_CONNECTION_TIMEOUT
public static final String GBEAN_TIMEOUT
public static final String GBEAN_FROM
public static final String GBEAN_AUTH
public static final String GBEAN_REALM
public static final String GBEAN_QUITWAIT
public static final String GBEAN_FACTORY_CLASS
public static final String GBEAN_FACTORY_FALLBACK
public static final String GBEAN_FACTORY_PORT
public static final String GBEAN_LOCALHOST
public static final String GBEAN_LOCALADDRESS
public static final String GBEAN_LOCALPORT
public static final GBeanInfo GBEAN_INFO
Constructor Detail |
---|
public ProtocolGBean()
public ProtocolGBean(String objectName, String protocol, Properties properties, String host, String user)
objectName
- the object name of the protocolprotocol
- the name of the protocolproperties
- the set of default properties for the protocolhost
- the host the protocol connects touser
- the default name for the protocolMethod Detail |
---|
public String getObjectName()
public Properties getProperties()
public void setProperties(Properties properties)
properties
- set of default properties for the protocolpublic String getProtocol()
public String getHost()
public void setHost(String host)
host
- the host the protocol connects topublic String getUser()
public void setUser(String user)
user
- the default user name for the protocolpublic void addOverrides(Properties props)
public void doStart() throws Exception
GBeanLifecycle
doStart
in interface GBeanLifecycle
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
Exception
- if the target failed to stop; this will cause a transition to the failed statepublic void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
public static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |