JavaTM 2 Platform
Standard Ed. 6

javax.xml.soap
類別 SOAPConnectionFactory

java.lang.Object
  繼承者 javax.xml.soap.SOAPConnectionFactory

public abstract class SOAPConnectionFactory
extends Object

創建 SOAPConnection 物件的處理器。此類別的實作是可選的。如果 SOAPConnectionFactory.newInstance() 拋出 UnsupportedOperationException,則該實作不支持 SAAJ 通信基礎設施。否則,可以通過在新創建的 SOAPConnectionFactory 物件上調用 createConnection() 來創建 SOAPConnection 物件。


建構子摘要
SOAPConnectionFactory()
           
 
方法摘要
abstract  SOAPConnection createConnection()
          創建新的 SOAPConnection
static SOAPConnectionFactory newInstance()
          創建預設 SOAPConnectionFactory 物件的實例。
 
從類別 java.lang.Object 繼承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

建構子詳細資訊

SOAPConnectionFactory

public SOAPConnectionFactory()
方法詳細資訊

newInstance

public static SOAPConnectionFactory newInstance()
                                         throws SOAPException,
                                                UnsupportedOperationException
創建預設 SOAPConnectionFactory 物件的實例。

返回:
預設 SOAPConnectionFactory 物件的新實例
拋出:
SOAPException - 如果在創建 SOAPConnectionFactory 時出現問題
UnsupportedOperationException - 如果不支持新實例。

createConnection

public abstract SOAPConnection createConnection()
                                         throws SOAPException
創建新的 SOAPConnection

返回:
新的 SOAPConnection 物件。
拋出:
SOAPException - 如果在創建 SOAPConnection 時出現異常。

JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

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