Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

alt.javax.mail
Class ServiceImpl  view ServiceImpl download ServiceImpl.java

java.lang.Object
  extended byalt.javax.mail.ServiceImpl
All Implemented Interfaces:
Service
Direct Known Subclasses:
TransportImpl

public class ServiceImpl
extends java.lang.Object
implements Service


Field Summary
private  javax.mail.Service service
           
 
Constructor Summary
ServiceImpl(javax.mail.Service service)
           
 
Method Summary
 void addConnectionListener(javax.mail.event.ConnectionListener connectionListener)
           
 void close()
           
 void connect()
           
 void connect(java.lang.String host, int port, java.lang.String user, java.lang.String password)
           
 void connect(java.lang.String host, java.lang.String user, java.lang.String password)
           
 javax.mail.URLName getURLName()
           
 boolean isConnected()
           
 void removeConnectionListener(javax.mail.event.ConnectionListener connectionListener)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

service

private final javax.mail.Service service
Constructor Detail

ServiceImpl

public ServiceImpl(javax.mail.Service service)
Method Detail

connect

public void connect()
             throws javax.mail.MessagingException
Specified by:
connect in interface Service

connect

public void connect(java.lang.String host,
                    java.lang.String user,
                    java.lang.String password)
             throws javax.mail.MessagingException
Specified by:
connect in interface Service

connect

public void connect(java.lang.String host,
                    int port,
                    java.lang.String user,
                    java.lang.String password)
             throws javax.mail.MessagingException
Specified by:
connect in interface Service

isConnected

public boolean isConnected()
Specified by:
isConnected in interface Service

close

public void close()
           throws javax.mail.MessagingException
Specified by:
close in interface Service

getURLName

public javax.mail.URLName getURLName()
Specified by:
getURLName in interface Service

addConnectionListener

public void addConnectionListener(javax.mail.event.ConnectionListener connectionListener)
Specified by:
addConnectionListener in interface Service

removeConnectionListener

public void removeConnectionListener(javax.mail.event.ConnectionListener connectionListener)
Specified by:
removeConnectionListener in interface Service

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).

Specified by:
toString in interface Service