public class MailService extends AbstractService implements java.util.Map
Modifier and Type | Class and Description |
---|---|
class |
MailService.MailAuthenticator |
static class |
MailService.SessionObjectFactory |
Modifier and Type | Field and Description |
---|---|
protected javax.naming.spi.ObjectFactory |
_objectFactory |
protected java.lang.String |
_password |
protected java.util.Properties |
_sessionProperties |
protected java.lang.String |
_user |
static java.lang.String |
DEFAULT_MAIL_JNDI |
_jndi, _name, _started
Constructor and Description |
---|
MailService() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set |
entrySet() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(java.lang.Object key) |
protected java.lang.String |
getPassword() |
java.lang.String |
getUser() |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Set |
keySet() |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
void |
putAll(java.util.Map t) |
java.lang.Object |
remove(java.lang.Object key) |
void |
setPassword(java.lang.String pwd) |
void |
setUser(java.lang.String user) |
int |
size() |
void |
start()
Create a Session and bind to JNDI
|
void |
stop()
Stop the LifeCycle.
|
java.util.Collection |
values() |
public static final java.lang.String DEFAULT_MAIL_JNDI
protected java.util.Properties _sessionProperties
protected java.lang.String _user
protected java.lang.String _password
protected javax.naming.spi.ObjectFactory _objectFactory
public void setUser(java.lang.String user)
public java.lang.String getUser()
public void setPassword(java.lang.String pwd)
protected java.lang.String getPassword()
public void clear()
clear
in interface java.util.Map
public int size()
size
in interface java.util.Map
public boolean isEmpty()
isEmpty
in interface java.util.Map
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
public void putAll(java.util.Map t)
putAll
in interface java.util.Map
public java.util.Set keySet()
keySet
in interface java.util.Map
public java.util.Collection values()
values
in interface java.util.Map
public java.util.Set entrySet()
entrySet
in interface java.util.Map
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Map
hashCode
in class java.lang.Object
public void start() throws java.lang.Exception
public void stop() throws java.lang.InterruptedException
Service
stop
in interface Service
stop
in interface LifeCycle
stop
in class AbstractService
java.lang.InterruptedException
- Stopping a lifecycle is rarely atomic
and may be interrupted by another thread. If this happens
InterruptedException is throw and the component will be in an
indeterminant state and should probably be discarded.Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.