Policy Interceptors
Using binding.ws this figure shows where interceptors are currently added to the invocation and binding chains and some of the problems we have (as discussed recently on the ML)
Policy Summary
TBD - list of all the intents and policys that are supported by extension
binding.ws HTTP basic authentication
...
Phase | Extension | Intent | PolicyModel | Builder | Provider | Interceptor | Notes |
---|---|---|---|---|---|---|---|
Component Impl | Java |
|
|
|
|
|
|
Reference Wire |
|
|
|
|
|
|
|
Reference Binding Wire |
|
|
|
|
|
|
|
Reference Binding/EPR | WS | confidentiality | HTTPSPolicy | HTTPSPolicyProvider |
|
|
|
Service Binding/EP | WS | confidentiality | HTTPSPolicy | HTTPSPolicyProvider |
|
|
|
Service Binding Wire |
|
|
|
|
|
|
|
Service Wire |
|
|
|
|
|
|
|
Component Impl | Java |
|
|
|
|
|
|
Note. The provider is is possibly badly named as it configures the trust/key store for the whole JVM. If you define two policy sets with different trust/key store configuration then only one will be used. Should the provider be more generically named/located to indicate this?
binding.ws HTTP ssl confidentiality and client authentication - 2 way SSL
...
Phase | Extension | Intent | PolicyModel | Builder | Provider | Interceptor | Notes | ||
---|---|---|---|---|---|---|---|---|---|
Component Impl | Java |
|
|
|
|
| TBD - impl specific defaults | ||
Reference Wire - Impl |
|
| TransactionPolicyBuilder |
| TransactionImplementationPolicyProvider |
| look at policy list and add appropriate defaults | ||
Reference Wire - Ref |
|
|
|
| TransactionReferencePolicyProvider |
| look at policy list and add appropriate defaults | ||
Reference Binding Wire /EPR | WS |
|
|
|
|
|
| TBD - binding specific defaults | |
Service Reference Binding/EPR EP | WS |
|
|
|
|
| TBD - binding specific defaults | ||
Service Wire - Svc |
|
| TransactionPolicyBuilder |
| TransactionServicePolicyProvider |
| look at policy list and add appropriate defaults | ||
Service Bindin/EP Wire - Impl | WS |
|
| TransactionPolicyBuilder | TransactionImplementationPolicyProvider |
| look at policy list and add appropriate defaults | ||
Component Impl | Java |
|
|
|
|
| TBD - impl specific defaults | Service Binding Wire |
Note. Subsequently the following will process the new intents that have been added
Policy Transaction Managed Global Propagates
Phase | Extension | Intent | PolicyModel | Builder | Provider | Interceptor | Notes | |
---|---|---|---|---|---|---|---|---|
Component Impl | Spring | managedTransaction.global | TransactionPolicy |
| TBD | TBD |
| |
Component Impl | Java | managedTransaction.global | TransactionPolicy |
| TransactionImplementationPolicyProvider | TransactionInterceptor | Seems odd that there is only one interceptor | |
Reference Wire - Impl |
|
|
|
|
|
|
| |
Reference Wire - Ref |
|
|
|
| TransactionReferencePolicyProvider | TransactionInterceptor |
| |
Reference Binding/EPR | WS | propagatesTransaction | TransactionPolicy |
| ? | TransactionReferenceBindingWSInterceptor |
| |
Reference Binding/EPR | SCA | propagatesTransaction | TransactionPolicy |
|
|
| Is interceptor required? | |
Service Binding/EP | SCA | propagatesTransaction | TransactionPolicy |
|
|
| Is interceptor required? | |
Service Wire Binding/EP | WS | propagatesTransaction | TransactionPolicy |
| ? | TransactionServiceBindingWSInterceptor |
| |
Service Wire |
|
|
|
| TransactionServicePolicyProvider | TransactionInterceptor |
| |
Component Impl | Java | managedTransaction.global | TransactionPolicy |
| TransactionImplementationPolicyProvider | TransactionInterceptor |
| |
Component Impl | Spring | managedTransaction.global | TransactionPolicy TransactionPolicyBuilder |
| TBD |
| TBD | look at policy list and add appropriate defaults |
Policy runtime template
Phase | Extension | Intent | PolicyModel | Builder | Provider | Interceptor | Notes |
---|---|---|---|---|---|---|---|
Component Impl | Java |
|
|
|
|
|
|
Reference Wire |
|
|
|
|
|
|
|
Reference Binding Wire |
|
|
|
|
|
|
|
Reference Binding/EPR |
|
|
|
|
|
|
|
Service Binding/EP |
|
|
|
|
|
|
|
Service Binding Wire |
|
|
|
|
|
|
|
Service Wire |
|
|
|
|
|
|
|
Component Impl | Java |
|
|
|
|
|
|