|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.Provider
public class 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 | |
---|---|
static class |
Provider.Type
This inner class defines the Provider type. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
java.lang.String |
getClassName()
Returns 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 name of vendor associated with this implementation or null |
java.lang.String |
getVersion()
Returns version of this implementation or null if no version |
java.lang.String |
toString()
Overrides Object.toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)Method Detail |
---|
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.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34