Apache CXF API

org.apache.cxf.ws.policy
Interface PolicyInterceptorProvider

All Superinterfaces:
InterceptorProvider
All Known Implementing Classes:
AbstractPolicyInterceptorProvider, AddressingPolicyInterceptorProvider, HttpsTokenInterceptorProvider, IgnorablePolicyInterceptorProvider, IssuedTokenInterceptorProvider, KerberosTokenInterceptorProvider, MTOMPolicyInterceptorProvider, NoOpPolicyInterceptorProvider, RMPolicyInterceptorProvider, SamlTokenInterceptorProvider, SecureConversationTokenInterceptorProvider, SpnegoTokenInterceptorProvider, UsernameTokenInterceptorProvider, WSSecurityInterceptorProvider, WSSecurityPolicyInterceptorProvider

public interface PolicyInterceptorProvider
extends InterceptorProvider


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 interface org.apache.cxf.interceptor.InterceptorProvider
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors
 

Method Detail

getAssertionTypes

Collection<QName> getAssertionTypes()
Returns a collection of QNames describing the xml schema types of the assertions that this interceptor implements.

Returns:
collection of QNames of known assertion types

configurationPresent

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. 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.

Parameters:
msg - The contextual message, may be null if no message is in context at this point
assertion -
Returns:

Apache CXF API

Apache CXF