org.mortbay.jetty.plus

Class MailService

Implemented Interfaces:
Map, LifeCycle, Service

public class MailService
extends AbstractService
implements Map

MailService.java Created: Fri May 30 09:25:47 2003
Version:
1.0
Author:
Jan Bartel

Nested Class Summary

class
MailService.MailAuthenticator
static class
MailService.SessionObjectFactory

Field Summary

static String
DEFAULT_MAIL_JNDI
protected ObjectFactory
_objectFactory
protected String
_password
protected Properties
_sessionProperties
protected String
_user

Fields inherited from class org.mortbay.jetty.plus.AbstractService

_jndi, _name, _started

Constructor Summary

MailService()

Method Summary

void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set
entrySet()
boolean
equals(Object o)
Object
get(Object key)
protected String
getPassword()
String
getUser()
int
hashCode()
boolean
isEmpty()
Set
keySet()
Object
put(Object key, Object value)
void
putAll(Map t)
Object
remove(Object key)
void
setPassword(String pwd)
void
setUser(String user)
int
size()
void
start()
Create a Session and bind to JNDI
void
stop()
Stop the LifeCycle.
Collection
values()

Methods inherited from class org.mortbay.jetty.plus.AbstractService

getJNDI, getName, isStarted, setJNDI, setName, start, stop

Field Details

DEFAULT_MAIL_JNDI

public static final String DEFAULT_MAIL_JNDI

_objectFactory

protected ObjectFactory _objectFactory

_password

protected String _password

_sessionProperties

protected Properties _sessionProperties

_user

protected String _user

Constructor Details

MailService

public MailService()

Method Details

clear

public void clear()

containsKey

public boolean containsKey(Object key)

containsValue

public boolean containsValue(Object value)

entrySet

public Set entrySet()

equals

public boolean equals(Object o)

get

public Object get(Object key)

getPassword

protected String getPassword()

getUser

public String getUser()

hashCode

public int hashCode()

isEmpty

public boolean isEmpty()

keySet

public Set keySet()

put

public Object put(Object key,
                  Object value)

putAll

public void putAll(Map t)

remove

public Object remove(Object key)

setPassword

public void setPassword(String pwd)

setUser

public void setUser(String user)

size

public int size()

start

public void start()
            throws Exception
Create a Session and bind to JNDI
Specified by:
start in interface Service
start in interface LifeCycle
Overrides:
start in interface AbstractService

stop

public void stop()
            throws InterruptedException
Stop the LifeCycle. The LifeCycle may wait for current activities to complete normally, but it can be interrupted.
Specified by:
stop in interface Service
stop in interface LifeCycle
Overrides:
stop in interface AbstractService

values

public Collection values()

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.