javax.mail
Class Service
java.lang.Object
javax.mail.Service
- Direct Known Subclasses:
- Store, Transport
- public abstract class Service
- extends Object
- Version:
- $Revision: 1.3 $ $Date: 2004/03/10 10:00:27 $
debug
protected boolean debug
session
protected Session session
url
protected URLName url
Service
protected Service(Session session,
URLName url)
addConnectionListener
public void addConnectionListener(ConnectionListener listener)
close
public void close()
throws MessagingException
- Throws:
MessagingException
connect
public void connect()
throws MessagingException
- Throws:
MessagingException
connect
public void connect(String host,
int port,
String user,
String password)
throws MessagingException
- Throws:
MessagingException
connect
public void connect(String host,
String user,
String password)
throws MessagingException
- Throws:
MessagingException
finalize
protected void finalize()
throws Throwable
- Throws:
Throwable
getURLName
public URLName getURLName()
isConnected
public boolean isConnected()
notifyConnectionListeners
protected void notifyConnectionListeners(int type)
protocolConnect
protected boolean protocolConnect(String host,
int port,
String user,
String password)
throws MessagingException
- Throws:
MessagingException
queueEvent
protected void queueEvent(MailEvent event,
Vector listeners)
removeConnectionListener
public void removeConnectionListener(ConnectionListener listener)
setConnected
protected void setConnected(boolean connected)
setURLName
protected void setURLName(URLName url)
toString
public String toString()
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.