Package com.sun.xml.ws.api
Interface WSFeatureList
-
- All Superinterfaces:
Iterable<jakarta.xml.ws.WebServiceFeature>
- All Known Implementing Classes:
WebServiceFeatureList
public interface WSFeatureList extends Iterable<jakarta.xml.ws.WebServiceFeature>
Read-only list ofWebServiceFeatures.- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <F extends jakarta.xml.ws.WebServiceFeature>
Fget(Class<F> featureType)Gets aWebServiceFeatureof the specific type.booleanisEnabled(Class<? extends jakarta.xml.ws.WebServiceFeature> feature)Checks if a particularWebServiceFeatureis enabled.voidmergeFeatures(jakarta.xml.ws.WebServiceFeature[] features, boolean reportConflicts)Merges the extra features that are not already set on binding.voidmergeFeatures(Iterable<jakarta.xml.ws.WebServiceFeature> features, boolean reportConflicts)Merges the extra features that are not already set on binding.jakarta.xml.ws.WebServiceFeature[]toArray()Obtains all the features in the array.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
isEnabled
boolean isEnabled(@NotNull Class<? extends jakarta.xml.ws.WebServiceFeature> feature)
Checks if a particularWebServiceFeatureis enabled.- Returns:
- true if enabled.
-
get
@Nullable <F extends jakarta.xml.ws.WebServiceFeature> F get(@NotNull Class<F> featureType)
Gets aWebServiceFeatureof 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 jakarta.xml.ws.WebServiceFeature[] toArray()
Obtains all the features in the array.
-
mergeFeatures
void mergeFeatures(@NotNull jakarta.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 Iterable<jakarta.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.
-
-