public final class WebServiceFeatureList extends AbstractMap<Class<? extends WebServiceFeature>,WebServiceFeature> implements WSFeatureList
WebServiceFeatures that has bunch of utility
methods pertaining to web service features.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
WebServiceFeatureList() |
WebServiceFeatureList(Class<?> endpointClass)
Creates a list by reading featuers from the annotation on a class.
|
WebServiceFeatureList(WebServiceFeature... features) |
WebServiceFeatureList(WebServiceFeatureList features) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(WebServiceFeature f)
Adds a feature to the list if it's not already added.
|
void |
addAll(Iterable<WebServiceFeature> list)
Adds features to the list if it's not already added.
|
boolean |
contains(Class<? extends WebServiceFeature> feature) |
Set<Map.Entry<Class<? extends WebServiceFeature>,WebServiceFeature>> |
entrySet() |
boolean |
equals(Object other) |
<F extends WebServiceFeature> |
get(Class<F> featureType)
Gets a
WebServiceFeature of the specific type. |
static WebServiceFeature |
getFeature(Annotation a)
Returns a corresponding feature for a feature annotation(i.e which has
WebServiceFeatureAnnotation meta annotation) |
static <F extends WebServiceFeature> |
getFeature(WebServiceFeature[] features,
Class<F> featureType) |
static SOAPVersion |
getSoapVersion(WSFeatureList features) |
boolean |
isEnabled(Class<? extends WebServiceFeature> feature)
Checks if a particular
WebServiceFeature is enabled. |
static boolean |
isFeatureEnabled(Class<? extends WebServiceFeature> type,
WebServiceFeature[] features) |
Iterator<WebServiceFeature> |
iterator() |
void |
mergeFeatures(Iterable<WebServiceFeature> features,
boolean reportConflicts)
Merges the extra features that are not already set on binding.
|
void |
mergeFeatures(WebServiceFeature[] features,
boolean reportConflicts)
Merges the extra features that are not already set on binding.
|
void |
mergeFeatures(WSDLPort wsdlPort,
boolean honorWsdlRequired,
boolean reportConflicts)
Extracts features from
AbstractFeaturedObjectImpl.getFeatures(). |
void |
parseAnnotations(Class<?> endpointClass) |
void |
parseAnnotations(Iterable<Annotation> annIt)
Adds the corresponding features to the list for feature annotations(i.e
which have
WebServiceFeatureAnnotation meta annotation) |
WebServiceFeature |
put(Class<? extends WebServiceFeature> key,
WebServiceFeature value) |
(package private) void |
setMTOMEnabled(boolean b)
Sets MTOM feature, overriding any existing feature.
|
void |
setParentFeaturedObject(WSDLFeaturedObject parent)
Set the parent features.
|
WebServiceFeature[] |
toArray()
Obtains all the features in the array.
|
static WebServiceFeature[] |
toFeatureArray(WSBinding binding) |
static WebServiceFeatureList |
toList(Iterable<WebServiceFeature> features) |
String |
toString() |
clear, clone, containsKey, containsValue, get, hashCode, isEmpty, keySet, putAll, remove, size, valuespublic WebServiceFeatureList()
public WebServiceFeatureList(@NotNull
WebServiceFeature... features)
public WebServiceFeatureList(WebServiceFeatureList features)
public WebServiceFeatureList(@NotNull
Class<?> endpointClass)
public static WebServiceFeatureList toList(Iterable<WebServiceFeature> features)
public void parseAnnotations(Iterable<Annotation> annIt)
WebServiceFeatureAnnotation meta annotation)annIt - collection of annotations(that can have non-feature annotations)public static WebServiceFeature getFeature(Annotation a)
WebServiceFeatureAnnotation meta annotation)public void parseAnnotations(Class<?> endpointClass)
endpointClass - web service impl classpublic Iterator<WebServiceFeature> iterator()
iterator in interface Iterable<WebServiceFeature>@NotNull public WebServiceFeature[] toArray()
WSFeatureListtoArray in interface WSFeatureListpublic boolean isEnabled(@NotNull
Class<? extends WebServiceFeature> feature)
WSFeatureListWebServiceFeature is enabled.isEnabled in interface WSFeatureListpublic boolean contains(@NotNull
Class<? extends WebServiceFeature> feature)
@Nullable public <F extends WebServiceFeature> F get(@NotNull Class<F> featureType)
WSFeatureListWebServiceFeature of the specific type.get in interface WSFeatureListfeatureType - The type of the feature to retrieve.public void add(@NotNull
WebServiceFeature f)
public void addAll(@NotNull
Iterable<WebServiceFeature> list)
void setMTOMEnabled(boolean b)
SOAPBinding.setMTOMEnabled.b - if MTOM will be enabledpublic boolean equals(Object other)
equals in interface Map<Class<? extends WebServiceFeature>,WebServiceFeature>equals in class AbstractMap<Class<? extends WebServiceFeature>,WebServiceFeature>public String toString()
toString in class AbstractMap<Class<? extends WebServiceFeature>,WebServiceFeature>public void mergeFeatures(@NotNull
Iterable<WebServiceFeature> features,
boolean reportConflicts)
mergeFeatures in interface WSFeatureListfeatures - 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.public void mergeFeatures(WebServiceFeature[] features, boolean reportConflicts)
WSFeatureListmergeFeatures in interface WSFeatureListfeatures - 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.public void mergeFeatures(@NotNull
WSDLPort wsdlPort,
boolean honorWsdlRequired,
boolean reportConflicts)
AbstractFeaturedObjectImpl.getFeatures(). Extra features
that are not already set on binding. i.e, if a feature is set already on
binding through someother API the coresponding wsdlFeature is not set.wsdlPort - WSDLPort modelhonorWsdlRequired - If this is true add WSDL Feature only if wsd:Required=true In
SEI case, it should be false In Provider case, it should be
truereportConflicts - If true, checks if the feature setting in WSDL (wsdl extension
or policy configuration) colflicts with feature setting in
Deployed Service and logs warning if there are any conflicts.public void setParentFeaturedObject(@NotNull
WSDLFeaturedObject parent)
@Nullable public static <F extends WebServiceFeature> F getFeature(@NotNull WebServiceFeature[] features, @NotNull Class<F> featureType)
public Set<Map.Entry<Class<? extends WebServiceFeature>,WebServiceFeature>> entrySet()
entrySet in interface Map<Class<? extends WebServiceFeature>,WebServiceFeature>entrySet in class AbstractMap<Class<? extends WebServiceFeature>,WebServiceFeature>public WebServiceFeature put(Class<? extends WebServiceFeature> key, WebServiceFeature value)
put in interface Map<Class<? extends WebServiceFeature>,WebServiceFeature>put in class AbstractMap<Class<? extends WebServiceFeature>,WebServiceFeature>public static SOAPVersion getSoapVersion(WSFeatureList features)
public static boolean isFeatureEnabled(Class<? extends WebServiceFeature> type, WebServiceFeature[] features)
public static WebServiceFeature[] toFeatureArray(WSBinding binding)
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.