Esempio n. 1
0
 public static BindingImpl create(@NotNull BindingID bindingId, WebServiceFeature[] features) {
   // Override the BindingID from the features
   for (WebServiceFeature feature : features) {
     if (feature instanceof BindingTypeFeature) {
       BindingTypeFeature f = (BindingTypeFeature) feature;
       bindingId = BindingID.parse(f.getBindingId());
     }
   }
   if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl(features);
   else return new SOAPBindingImpl(bindingId, features);
 }
Esempio n. 2
0
  @NotNull
  public final Codec createCodec() {

    // initialization from here should cover most of cases;
    // if not, it would be necessary to call
    //   BindingImpl.initializeJavaActivationHandlers()
    // explicitly by programmer
    initializeJavaActivationHandlers();

    return bindingId.createEncoder(this);
  }
Esempio n. 3
0
 /**
  * @deprecated Only meant to be used via {@link javax.xml.ws.handler.PortInfo}. Use {@link
  *     #bindingId}.
  */
 public String getBindingID() {
   return bindingId.toString();
 }
Esempio n. 4
0
 @Override
 public Endpoint createAndPublishEndpoint(String address, Object implementor) {
   Endpoint endpoint = new EndpointImpl(BindingID.parse(implementor.getClass()), implementor);
   endpoint.publish(address);
   return endpoint;
 }
Esempio n. 5
0
 @Override
 public Endpoint createEndpoint(String bindingId, Object implementor) {
   return new EndpointImpl(
       (bindingId != null) ? BindingID.parse(bindingId) : BindingID.parse(implementor.getClass()),
       implementor);
 }
Esempio n. 6
0
 public static BindingImpl create(@NotNull BindingID bindingId) {
   if (bindingId.equals(BindingID.XML_HTTP)) return new HTTPBindingImpl();
   else return new SOAPBindingImpl(bindingId);
 }
Esempio n. 7
0
 public final SOAPVersion getSOAPVersion() {
   return bindingId.getSOAPVersion();
 }