Package org.apache.cxf.feature

Examples of org.apache.cxf.feature.Feature


    private boolean detectWSAddressingFeature(InterceptorProvider provider, Bus bus) {
        //detect on the bus level
        if (bus.getFeatures() != null) {
            Iterator<Feature> busFeatures = bus.getFeatures().iterator();
            while (busFeatures.hasNext()) {
                Feature busFeature = busFeatures.next();
                if (busFeature instanceof WSAddressingFeature) {
                    return true;
                }
            }
        }
View Full Code Here


    bus.getFeatures().add(logFeature);
  }
 
  private void removeMessageLogging(Bus bus) {
    Collection<Feature> features = bus.getFeatures();
    Feature logFeature = null;
    Interceptor inLogInterceptor = null;
    Interceptor outLogInterceptor = null;
    for (Feature feature: features) {
      if (feature instanceof LoggingFeature) {
        logFeature = feature;
View Full Code Here

            ServiceReference refs[] = context.getServiceReferences(Feature.class.getName(), null);
            if (refs == null) {
                return;
            }
            for (ServiceReference ref : refs) {
                Feature feature = (Feature)context.getService(ref);
                if (feature instanceof AbstractFeature) {
                    this.getFeatures().add((AbstractFeature)feature);
                } else {
                    this.getFeatures().add(new WrappedFeature(feature));
                }
View Full Code Here

            ServiceReference refs[] = context.getServiceReferences(Feature.class.getName(), null);
            if (refs == null) {
                return;
            }
            for (ServiceReference ref : refs) {
                Feature feature = (Feature)context.getService(ref);
                this.getFeatures().add(feature);
            }
        } catch (InvalidSyntaxException e) {
            //ignore
        }
View Full Code Here

        }
        return null;
    }

    private void addAddressingFeature(WSAddressingFeature a) {
        Feature f = getWSAddressingFeature();
        if (f == null) {
            features.add(a);
        }
    }
View Full Code Here

            features.add(a);
        }
    }

    private void removeAddressingFeature() {
        Feature f = getWSAddressingFeature();
        if (f != null) {
            features.remove(f);
        }
    }   
View Full Code Here

TOP

Related Classes of org.apache.cxf.feature.Feature

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.