Class 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:
    PolicyBuilder, AbstractFeature
    • Constructor Detail

      • WSPolicyFeature

        public WSPolicyFeature()
      • WSPolicyFeature

        public WSPolicyFeature​(org.apache.neethi.Policy... ps)
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Overrides:
        isEnabled in class org.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

        public Collection<org.apache.neethi.Policy> getPolicies()
      • setPolicies

        public void setPolicies​(Collection<org.apache.neethi.Policy> policies)
      • setPolicyElements

        public void setPolicyElements​(Collection<Element> elements)
      • getPolicyReferenceElements

        public Collection<Element> getPolicyReferenceElements()
      • setPolicyReferenceElements

        public void setPolicyReferenceElements​(Collection<Element> elements)
      • setIgnoreUnknownAssertions

        public void setIgnoreUnknownAssertions​(boolean ignore)
      • resolveExternal

        protected org.apache.neethi.Policy resolveExternal​(org.apache.neethi.PolicyReference ref,
                                                           String baseURI,
                                                           org.apache.cxf.Bus bus)