Package org.apache.cxf.ws.policy
Class WSPolicyFeature
java.lang.Object
jakarta.xml.ws.WebServiceFeature
org.apache.cxf.feature.AbstractFeature
org.apache.cxf.ws.policy.WSPolicyFeature
- All Implemented Interfaces:
org.apache.cxf.feature.AbstractPortableFeature,org.apache.cxf.feature.Feature
public class WSPolicyFeature
extends org.apache.cxf.feature.AbstractFeature
Configures a Server, Client, Bus with the specified policies. If a series of
Policy
Elements are supplied, these will be loaded into a Policy
class using the PolicyBuilder extension on the bus. If the
PolicyEngine has not been started, this feature will start it.- See Also:
-
PolicyBuilderAbstractFeature
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.apache.neethi.Policy>voidinitialize(org.apache.cxf.Bus bus) voidinitialize(org.apache.cxf.endpoint.Client client, org.apache.cxf.Bus bus) voidinitialize(org.apache.cxf.endpoint.Server server, org.apache.cxf.Bus bus) voidinitializePolicyEngine(org.apache.cxf.Bus bus) booleanprotected org.apache.neethi.PolicyresolveExternal(org.apache.neethi.PolicyReference ref, String baseURI, org.apache.cxf.Bus bus) voidvoidsetEnabled(boolean enabled) voidsetIgnoreUnknownAssertions(boolean ignore) voidsetPolicies(Collection<org.apache.neethi.Policy> policies) voidsetPolicyElements(Collection<Element> elements) voidsetPolicyReferenceElements(Collection<Element> elements) Methods inherited from class org.apache.cxf.feature.AbstractFeature
doInitializeProvider, getActive, getID, initializeProviderMethods 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
-
Constructor Details
-
WSPolicyFeature
public WSPolicyFeature() -
WSPolicyFeature
public WSPolicyFeature(org.apache.neethi.Policy... ps)
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Overrides:
isEnabledin classorg.apache.cxf.feature.AbstractFeature
-
setEnabled
public void setEnabled(boolean enabled) -
initialize
public void initialize(org.apache.cxf.Bus bus) -
initializePolicyEngine
public void initializePolicyEngine(org.apache.cxf.Bus bus) -
initialize
public void initialize(org.apache.cxf.endpoint.Client client, org.apache.cxf.Bus bus) -
initialize
public void initialize(org.apache.cxf.endpoint.Server server, org.apache.cxf.Bus bus) -
getPolicies
-
setPolicies
-
getPolicyElements
-
setPolicyElements
-
getPolicyReferenceElements
-
setPolicyReferenceElements
-
setIgnoreUnknownAssertions
public void setIgnoreUnknownAssertions(boolean ignore) -
setAlternativeSelector
-
resolveExternal
protected org.apache.neethi.Policy resolveExternal(org.apache.neethi.PolicyReference ref, String baseURI, org.apache.cxf.Bus bus)
-