|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.mail Class Provider
java.lang.Object javax.mail.Provider
public class Provider
- extends Object
Inner classes:
Provider.Type
Provider 是描述协议实现的类。这些值通常来自 javamail.providers 和 javamail.default.providers 资源文件。应用程序还可以创建和注册 Provider 对象,以动态添加对新提供者的支持。
version | 1.11, 07/05/04 |
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.
- Version:
- 1.11, 07/05/04
- Author:
- Max Spivak, Bill Shannon
Nested Class Summary | |
---|---|
static class |
Provider.Type
This inner class defines the Provider type. |
Constructor Summary | |
---|---|
Provider(Provider.Type type,
String protocol,
String classname,
String vendor,
String version)
Create a new provider of the specified type for the specified protocol. |
Method Summary | |
---|---|
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() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public
Provider(Provider.Type type, String protocol, String classname, String vendor, String version)
为指定协议创建指定类型的新提供者。指定类可实现该提供者。
type | Type.STORE 或 Type.TRANSPORT | |
protocol | 用于类型的有效协议 | |
classname | 实现此协议的类名称 | |
vendor | 标识供应商的可选字符串(可为 null) | |
version | 可选的实现版本字符串(可为 null) | |
since |
|
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 Detail |
---|
public Provider.Type
getType()
返回此 Provider 的类型。
英文文档:
getType
public Provider.Type getType()
- Returns the type of this Provider
public String
getProtocol()
返回此 Provider 支持的协议。
英文文档:
getProtocol
public String getProtocol()
- Returns the protocol supported by this Provider
public String
getClassName()
返回实现协议的类的名称。
英文文档:
getClassName
public String getClassName()
- Returns name of the class that implements the protocol
public String
getVendor()
返回与此实现关联的供应商的名称,或者返回 null。
英文文档:
getVendor
public String getVendor()
- Returns name of vendor associated with this implementation or null
public String
getVersion()
返回此实现的版本;如果没有任何版本,则返回 null。
英文文档:
getVersion
public String getVersion()
- Returns version of this implementation or null if no version
public String
toString()
重写 Object.toString()。
英文文档:
toString
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!