1 6 7 28 package javax.xml.soap; 29 30 38 public abstract class SOAPConnectionFactory { 39 43 static private final String DEFAULT_SOAP_CONNECTION_FACTORY 44 = "com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnectionFactory"; 45 46 49 static private final String SF_PROPERTY 50 = "javax.xml.soap.SOAPConnectionFactory"; 51 52 65 public static SOAPConnectionFactory newInstance() 66 throws SOAPException , UnsupportedOperationException 67 { 68 try { 69 return (SOAPConnectionFactory ) 70 FactoryFinder.find(SF_PROPERTY, 71 DEFAULT_SOAP_CONNECTION_FACTORY); 72 } catch (Exception ex) { 73 throw new SOAPException ("Unable to create SOAP connection factory: " 74 +ex.getMessage()); 75 } 76 } 77 78 86 public abstract SOAPConnection createConnection() 87 throws SOAPException ; 88 } 89 90 | Popular Tags |