Package javax.mail
Class Provider
java.lang.Object
javax.mail.Provider
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This inner class defines the Provider type. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns name of the class that implements the protocolReturns the protocol supported by this ProvidergetType()
Returns the type of this ProviderReturns name of vendor associated with this implementation or nullReturns version of this implementation or null if no versiontoString()
Overrides Object.toString()
-
Constructor Details
-
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 Details
-
getType
Returns the type of this Provider -
getProtocol
Returns the protocol supported by this Provider -
getClassName
Returns name of the class that implements the protocol -
getVendor
Returns name of vendor associated with this implementation or null -
getVersion
Returns version of this implementation or null if no version -
toString
Overrides Object.toString()
-