Package javax.mail
Class Provider
- java.lang.Object
-
- javax.mail.Provider
-
public class Provider extends java.lang.ObjectA description of a messaging implementation that can store or send messages.- Version:
- 1.4
- Author:
- Chris Burdess
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProvider.TypeA provider type (STORE or TRANSPORT).
-
Constructor Summary
Constructors Constructor Description Provider(Provider.Type type, java.lang.String protocol, java.lang.String className, java.lang.String vendor, java.lang.String version)Creates a new provider of the given type and protocol.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClassName()Returns the name of the class implementing the protocol.java.lang.StringgetProtocol()Returns the protocol implemented by this provider.Provider.TypegetType()Returns the provider type.java.lang.StringgetVendor()Returns the name of the vendor associated with this implementation.java.lang.StringgetVersion()Returns the version of this implementation.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Provider
public Provider(Provider.Type type, java.lang.String protocol, java.lang.String className, java.lang.String vendor, java.lang.String version)
Creates a new provider of the given type and protocol.- Parameters:
type- the provider typeprotocol- the protocol URL schemeclassName- the name of the implementing classvendor- the implementation vendorversion- the implementation version- Since:
- JavaMail 1.4
-
-
Method Detail
-
getType
public Provider.Type getType()
Returns the provider type.
-
getProtocol
public java.lang.String getProtocol()
Returns the protocol implemented by this provider.
-
getClassName
public java.lang.String getClassName()
Returns the name of the class implementing the protocol.
-
getVendor
public java.lang.String getVendor()
Returns the name of the vendor associated with this implementation.
-
getVersion
public java.lang.String getVersion()
Returns the version of this implementation.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-