GmailProvider, GmailSSLProvider, IMAPProvider, IMAPSSLProvider, POP3Provider, POP3SSLProvider, SMTPProvider, SMTPSSLProviderpublic class Provider
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Provider.Type |
This inner class defines the Provider type.
|
| Constructor | Description |
|---|---|
Provider(Provider.Type type,
java.lang.String protocol,
java.lang.String classname,
java.lang.String vendor,
java.lang.String version) |
Create a new provider of the specified type for the specified
protocol.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getClassName() |
Returns the name of the class that implements the protocol.
|
java.lang.String |
getProtocol() |
Returns the protocol supported by this Provider.
|
Provider.Type |
getType() |
Returns the type of this Provider.
|
java.lang.String |
getVendor() |
Returns the name of the vendor associated with this implementation
or null.
|
java.lang.String |
getVersion() |
Returns the version of this implementation or null if no version.
|
java.lang.String |
toString() |
Overrides Object.toString()
|
public Provider(Provider.Type type, java.lang.String protocol, java.lang.String classname, java.lang.String vendor, java.lang.String version)
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)public Provider.Type getType()
public java.lang.String getProtocol()
public java.lang.String getClassName()
public java.lang.String getVendor()
public java.lang.String getVersion()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 Oracle. All rights reserved.