Announcement Announcement Module
Collapse
No announcement yet.
How to intercept requests to <int-ws:inbound-gateway> Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to intercept requests to <int-ws:inbound-gateway>

    I'm having multiple <int-ws:inbound-gateway> defined for the different web-services of my application. For some of these web-services I'm trying to enable security. Currently I do this via the uriEndpointMapping:

    Code:
        @Bean
        public UriEndpointMapping uriEndpointMapping() {
            UriEndpointMapping endpointMapping = new UriEndpointMapping();
            Map<String, Object> endpointMap = new HashMap<String, Object>();
            endpointMap.put("http://localhost:7001/ws/notification", notificationInboundGateway);
            endpointMap.put("http://localhost:7001/ws/echo", echoInboundGateway);
            endpointMapping.setEndpointMap(endpointMap);
            EndpointInterceptor[] interceptors = {xwsSecurityInterceptor};
            endpointMapping.setInterceptors(interceptors);
            return endpointMapping;
        }
    Although this works nicely, it implies that the xwsSecurityInterceptor operates on any of the endpoint mappings. How can I change this? Is it possible to define them on a per endpoint mapping basis?

    Any hints/suggestions are welcome.

    Thanks,

    Vincent

  • #2
    Hi!
    How about this one: http://static.springsource.org/sprin...nt-interceptor

    Take care,
    Artem

    Comment


    • #3
      Thanks Artem,

      Excellent reference and now my endpoints have there own set of intereceptors :-)

      Vincnet

      Comment

      Working...
      X