|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: NESTED | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.mail Class Provider
java.lang.Object javax.mail.Provider
public 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.
- 版本:
- 1.11, 07/05/04
- 作者:
- Max Spivak, Bill Shannon
嵌套类摘要 | |
---|---|
static class |
Provider.Type
This inner class defines the Provider type. |
构造器摘要 | |
---|---|
Provider(Provider.Type type,
String protocol,
String classname,
String vendor,
String version)
Create a new provider of the specified type for the specified protocol. |
方法摘要 | |
---|---|
String |
getClassName()
Returns name of the class that implements the protocol |
String |
getProtocol()
Returns the protocol supported by this Provider |
Provider.Type |
getType()
Returns the type of this Provider |
String |
getVendor()
Returns name of vendor associated with this implementation or null |
String |
getVersion()
Returns version of this implementation or null if no version |
String |
toString()
Overrides Object.toString() |
类方法继承 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
构造器详细信息 |
---|
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.
- 参数:
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)- 从以下版本开始:
- JavaMail 1.4
方法详细信息 |
---|
getType
public Provider.Type getType()
- Returns the type of this Provider
getProtocol
public String getProtocol()
- Returns the protocol supported by this Provider
getClassName
public String getClassName()
- Returns name of the class that implements the protocol
getVendor
public String getVendor()
- Returns name of vendor associated with this implementation or null
getVersion
public String getVersion()
- Returns version of this implementation or null if no version
toString
public String toString()
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: NESTED | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.