JavaTM 2 Platform
Standard Ed. 6

javax.xml.soap
类 SAAJMetaFactory

java.lang.Object
  继承者 javax.xml.soap.SAAJMetaFactory

public abstract class SAAJMetaFactory
extends Object

SAAJ API 中定义的工厂实现类的访问点。SAAJ 1.3 中的工厂上定义的所有 newInstance 方法都要此类实例来创建实际对象。当 SAAJ 1.2 定义的查询无法定位 Factory 实现类名称时,存在于 SAAJ 1.2 中的 newInstance() 方法(SOAPFactory 和 MessageFactory 中)的实现被更新为(并委派给)SAAJMetaFactory。

SAAJMetaFactory 是一个服务提供者接口。在此类上没有 public 方法。

从以下版本开始:
SAAJ 1.3

构造方法摘要
protected SAAJMetaFactory()
           
 
方法摘要
protected abstract  MessageFactory newMessageFactory(String protocol)
          创建给定 String 协议的 MessageFactory 对象。
protected abstract  SOAPFactory newSOAPFactory(String protocol)
          创建给定 String 协议的 SOAPFactory 对象。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

SAAJMetaFactory

protected SAAJMetaFactory()
方法详细信息

newMessageFactory

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

newSOAPFactory

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

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only