Package org.apache.cxf.feature
Class AbstractFeature
java.lang.Object
jakarta.xml.ws.WebServiceFeature
org.apache.cxf.feature.AbstractFeature
- All Implemented Interfaces:
AbstractPortableFeature,Feature
- Direct Known Subclasses:
DelegatingFeature,WrappedFeature,WSAddressingFeature
A Feature is something that is able to customize a Server, Client, or Bus, typically
adding capabilities. For instance, there may be a LoggingFeature which configures
one of the above to log each of their messages.
By default the initialize methods all delegate to initializeProvider(InterceptorProvider). If you're simply adding interceptors to a Server, Client, or Bus, this allows you to add them easily.
-
Field Summary
Fields inherited from class jakarta.xml.ws.WebServiceFeature
enabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoInitializeProvider(InterceptorProvider provider, Bus bus) static <T> TConvenience method to extract a feature by type from an active list.getID()Get the unique identifier for this WebServiceFeature.protected voidinitializeProvider(InterceptorProvider provider, Bus bus) booleanReturnstrueif this feature is enabled.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.feature.AbstractPortableFeature
initialize, initialize, initialize, initialize
-
Constructor Details
-
AbstractFeature
public AbstractFeature()
-
-
Method Details
-
getID
Description copied from class:WebServiceFeatureGet the unique identifier for this WebServiceFeature.- Specified by:
getIDin classWebServiceFeature- Returns:
- the unique identifier for this feature.
-
isEnabled
public boolean isEnabled()Description copied from class:WebServiceFeatureReturnstrueif this feature is enabled.- Overrides:
isEnabledin classWebServiceFeature- Returns:
trueif and only if the feature is enabled .
-
doInitializeProvider
- Specified by:
doInitializeProviderin interfaceAbstractPortableFeature
-
initializeProvider
-
getActive
Description copied from interface:AbstractPortableFeatureConvenience method to extract a feature by type from an active list.- Parameters:
features- the given feature listtype- the feature type required- Returns:
- the feature of the specified type if active
-