Providerpublic 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. |
Fields Summary |
---|
private Type | type | private String | protocol | private String | className | private String | vendor | private String | version |
Constructors Summary |
---|
public 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.
this.type = type;
this.protocol = protocol;
this.className = classname;
this.vendor = vendor;
this.version = version;
|
Methods Summary |
---|
public java.lang.String | getClassName()Returns name of the class that implements the protocol
return className;
| public java.lang.String | getProtocol()Returns the protocol supported by this Provider
return protocol;
| public javax.mail.Provider$Type | getType()Returns the type of this Provider
return type;
| public java.lang.String | getVendor()Returns name of vendor associated with this implementation or null
return vendor;
| public java.lang.String | getVersion()Returns version of this implementation or null if no version
return version;
| public java.lang.String | toString()Overrides Object.toString()
String s = "javax.mail.Provider[" + type + "," +
protocol + "," + className;
if (vendor != null)
s += "," + vendor;
if (version != null)
s += "," + version;
s += "]";
return s;
|
|