javax.mail
Class Provider

java.lang.Object
  |
  +--javax.mail.Provider

public class Provider
extends Object

The Provider is a class that describes a protocol implementation. The values come from the javamail.providers & javamail.default.providers resource files.


Inner Class Summary
static class Provider.Type
          This inner class defines the Provider type.
 
Constructor Summary
(package private) Provider(Provider.Type type, String protocol, String classname, String vendor, String version)
          Package-private constructor for the Provider class.
 
Method Summary
 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()
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Provider

Provider(Provider.Type type,
         String protocol,
         String classname,
         String vendor,
         String version)
Package-private constructor for the Provider class.
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

getType

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

getProtocol

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

getClassName

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

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