public class

Provider

extends Object
java.lang.Object
   ↳ com.google.code.javax.mail.Provider

Class Overview

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.

Summary

Nested Classes
class Provider.Type This inner class defines the Provider type. 
Fields
private String className
private String protocol
private Provider.Type type
private String vendor
private String version
Public Constructors
Provider(Provider.Type type, String protocol, String classname, String vendor, String version)
Create a new provider of the specified type for the specified protocol.
Public Methods
String getClassName()
Returns name of the class that implements the protocol
String getProtocol()
Returns the protocol supported by this Provider
Provider.Type getType()
Returns the type of this Provider
String getVendor()
Returns name of vendor associated with this implementation or null
String getVersion()
Returns version of this implementation or null if no version
String toString()
Overrides Object.toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private String className

private String protocol

private Provider.Type type

private String vendor

private String version

Public Constructors

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)

Public Methods

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()