Results 1 to 3 of 3

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

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Posts
    10

    Default 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. #2
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    645

    Default

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

    Take care,
    Artem

  3. #3
    Join Date
    Dec 2012
    Posts
    10

    Default

    Thanks Artem,

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

    Vincnet

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •