Apache CXF API

org.apache.cxf.ws.policy
Class AbstractPolicyInterceptorProvider

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.concurrent.ConcurrentHashMap<String,Object>
          extended by org.apache.cxf.interceptor.AbstractAttributedInterceptorProvider
              extended by org.apache.cxf.ws.policy.AbstractPolicyInterceptorProvider
All Implemented Interfaces:
Serializable, ConcurrentMap<String,Object>, Map<String,Object>, InterceptorProvider, PolicyInterceptorProvider
Direct Known Subclasses:
AddressingPolicyInterceptorProvider, HttpsTokenInterceptorProvider, IgnorablePolicyInterceptorProvider, IssuedTokenInterceptorProvider, KerberosTokenInterceptorProvider, MTOMPolicyInterceptorProvider, NoOpPolicyInterceptorProvider, RMPolicyInterceptorProvider, SamlTokenInterceptorProvider, SecureConversationTokenInterceptorProvider, SpnegoTokenInterceptorProvider, UsernameTokenInterceptorProvider, WSSecurityInterceptorProvider, WSSecurityPolicyInterceptorProvider

public abstract class AbstractPolicyInterceptorProvider
extends AbstractAttributedInterceptorProvider
implements PolicyInterceptorProvider

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
AbstractPolicyInterceptorProvider(Collection<QName> at)
           
AbstractPolicyInterceptorProvider(QName type)
           
 
Method Summary
 boolean configurationPresent(Message msg, org.apache.neethi.Assertion assertion)
          Return false if the message does not contain enough contextual configuration to preemtively support the given assertion.
 Collection<QName> getAssertionTypes()
          Returns a collection of QNames describing the xml schema types of the assertions that this interceptor implements.
 
Methods inherited from class org.apache.cxf.interceptor.AbstractAttributedInterceptorProvider
equals, getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors, hashCode, put, setInFaultInterceptors, setInInterceptors, setOutFaultInterceptors, setOutInterceptors
 
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, putAll, putIfAbsent, remove, remove, replace, replace, size, values
 
Methods inherited from class java.util.AbstractMap
clone, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.interceptor.InterceptorProvider
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors
 

Constructor Detail

AbstractPolicyInterceptorProvider

public AbstractPolicyInterceptorProvider(QName type)

AbstractPolicyInterceptorProvider

public AbstractPolicyInterceptorProvider(Collection<QName> at)
Method Detail

getAssertionTypes

public Collection<QName> getAssertionTypes()
Description copied from interface: PolicyInterceptorProvider
Returns a collection of QNames describing the xml schema types of the assertions that this interceptor implements.

Specified by:
getAssertionTypes in interface PolicyInterceptorProvider
Returns:
collection of QNames of known assertion types

configurationPresent

public boolean configurationPresent(Message msg,
                                    org.apache.neethi.Assertion assertion)
Description copied from interface: PolicyInterceptorProvider
Return false if the message does not contain enough contextual configuration to preemtively support the given assertion. Otherwise, return true. If false, the PolicyEngine.supportsAlternative method will not select this policy and will attempt a different alternative. Example: If the context does not contain login information, an assertion that requires it could return false to allow the Alternative selection algorithms to try a different alternative.

Specified by:
configurationPresent in interface PolicyInterceptorProvider
Parameters:
msg - The contextual message, may be null if no message is in context at this point
Returns:

Apache CXF API

Apache CXF