This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.mail
class Provider

javax.mail.Provider

public class Provider
extends Object

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
static class

           This inner class defines the Provider type.
 
Constructor Summary
Provider(Provider.Type type, String protocol, String classname, String vendor, String version)

          Create a new provider of the specified type for the specified protocol.
 
Method Summary
 String

          Returns name of the class that implements the protocol
 String

          Returns the protocol supported by this Provider
 Provider.Type

          Returns the type of this Provider
 String

          Returns name of vendor associated with this implementation or null
 String

          Returns version of this implementation or null if no version
 String

          Overrides Object.toString()
 

Constructor Detail

Provider

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)
Method Detail

getClassName

public String getClassName()
Returns name of the class that implements the protocol


getProtocol

public String getProtocol()
Returns the protocol supported by this Provider


getType

public Provider.Type getType()
Returns the type of this Provider


getVendor

public String getVendor()
Returns name of vendor associated with this implementation or null


getVersion

public String getVersion()
Returns version of this implementation or null if no version


toString

public String toString()
Overrides Object.toString()

Overrides:
toString in class Object


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.