public abstract class SOAPConnectionFactory extends Object
SOAPConnection
。这个类的实现是可选的。如果
SOAPConnectionFactory.newInstance()
抛出UnsupportedOperationException然后实现不支持用于通信基础设施。否则
SOAPConnection
对象可以通过新创建的
SOAPConnectionFactory
createConnection()
创建对象调用。
Constructor and Description |
---|
SOAPConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
abstract SOAPConnection |
createConnection()
创建一个新的
SOAPConnection 。
|
static SOAPConnectionFactory |
newInstance()
创建一个实例的默认
SOAPConnectionFactory 对象。
|
public static SOAPConnectionFactory newInstance() throws SOAPException, UnsupportedOperationException
SOAPConnectionFactory
对象。
SOAPConnectionFactory
对象的新实例
SOAPException
如果创建
SOAPConnectionFactory
出错
UnsupportedOperationException
-如果一个实例是不支持的。
public abstract SOAPConnection createConnection() throws SOAPException
SOAPConnection
。
SOAPConnection
对象。
SOAPException
-如果有一个例外的
SOAPConnection
创建对象。
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.