|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<Class<? extends WebServiceFeature>,WebServiceFeature>
com.sun.xml.ws.binding.WebServiceFeatureList
public final class WebServiceFeatureList
Represents a list of WebServiceFeature
s that has bunch of utility
methods pertaining to web service features.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
WebServiceFeatureList()
|
|
WebServiceFeatureList(Class<?> endpointClass)
Creates a list by reading featuers from the annotation on a class. |
|
WebServiceFeatureList(WebServiceFeature... features)
|
|
WebServiceFeatureList(WebServiceFeatureList features)
|
Method Summary | ||
---|---|---|
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)
|
|
|
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
|
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)
|
|
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()
|
Methods inherited from class java.util.AbstractMap |
---|
clear, clone, containsKey, containsValue, get, hashCode, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WebServiceFeatureList()
public WebServiceFeatureList(@NotNull WebServiceFeature... features)
public WebServiceFeatureList(WebServiceFeatureList features)
public WebServiceFeatureList(@NotNull Class<?> endpointClass)
Method Detail |
---|
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()
WSFeatureList
toArray
in interface WSFeatureList
public boolean isEnabled(@NotNull Class<? extends WebServiceFeature> feature)
WSFeatureList
WebServiceFeature
is enabled.
isEnabled
in interface WSFeatureList
public boolean contains(@NotNull Class<? extends WebServiceFeature> feature)
@Nullable public <F extends WebServiceFeature> F get(@NotNull Class<F> featureType)
WSFeatureList
WebServiceFeature
of the specific type.
get
in interface WSFeatureList
featureType
- The type of the feature to retrieve.
public void add(@NotNull WebServiceFeature f)
public void addAll(@NotNull Iterable<WebServiceFeature> list)
public 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 WSFeatureList
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.public void mergeFeatures(WebServiceFeature[] features, boolean reportConflicts)
WSFeatureList
mergeFeatures
in interface WSFeatureList
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.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |