SOAPConnectionFactory (Java EE 5)

Java EE API


javax.xml.soap Class SOAPConnectionFactory

java.lang.Object
  extended by javax.xml.soap.SOAPConnectionFactory

public abstract class SOAPConnectionFactory
extends Object


创建 SOAPConnection 对象的工厂。此类的实现是可选的。如果 SOAPConnectionFactory.newInstance() 抛出 UnsupportedOperationException,则该实现不支持 SAAJ 通信基础设施。否则,可以通过在新创建的 SOAPConnectionFactory 对象上调用 createConnection() 来创建 SOAPConnection 对象。
英文文档:

A factory for creating SOAPConnection objects. Implementation of this class is optional. If SOAPConnectionFactory.newInstance() throws an UnsupportedOperationException then the implementation does not support the SAAJ communication infrastructure. Otherwise SOAPConnection objects can be created by calling createConnection() on the newly created SOAPConnectionFactory object.


Constructor Summary
 
Method Summary
abstract  SOAPConnection
static SOAPConnectionFactory
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public SOAPConnectionFactory()
英文文档:

SOAPConnectionFactory

public SOAPConnectionFactory()
Method Detail

public static SOAPConnectionFactory newInstance() throws SOAPException, UnsupportedOperationException
创建默认 SOAPConnectionFactory 对象的实例。
return 默认 SOAPConnectionFactory 对象的新实例
ThrowsSOAPException: 如果在创建 SOAPConnectionFactory 时出现问题
ThrowsUnsupportedOperationException: 如果不支持新实例。
英文文档:

newInstance

public static SOAPConnectionFactory newInstance()
                                         throws SOAPException,
                                                UnsupportedOperationException
Creates an instance of the default SOAPConnectionFactory object.

Returns:
a new instance of a default SOAPConnectionFactory object
Throws:
SOAPException - if there was an error creating the SOAPConnectionFactory
UnsupportedOperationException - if newInstance is not supported.

abstract public SOAPConnection createConnection() throws SOAPException
创建新的 SOAPConnection
return 新的 SOAPConnection 对象。
ThrowsSOAPException: 如果在创建 SOAPConnection 时出现异常。
英文文档:

createConnection

public abstract SOAPConnection createConnection()
                                         throws SOAPException
Create a new SOAPConnection.

Returns:
the new SOAPConnection object.
Throws:
SOAPException - if there was an exception creating the SOAPConnection object.


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!