Apache CXF API

org.apache.cxf.ws.policy
Class PolicyEngineImpl

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

public class PolicyEngineImpl
extends Object
implements PolicyEngine, BusExtension


Constructor Summary
PolicyEngineImpl()
           
PolicyEngineImpl(boolean en)
           
PolicyEngineImpl(Bus b)
           
 
Method Summary
 void addBusInterceptors()
           
 void addPolicyProvider(PolicyProvider p)
           
 AlternativeSelector getAlternativeSelector()
           
 Bus getBus()
           
 EndpointPolicy getClientEndpointPolicy(EndpointInfo ei, Conduit conduit, Message m)
           
 EffectivePolicy getEffectiveClientFaultPolicy(EndpointInfo ei, BindingOperationInfo boi, BindingFaultInfo bfi, Message m)
           
 EffectivePolicy getEffectiveClientRequestPolicy(EndpointInfo ei, BindingOperationInfo boi, Conduit c, Message m)
           
 EffectivePolicy getEffectiveClientResponsePolicy(EndpointInfo ei, BindingOperationInfo boi, Message m)
           
 EffectivePolicy getEffectiveServerFaultPolicy(EndpointInfo ei, BindingOperationInfo boi, BindingFaultInfo bfi, Destination d, Message m)
           
 EffectivePolicy getEffectiveServerRequestPolicy(EndpointInfo ei, BindingOperationInfo boi, Message m)
           
 EffectivePolicy getEffectiveServerResponsePolicy(EndpointInfo ei, BindingOperationInfo boi, Destination d, List<List<org.apache.neethi.Assertion>> incoming, Message m)
           
 Collection<PolicyProvider> getPolicyProviders()
           
 Class<?> getRegistrationType()
           
 org.apache.neethi.PolicyRegistry getRegistry()
           
 EndpointPolicy getServerEndpointPolicy(EndpointInfo ei, Destination destination, Message m)
           
protected  void init()
           
 boolean isEnabled()
           
 boolean isIgnoreUnknownAssertions()
           
 void removeBusInterceptors()
           
 void setAlternativeSelector(AlternativeSelector as)
           
 void setBus(Bus b)
           
 void setClientEndpointPolicy(EndpointInfo ei, EndpointPolicy ep)
           
 void setEffectiveClientFaultPolicy(EndpointInfo ei, BindingFaultInfo bfi, EffectivePolicy ep)
           
 void setEffectiveClientRequestPolicy(EndpointInfo ei, BindingOperationInfo boi, EffectivePolicy ep)
           
 void setEffectiveClientResponsePolicy(EndpointInfo ei, BindingOperationInfo boi, EffectivePolicy ep)
           
 void setEffectiveServerFaultPolicy(EndpointInfo ei, BindingFaultInfo bfi, EffectivePolicy ep)
           
 void setEffectiveServerRequestPolicy(EndpointInfo ei, BindingOperationInfo boi, EffectivePolicy ep)
           
 void setEffectiveServerResponsePolicy(EndpointInfo ei, BindingOperationInfo boi, EffectivePolicy ep)
           
 void setEnabled(boolean e)
           
 void setIgnoreUnknownAssertions(boolean ignore)
           
 void setPolicyProviders(Collection<PolicyProvider> p)
           
 void setRegistry(org.apache.neethi.PolicyRegistry r)
           
 void setServerEndpointPolicy(EndpointInfo ei, EndpointPolicy ep)
           
 boolean supportsAlternative(Collection<? extends org.apache.neethi.PolicyComponent> alternative, Assertor assertor, 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyEngineImpl

public PolicyEngineImpl()

PolicyEngineImpl

public PolicyEngineImpl(boolean en)

PolicyEngineImpl

public PolicyEngineImpl(Bus b)
Method Detail

isEnabled

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

setBus

public final void setBus(Bus b)

getBus

public Bus getBus()

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 BusExtension

getEffectiveClientRequestPolicy

public EffectivePolicy getEffectiveClientRequestPolicy(EndpointInfo ei,
                                                       BindingOperationInfo boi,
                                                       Conduit c,
                                                       Message m)
Specified by:
getEffectiveClientRequestPolicy in interface PolicyEngine

setEffectiveClientRequestPolicy

public void setEffectiveClientRequestPolicy(EndpointInfo ei,
                                            BindingOperationInfo boi,
                                            EffectivePolicy ep)
Specified by:
setEffectiveClientRequestPolicy in interface PolicyEngine

getEffectiveServerResponsePolicy

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

setEffectiveServerResponsePolicy

public void setEffectiveServerResponsePolicy(EndpointInfo ei,
                                             BindingOperationInfo boi,
                                             EffectivePolicy ep)
Specified by:
setEffectiveServerResponsePolicy in interface PolicyEngine

getEffectiveServerFaultPolicy

public EffectivePolicy getEffectiveServerFaultPolicy(EndpointInfo ei,
                                                     BindingOperationInfo boi,
                                                     BindingFaultInfo bfi,
                                                     Destination d,
                                                     Message m)
Specified by:
getEffectiveServerFaultPolicy in interface PolicyEngine

setEffectiveServerFaultPolicy

public void setEffectiveServerFaultPolicy(EndpointInfo ei,
                                          BindingFaultInfo bfi,
                                          EffectivePolicy ep)
Specified by:
setEffectiveServerFaultPolicy in interface PolicyEngine

getClientEndpointPolicy

public EndpointPolicy getClientEndpointPolicy(EndpointInfo ei,
                                              Conduit conduit,
                                              Message m)
Specified by:
getClientEndpointPolicy in interface PolicyEngine

getServerEndpointPolicy

public EndpointPolicy getServerEndpointPolicy(EndpointInfo ei,
                                              Destination destination,
                                              Message m)
Specified by:
getServerEndpointPolicy in interface PolicyEngine

setClientEndpointPolicy

public void setClientEndpointPolicy(EndpointInfo ei,
                                    EndpointPolicy ep)
Specified by:
setClientEndpointPolicy in interface PolicyEngine

setServerEndpointPolicy

public void setServerEndpointPolicy(EndpointInfo ei,
                                    EndpointPolicy ep)
Specified by:
setServerEndpointPolicy in interface PolicyEngine

getEffectiveServerRequestPolicy

public EffectivePolicy getEffectiveServerRequestPolicy(EndpointInfo ei,
                                                       BindingOperationInfo boi,
                                                       Message m)
Specified by:
getEffectiveServerRequestPolicy in interface PolicyEngine

setEffectiveServerRequestPolicy

public void setEffectiveServerRequestPolicy(EndpointInfo ei,
                                            BindingOperationInfo boi,
                                            EffectivePolicy ep)
Specified by:
setEffectiveServerRequestPolicy in interface PolicyEngine

getEffectiveClientResponsePolicy

public EffectivePolicy getEffectiveClientResponsePolicy(EndpointInfo ei,
                                                        BindingOperationInfo boi,
                                                        Message m)
Specified by:
getEffectiveClientResponsePolicy in interface PolicyEngine

setEffectiveClientResponsePolicy

public void setEffectiveClientResponsePolicy(EndpointInfo ei,
                                             BindingOperationInfo boi,
                                             EffectivePolicy ep)
Specified by:
setEffectiveClientResponsePolicy in interface PolicyEngine

getEffectiveClientFaultPolicy

public EffectivePolicy getEffectiveClientFaultPolicy(EndpointInfo ei,
                                                     BindingOperationInfo boi,
                                                     BindingFaultInfo bfi,
                                                     Message m)
Specified by:
getEffectiveClientFaultPolicy in interface PolicyEngine

setEffectiveClientFaultPolicy

public void setEffectiveClientFaultPolicy(EndpointInfo ei,
                                          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,
                                   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

Apache CXF API

Apache CXF