org.mortbay.jetty.plus
Class MailService
java.lang.Object
org.mortbay.jetty.plus.AbstractService
org.mortbay.jetty.plus.MailService
- All Implemented Interfaces:
- LifeCycle, java.util.Map, Service
- public class MailService
- extends AbstractService
- implements java.util.Map
MailService.java
Created: Fri May 30 09:25:47 2003
- Version:
- 1.0
- Author:
- Jan Bartel
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MAIL_JNDI
public static final java.lang.String DEFAULT_MAIL_JNDI
- See Also:
- Constant Field Values
_sessionProperties
protected java.util.Properties _sessionProperties
_user
protected java.lang.String _user
_password
protected java.lang.String _password
_objectFactory
protected javax.naming.spi.ObjectFactory _objectFactory
MailService
public MailService()
setUser
public void setUser(java.lang.String user)
getUser
public java.lang.String getUser()
setPassword
public void setPassword(java.lang.String pwd)
getPassword
protected java.lang.String getPassword()
clear
public void clear()
- Specified by:
clear in interface java.util.Map
size
public int size()
- Specified by:
size in interface java.util.Map
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Map
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey in interface java.util.Map
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue in interface java.util.Map
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get in interface java.util.Map
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Specified by:
put in interface java.util.Map
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove in interface java.util.Map
putAll
public void putAll(java.util.Map t)
- Specified by:
putAll in interface java.util.Map
keySet
public java.util.Set keySet()
- Specified by:
keySet in interface java.util.Map
values
public java.util.Collection values()
- Specified by:
values in interface java.util.Map
entrySet
public java.util.Set entrySet()
- Specified by:
entrySet in interface java.util.Map
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals in interface java.util.Map
hashCode
public int hashCode()
- Specified by:
hashCode in interface java.util.Map
start
public void start()
throws java.lang.Exception
- Create a Session and bind to JNDI
- Specified by:
start in interface Service- Overrides:
start in class AbstractService
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.InterruptedException
- Description copied from interface:
Service
- Stop the LifeCycle.
The LifeCycle may wait for current activities to complete
normally, but it can be interrupted.
- Specified by:
stop in interface Service- Overrides:
stop in class AbstractService
- Throws:
java.lang.InterruptedException
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.