public abstract class SAAJMetaFactory extends Object
newInstance
SAAJ定义方法按照这个类的实例做实际对象的创建。
newInstance()
方法的实现(SOAPFactory和MessageFactory),存在于SAAJ 1.2已更新,也委托给saajmetafactory当SAAJ 1.2定义查找未能找到工厂实现类的名字。
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
表示协议
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.