javax.mail
Class Service

java.lang.Object
  extended byjavax.mail.Service
Direct Known Subclasses:
Store, Transport

public abstract class Service
extends Object

Version:
$Revision: 1.3 $ $Date: 2004/03/10 10:00:27 $

Field Summary
protected  boolean debug
           
protected  Session session
           
protected  URLName url
           
 
Constructor Summary
protected Service(Session session, URLName url)
           
 
Method Summary
 void addConnectionListener(ConnectionListener listener)
           
 void close()
           
 void connect()
           
 void connect(String host, int port, String user, String password)
           
 void connect(String host, String user, String password)
           
protected  void finalize()
           
 URLName getURLName()
           
 boolean isConnected()
           
protected  void notifyConnectionListeners(int type)
           
protected  boolean protocolConnect(String host, int port, String user, String password)
           
protected  void queueEvent(MailEvent event, Vector listeners)
           
 void removeConnectionListener(ConnectionListener listener)
           
protected  void setConnected(boolean connected)
           
protected  void setURLName(URLName url)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

protected boolean debug

session

protected Session session

url

protected URLName url
Constructor Detail

Service

protected Service(Session session,
                  URLName url)
Method Detail

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.