com.sun.xml.ws.api
Interface WSFeatureList

All Superinterfaces:
java.lang.Iterable<javax.xml.ws.WebServiceFeature>
All Known Implementing Classes:
WebServiceFeatureList

public interface WSFeatureList
extends java.lang.Iterable<javax.xml.ws.WebServiceFeature>

Read-only list of WebServiceFeatures.


Method Summary
<F extends javax.xml.ws.WebServiceFeature>
F
get(java.lang.Class<F> featureType)
          Gets a WebServiceFeature of the specific type.
 boolean isEnabled(java.lang.Class<? extends javax.xml.ws.WebServiceFeature> feature)
          Checks if a particular WebServiceFeature is enabled.
 void mergeFeatures(java.lang.Iterable<javax.xml.ws.WebServiceFeature> features, boolean reportConflicts)
          Merges the extra features that are not already set on binding.
 void mergeFeatures(javax.xml.ws.WebServiceFeature[] features, boolean reportConflicts)
          Merges the extra features that are not already set on binding.
 javax.xml.ws.WebServiceFeature[] toArray()
          Obtains all the features in the array.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

isEnabled

boolean isEnabled(@NotNull
                  java.lang.Class<? extends javax.xml.ws.WebServiceFeature> feature)
Checks if a particular WebServiceFeature is enabled.

Returns:
true if enabled.

get

@Nullable
<F extends javax.xml.ws.WebServiceFeature> F get(@NotNull
                                                          java.lang.Class<F> featureType)
Gets a WebServiceFeature of the specific type.

Parameters:
featureType - The type of the feature to retrieve.
Returns:
If the feature is present and enabled, return a non-null instance. Otherwise null.

toArray

@NotNull
javax.xml.ws.WebServiceFeature[] toArray()
Obtains all the features in the array.


mergeFeatures

void mergeFeatures(@NotNull
                   javax.xml.ws.WebServiceFeature[] features,
                   boolean reportConflicts)
Merges the extra features that are not already set on binding. i.e, if a feature is set already on binding through some other API the corresponding wsdlFeature is not set.

Parameters:
features - Web Service features that need to be merged with already configured features.
reportConflicts - If true, checks if the feature setting in WSDL (wsdl extension or policy configuration) conflicts with feature setting in Deployed Service and logs warning if there are any conflicts.

mergeFeatures

void mergeFeatures(@NotNull
                   java.lang.Iterable<javax.xml.ws.WebServiceFeature> features,
                   boolean reportConflicts)
Merges the extra features that are not already set on binding. i.e, if a feature is set already on binding through some other API the corresponding wsdlFeature is not set.

Parameters:
features - Web Service features that need to be merged with already configured features.
reportConflicts - If true, checks if the feature setting in WSDL (wsdl extension or policy configuration) conflicts with feature setting in Deployed Service and logs warning if there are any conflicts.


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.