javax.mail

Class 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.
    Author:
    Max Spivak, Bill Shannon
    • 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)
        Since:
        JavaMail 1.4
    • 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

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/mail/Provider.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com, Provider (Java(TM) EE 7 Specification APIs)

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.