public class PolicyEngineImpl extends Object implements PolicyEngine, BusExtension
Constructor and Description |
---|
PolicyEngineImpl() |
PolicyEngineImpl(boolean en) |
PolicyEngineImpl(Bus b) |
public PolicyEngineImpl()
public PolicyEngineImpl(boolean en)
public PolicyEngineImpl(Bus b)
public boolean isEnabled()
isEnabled
in interface PolicyEngine
public final void setBus(Bus b)
public Bus getBus()
public void setPolicyProviders(Collection<PolicyProvider> p)
public void addPolicyProvider(PolicyProvider p)
public Collection<PolicyProvider> getPolicyProviders()
public void setRegistry(org.apache.neethi.PolicyRegistry r)
public org.apache.neethi.PolicyRegistry getRegistry()
getRegistry
in interface PolicyEngine
public void setEnabled(boolean e)
setEnabled
in interface PolicyEngine
public AlternativeSelector getAlternativeSelector()
getAlternativeSelector
in interface PolicyEngine
public void setAlternativeSelector(AlternativeSelector as)
setAlternativeSelector
in interface PolicyEngine
public boolean isIgnoreUnknownAssertions()
isIgnoreUnknownAssertions
in interface PolicyEngine
public void setIgnoreUnknownAssertions(boolean ignore)
setIgnoreUnknownAssertions
in interface PolicyEngine
public Class<?> getRegistrationType()
getRegistrationType
in interface BusExtension
public EffectivePolicy getEffectiveClientRequestPolicy(EndpointInfo ei, BindingOperationInfo boi, Conduit c, Message m)
getEffectiveClientRequestPolicy
in interface PolicyEngine
public void setEffectiveClientRequestPolicy(EndpointInfo ei, BindingOperationInfo boi, EffectivePolicy ep)
setEffectiveClientRequestPolicy
in interface PolicyEngine
public EffectivePolicy getEffectiveServerResponsePolicy(EndpointInfo ei, BindingOperationInfo boi, Destination d, List<List<org.apache.neethi.Assertion>> incoming, Message m)
getEffectiveServerResponsePolicy
in interface PolicyEngine
public void setEffectiveServerResponsePolicy(EndpointInfo ei, BindingOperationInfo boi, EffectivePolicy ep)
setEffectiveServerResponsePolicy
in interface PolicyEngine
public EffectivePolicy getEffectiveServerFaultPolicy(EndpointInfo ei, BindingOperationInfo boi, BindingFaultInfo bfi, Destination d, Message m)
getEffectiveServerFaultPolicy
in interface PolicyEngine
public void setEffectiveServerFaultPolicy(EndpointInfo ei, BindingFaultInfo bfi, EffectivePolicy ep)
setEffectiveServerFaultPolicy
in interface PolicyEngine
public EndpointPolicy getClientEndpointPolicy(EndpointInfo ei, Conduit conduit, Message m)
getClientEndpointPolicy
in interface PolicyEngine
public EndpointPolicy getServerEndpointPolicy(EndpointInfo ei, Destination destination, Message m)
getServerEndpointPolicy
in interface PolicyEngine
public void setClientEndpointPolicy(EndpointInfo ei, EndpointPolicy ep)
setClientEndpointPolicy
in interface PolicyEngine
public void setServerEndpointPolicy(EndpointInfo ei, EndpointPolicy ep)
setServerEndpointPolicy
in interface PolicyEngine
public EffectivePolicy getEffectiveServerRequestPolicy(EndpointInfo ei, BindingOperationInfo boi, Message m)
getEffectiveServerRequestPolicy
in interface PolicyEngine
public void setEffectiveServerRequestPolicy(EndpointInfo ei, BindingOperationInfo boi, EffectivePolicy ep)
setEffectiveServerRequestPolicy
in interface PolicyEngine
public EffectivePolicy getEffectiveClientResponsePolicy(EndpointInfo ei, BindingOperationInfo boi, Message m)
getEffectiveClientResponsePolicy
in interface PolicyEngine
public void setEffectiveClientResponsePolicy(EndpointInfo ei, BindingOperationInfo boi, EffectivePolicy ep)
setEffectiveClientResponsePolicy
in interface PolicyEngine
public EffectivePolicy getEffectiveClientFaultPolicy(EndpointInfo ei, BindingOperationInfo boi, BindingFaultInfo bfi, Message m)
getEffectiveClientFaultPolicy
in interface PolicyEngine
public void setEffectiveClientFaultPolicy(EndpointInfo ei, BindingFaultInfo bfi, EffectivePolicy ep)
setEffectiveClientFaultPolicy
in interface PolicyEngine
protected final void init()
public void removeBusInterceptors()
public final void addBusInterceptors()
public boolean supportsAlternative(Collection<? extends org.apache.neethi.PolicyComponent> alternative, Assertor assertor, Message m)
supportsAlternative
in interface PolicyEngine
alternative
- the policy alternativeAssertor
- the assertorApache CXF