Save This Page
Home » glassfish-v2ur2-b04-src » javax » mail » [javadoc | source]
javax.mail
public class: Provider [javadoc | source]
java.lang.Object
   javax.mail.Provider
The Provider is a class that describes a protocol implementation. The values typically come from the javamail.providers and javamail.default.providers resource files. An application may also create and register a Provider object to dynamically add support for a new provider.
Nested Class Summary:
public static class  Provider.Type  This inner class defines the Provider type. Currently, STORE and TRANSPORT are the only two provider types supported. 
Constructor:
 public Provider(Provider.Type type,
    String protocol,
    String classname,
    String vendor,
    String version) 
    Create a new provider of the specified type for the specified protocol. The specified class implements the provider.
    Parameters:
    type - Type.STORE or Type.TRANSPORT
    protocol - valid protocol for the type
    classname - class name that implements this protocol
    vendor - optional string identifying the vendor (may be null)
    version - optional implementation version string (may be null)
    since: JavaMail - 1.4
Method from javax.mail.Provider Summary:
getClassName,   getProtocol,   getType,   getVendor,   getVersion,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.mail.Provider Detail:
 public String getClassName() 
    Returns name of the class that implements the protocol
 public String getProtocol() 
    Returns the protocol supported by this Provider
 public Provider.Type getType() 
    Returns the type of this Provider
 public String getVendor() 
    Returns name of vendor associated with this implementation or null
 public String getVersion() 
    Returns version of this implementation or null if no version
 public String toString() 
    Overrides Object.toString()