public abstract class SAAJMetaFactory extends Object
newInstance定义的newInstance方法都适用于该类的实例,以便实际创建对象。
SAAJ 1.2中存在的newInstance()方法(在SOAPFactory和MessageFactory中)的实现已经被更新,当SAAJ 1.2定义的查找找不到Factory实现类名时,它们也被委派给SAAJMetaFactory。
SAAJMetaFactory是一个服务提供者界面。 这个班没有公开的方法。
| Modifier | Constructor and Description |
|---|---|
protected |
SAAJMetaFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract MessageFactory |
newMessageFactory(String protocol)
为给定的
String协议创建一个
MessageFactory对象。
|
protected abstract SOAPFactory |
newSOAPFactory(String protocol)
为给定的
String协议创建一个
SOAPFactory对象。
|
protected abstract MessageFactory newMessageFactory(String protocol) throws SOAPException
String协议创建一个
MessageFactory对象。
protocol - 表示协议的
String
SOAPException - 创建MessageFactory是否有错误
SOAPConstants.SOAP_1_1_PROTOCOL ,
SOAPConstants.SOAP_1_2_PROTOCOL ,
SOAPConstants.DYNAMIC_SOAP_PROTOCOL
protected abstract SOAPFactory newSOAPFactory(String protocol) throws SOAPException
String协议创建一个
SOAPFactory对象。
protocol - 一个
String协议的
String
SOAPException - 创建SOAPFactory是否有错误
SOAPConstants.SOAP_1_1_PROTOCOL ,
SOAPConstants.SOAP_1_2_PROTOCOL ,
SOAPConstants.DYNAMIC_SOAP_PROTOCOL
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.