javax.mail
Class Provider

java.lang.Object
  extended by javax.mail.Provider

public class Provider
extends Object

A description of a messaging implementation that can store or send messages.

Version:
1.4
Author:
Chris Burdess

Nested Class Summary
static class Provider.Type
          A provider type (STORE or TRANSPORT).
 
Constructor Summary
Provider(Provider.Type type, String protocol, String className, String vendor, String version)
          Creates a new provider of the given type and protocol.
 
Method Summary
 String getClassName()
          Returns the name of the class implementing the protocol.
 String getProtocol()
          Returns the protocol implemented by this provider.
 Provider.Type getType()
          Returns the provider type.
 String getVendor()
          Returns the name of the vendor associated with this implementation.
 String getVersion()
          Returns the version of this implementation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Provider

public Provider(Provider.Type type,
                String protocol,
                String className,
                String vendor,
                String version)
Creates a new provider of the given type and protocol.

Parameters:
type - the provider type
protocol - the protocol URL scheme
className - the name of the implementing class
vendor - the implementation vendor
version - the implementation version
Since:
JavaMail 1.4
Method Detail

getType

public Provider.Type getType()
Returns the provider type.


getProtocol

public String getProtocol()
Returns the protocol implemented by this provider.


getClassName

public String getClassName()
Returns the name of the class implementing the protocol.


getVendor

public String getVendor()
Returns the name of the vendor associated with this implementation.


getVersion

public String getVersion()
Returns the version of this implementation.


toString

public String toString()
Overrides:
toString in class Object


© Copyright 2003, 2004 The Free Software Foundation, All rights reserved