Announcement Announcement Module
Collapse
No announcement yet.
Oreder of Interceptor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Oreder of Interceptor

    Hi, is it possible to configure the order of the interceptor configured in my application context ?

    I'd would like to do something like this:

    Code:
    <sws:interceptors>
       <bean class="org.springframework.ws.soap.server.endpoint.interceptor.SoapEnvelopeLoggingInterceptor"/>
       <bean class="org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidatingInterceptor">
       <bean class="org.springframework.ws.soap.security.xwss.XwsSecurityInterceptor">
    
        <bean class="myOwnMDCLoggingInterceptor" />
        <bean class="myOwnAuthorizationInterceptor" />
    <sws:interceptors>
    With this configuration I would like to use two custom Interceptor: the first "myOwnMDCLoggingInterceptor" it's an interceptor that put the username of the caller inside Slf4j Mapped Diagnostic context, the secondo it's an endpoint that perform authorization based on the message payload.
    In my test I see that sometime "myOwnAuthorizationInterceptor" it's called before "myOwnAuthorizationInterceptor".
    Ho can I configure Interceptor order ?

    Cheers
    Last edited by nothingman; Aug 24th, 2012, 08:35 AM.
Working...
X