Class PolicyEngineImpl

java.lang.Object
org.apache.cxf.ws.policy.PolicyEngineImpl
All Implemented Interfaces:
org.apache.cxf.extension.BusExtension, PolicyEngine

public class PolicyEngineImpl extends Object implements PolicyEngine, org.apache.cxf.extension.BusExtension
  • Constructor Details

    • PolicyEngineImpl

      public PolicyEngineImpl()
    • PolicyEngineImpl

      public PolicyEngineImpl(boolean en)
    • PolicyEngineImpl

      public PolicyEngineImpl(org.apache.cxf.Bus b)
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface PolicyEngine
    • setBus

      public final void setBus(org.apache.cxf.Bus b)
    • getBus

      public org.apache.cxf.Bus getBus()
    • addPolicy

      public void addPolicy(org.apache.neethi.Policy p)
      Specified by:
      addPolicy in interface PolicyEngine
    • setPolicyProviders

      public void setPolicyProviders(Collection<PolicyProvider> p)
    • addPolicyProvider

      public void addPolicyProvider(PolicyProvider p)
    • getPolicyProviders

      public Collection<PolicyProvider> getPolicyProviders()
    • setRegistry

      public void setRegistry(org.apache.neethi.PolicyRegistry r)
    • getRegistry

      public org.apache.neethi.PolicyRegistry getRegistry()
      Specified by:
      getRegistry in interface PolicyEngine
    • setEnabled

      public void setEnabled(boolean e)
      Specified by:
      setEnabled in interface PolicyEngine
    • getAlternativeSelector

      public AlternativeSelector getAlternativeSelector()
      Specified by:
      getAlternativeSelector in interface PolicyEngine
    • setAlternativeSelector

      public void setAlternativeSelector(AlternativeSelector as)
      Specified by:
      setAlternativeSelector in interface PolicyEngine
    • isIgnoreUnknownAssertions

      public boolean isIgnoreUnknownAssertions()
      Specified by:
      isIgnoreUnknownAssertions in interface PolicyEngine
    • setIgnoreUnknownAssertions

      public void setIgnoreUnknownAssertions(boolean ignore)
      Specified by:
      setIgnoreUnknownAssertions in interface PolicyEngine
    • getRegistrationType

      public Class<?> getRegistrationType()
      Specified by:
      getRegistrationType in interface org.apache.cxf.extension.BusExtension
    • getEffectiveClientRequestPolicy

      public EffectivePolicy getEffectiveClientRequestPolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.model.BindingOperationInfo boi, org.apache.cxf.transport.Conduit c, org.apache.cxf.message.Message m)
      Specified by:
      getEffectiveClientRequestPolicy in interface PolicyEngine
    • setEffectiveClientRequestPolicy

      public void setEffectiveClientRequestPolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.model.BindingOperationInfo boi, EffectivePolicy ep)
      Specified by:
      setEffectiveClientRequestPolicy in interface PolicyEngine
    • getEffectiveServerResponsePolicy

      public EffectivePolicy getEffectiveServerResponsePolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.model.BindingOperationInfo boi, org.apache.cxf.transport.Destination d, List<List<org.apache.neethi.Assertion>> incoming, org.apache.cxf.message.Message m)
      Specified by:
      getEffectiveServerResponsePolicy in interface PolicyEngine
    • setEffectiveServerResponsePolicy

      public void setEffectiveServerResponsePolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.model.BindingOperationInfo boi, EffectivePolicy ep)
      Specified by:
      setEffectiveServerResponsePolicy in interface PolicyEngine
    • getEffectiveServerFaultPolicy

      public EffectivePolicy getEffectiveServerFaultPolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.model.BindingOperationInfo boi, org.apache.cxf.service.model.BindingFaultInfo bfi, org.apache.cxf.transport.Destination d, org.apache.cxf.message.Message m)
      Specified by:
      getEffectiveServerFaultPolicy in interface PolicyEngine
    • setEffectiveServerFaultPolicy

      public void setEffectiveServerFaultPolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.model.BindingFaultInfo bfi, EffectivePolicy ep)
      Specified by:
      setEffectiveServerFaultPolicy in interface PolicyEngine
    • getClientEndpointPolicy

      public EndpointPolicy getClientEndpointPolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.transport.Conduit conduit, org.apache.cxf.message.Message m)
      Specified by:
      getClientEndpointPolicy in interface PolicyEngine
    • getServerEndpointPolicy

      public EndpointPolicy getServerEndpointPolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.transport.Destination destination, org.apache.cxf.message.Message m)
      Specified by:
      getServerEndpointPolicy in interface PolicyEngine
    • setClientEndpointPolicy

      public void setClientEndpointPolicy(org.apache.cxf.service.model.EndpointInfo ei, EndpointPolicy ep)
      Specified by:
      setClientEndpointPolicy in interface PolicyEngine
    • setServerEndpointPolicy

      public void setServerEndpointPolicy(org.apache.cxf.service.model.EndpointInfo ei, EndpointPolicy ep)
      Specified by:
      setServerEndpointPolicy in interface PolicyEngine
    • getEffectiveServerRequestPolicy

      public EffectivePolicy getEffectiveServerRequestPolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.model.BindingOperationInfo boi, org.apache.cxf.message.Message m)
      Specified by:
      getEffectiveServerRequestPolicy in interface PolicyEngine
    • setEffectiveServerRequestPolicy

      public void setEffectiveServerRequestPolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.model.BindingOperationInfo boi, EffectivePolicy ep)
      Specified by:
      setEffectiveServerRequestPolicy in interface PolicyEngine
    • getEffectiveClientResponsePolicy

      public EffectivePolicy getEffectiveClientResponsePolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.model.BindingOperationInfo boi, org.apache.cxf.message.Message m)
      Specified by:
      getEffectiveClientResponsePolicy in interface PolicyEngine
    • setEffectiveClientResponsePolicy

      public void setEffectiveClientResponsePolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.model.BindingOperationInfo boi, EffectivePolicy ep)
      Specified by:
      setEffectiveClientResponsePolicy in interface PolicyEngine
    • getEffectiveClientFaultPolicy

      public EffectivePolicy getEffectiveClientFaultPolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.model.BindingOperationInfo boi, org.apache.cxf.service.model.BindingFaultInfo bfi, org.apache.cxf.message.Message m)
      Specified by:
      getEffectiveClientFaultPolicy in interface PolicyEngine
    • setEffectiveClientFaultPolicy

      public void setEffectiveClientFaultPolicy(org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.service.model.BindingFaultInfo bfi, EffectivePolicy ep)
      Specified by:
      setEffectiveClientFaultPolicy in interface PolicyEngine
    • init

      protected final void init()
    • removeBusInterceptors

      public void removeBusInterceptors()
    • addBusInterceptors

      public final void addBusInterceptors()
    • supportsAlternative

      public boolean supportsAlternative(Collection<? extends org.apache.neethi.PolicyComponent> alternative, Assertor assertor, org.apache.cxf.message.Message m)
      Check if a given list of assertions can potentially be supported by interceptors or by an already installed assertor (a conduit or transport that implements the Assertor interface).
      Specified by:
      supportsAlternative in interface PolicyEngine
      Parameters:
      alternative - the policy alternative
      assertor - the assertor
      Returns:
      true iff the alternative can be supported