コード例 #1
0
  /**
   * Creates {@link BindingImpl} for this {@link PortInfo}.
   *
   * @param webServiceFeatures User-specified features.
   * @param portInterface Null if this is for dispatch. Otherwise the interface the proxy is going
   *     to implement
   */
  public BindingImpl createBinding(WebServiceFeature[] webServiceFeatures, Class<?> portInterface) {
    WebServiceFeatureList r = new WebServiceFeatureList(webServiceFeatures);
    if (portModel != null)
      // merge features from WSDL
      r.mergeFeatures(portModel, portInterface == null /*if dispatch, true*/, false);

    // merge features from interceptor
    for (WebServiceFeature wsf : owner.serviceInterceptor.preCreateBinding(this, portInterface, r))
      r.add(wsf);

    BindingImpl bindingImpl = BindingImpl.create(bindingId, r.toArray());
    owner.getHandlerConfigurator().configureHandlers(this, bindingImpl);

    return bindingImpl;
  }
コード例 #2
0
 /**
  * Returns a corresponding feature for a feature annotation(i.e which has {@link
  * javax.xml.ws.spi.WebServiceFeatureAnnotation} meta annotation)
  *
  * @param ann any annotation, not required to be a feature annotation
  * @return corresponding feature for the annotation null, if the annotation is not a feature
  *     annotation
  */
 public static WebServiceFeature getWebServiceFeature(Annotation ann) {
   return WebServiceFeatureList.getFeature(ann);
 }
コード例 #3
0
 /*    */ public static WSFeatureList getWSFeatureList(Iterable<Annotation> ann) /*    */ {
   /* 49 */ WebServiceFeatureList list = new WebServiceFeatureList();
   /* 50 */ list.parseAnnotations(ann);
   /* 51 */ return list;
   /*    */ }
コード例 #4
0
 /**
  * Returns a feature list for feature annotations(i.e which have {@link
  * javax.xml.ws.spi.WebServiceFeatureAnnotation} meta annotation)
  *
  * @param ann list of annotations(that can also have non-feature annotations)
  * @return non-null feature list object
  */
 public static WSFeatureList getWSFeatureList(Iterable<Annotation> ann) {
   WebServiceFeatureList list = new WebServiceFeatureList();
   list.parseAnnotations(ann);
   return list;
 }
コード例 #5
0
 /*    */ public static WebServiceFeature getWebServiceFeature(Annotation ann) /*    */ {
   /* 63 */ return WebServiceFeatureList.getFeature(ann);
   /*    */ }