- java.lang.Object
-
- 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.- Author:
- Max Spivak, Bill Shannon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
Provider.Type
This inner class defines the Provider type.
-
Constructor Summary
Constructors Constructor and Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description String
getClassName()
Returns name of the class that implements the protocolString
getProtocol()
Returns the protocol supported by this ProviderProvider.Type
getType()
Returns the type of this ProviderString
getVendor()
Returns name of vendor associated with this implementation or nullString
getVersion()
Returns version of this implementation or null if no versionString
toString()
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.TRANSPORTprotocol
- valid protocol for the typeclassname
- class name that implements this protocolvendor
- 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
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/mail/Provider.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.