/*    */ public final WebServiceFeature getFeature(String id) {
   /* 61 */ if (this.features != null) {
     /* 62 */ for (WebServiceFeature f : this.features) {
       /* 63 */ if (f.getID().equals(id)) {
         /* 64 */ return f;
         /*    */ }
       /*    */ }
     /*    */ }
   /* 68 */ return null;
   /*    */ }
Ejemplo n.º 2
0
 // new in 2.2
 public ServiceDelegate createServiceDelegate(
     URL wsdlDocumentLocation,
     QName serviceName,
     @SuppressWarnings("rawtypes") Class serviceClass,
     WebServiceFeature... features) {
   Bus bus = BusFactory.getThreadDefaultBus();
   for (WebServiceFeature f : features) {
     if (!f.getClass().getName().startsWith("javax.xml.ws")) {
       throw new WebServiceException("Unknown feature error: " + f.getClass().getName());
     }
   }
   return new ServiceImpl(bus, wsdlDocumentLocation, serviceName, serviceClass, features);
 }