public abstract class SOAPConnectionFactory extends Object
SOAPConnection
对象的工厂。
这个类的实现是可选的。
如果SOAPConnectionFactory.newInstance()
抛出UnsupportedOperationException,那么该实现不支持SAAJ通信基础设施。
否则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
- 如果不支持newInstance。
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.