/** * Returns the message ID strategy for the given endpoint. Default implementation * returns {@link #getMessageIdStrategy()} * * @param endpoint the endpoint * @return the message ID strategy for the given endpoint */ protected MessageIdStrategy getMessageIdStrategy(Object endpoint) { return getMessageIdStrategy(); }
/** * Returns the message ID strategy for the given endpoint. Default implementation * returns {@link #getMessageIdStrategy()} * * @param endpoint the endpoint * @return the message ID strategy for the given endpoint */ protected MessageIdStrategy getMessageIdStrategy(Object endpoint) { return getMessageIdStrategy(); }
/** * Returns the message ID strategy for the given endpoint. Default implementation * returns {@link #getMessageIdStrategy()} * * @param endpoint the endpoint * @return the message ID strategy for the given endpoint */ protected MessageIdStrategy getMessageIdStrategy(Object endpoint) { return getMessageIdStrategy(); }
/** * Creates a {@link SoapEndpointInvocationChain} based on the given endpoint and {@link * org.springframework.ws.soap.addressing.version.AddressingVersion}. */ private EndpointInvocationChain getEndpointInvocationChain(Object endpoint, AddressingVersion version, MessageAddressingProperties requestMap, MessageContext messageContext) { URI responseAction = getResponseAction(endpoint, requestMap); URI faultAction = getFaultAction(endpoint, requestMap); WebServiceMessageSender[] messageSenders = getMessageSenders(endpoint); MessageIdStrategy messageIdStrategy = getMessageIdStrategy(endpoint); List<EndpointInterceptor> interceptors = new ArrayList<EndpointInterceptor>(); interceptors.addAll(Arrays.asList(preInterceptors)); AddressingEndpointInterceptor addressingInterceptor = new AddressingEndpointInterceptor(version, messageIdStrategy, messageSenders, responseAction, faultAction); interceptors.add(addressingInterceptor); interceptors.addAll(Arrays.asList(postInterceptors)); if (this.smartInterceptors != null) { for (SmartEndpointInterceptor smartInterceptor : smartInterceptors) { if (smartInterceptor.shouldIntercept(messageContext, endpoint)) { interceptors.add(smartInterceptor); } } } return new SoapEndpointInvocationChain(endpoint, interceptors.toArray(new EndpointInterceptor[interceptors.size()]), actorsOrRoles, isUltimateReceiver); }
/** * Creates a {@link SoapEndpointInvocationChain} based on the given endpoint and {@link * org.springframework.ws.soap.addressing.version.AddressingVersion}. */ private EndpointInvocationChain getEndpointInvocationChain(Object endpoint, AddressingVersion version, MessageAddressingProperties requestMap, MessageContext messageContext) { URI responseAction = getResponseAction(endpoint, requestMap); URI faultAction = getFaultAction(endpoint, requestMap); WebServiceMessageSender[] messageSenders = getMessageSenders(endpoint); MessageIdStrategy messageIdStrategy = getMessageIdStrategy(endpoint); List<EndpointInterceptor> interceptors = new ArrayList<EndpointInterceptor>(); interceptors.addAll(Arrays.asList(preInterceptors)); AddressingEndpointInterceptor addressingInterceptor = new AddressingEndpointInterceptor(version, messageIdStrategy, messageSenders, responseAction, faultAction); interceptors.add(addressingInterceptor); interceptors.addAll(Arrays.asList(postInterceptors)); if (this.smartInterceptors != null) { for (SmartEndpointInterceptor smartInterceptor : smartInterceptors) { if (smartInterceptor.shouldIntercept(messageContext, endpoint)) { interceptors.add(smartInterceptor); } } } return new SoapEndpointInvocationChain(endpoint, interceptors.toArray(new EndpointInterceptor[interceptors.size()]), actorsOrRoles, isUltimateReceiver); }
/** * Creates a {@link SoapEndpointInvocationChain} based on the given endpoint and {@link * org.springframework.ws.soap.addressing.version.AddressingVersion}. */ private EndpointInvocationChain getEndpointInvocationChain(Object endpoint, AddressingVersion version, MessageAddressingProperties requestMap, MessageContext messageContext) { URI responseAction = getResponseAction(endpoint, requestMap); URI faultAction = getFaultAction(endpoint, requestMap); WebServiceMessageSender[] messageSenders = getMessageSenders(endpoint); MessageIdStrategy messageIdStrategy = getMessageIdStrategy(endpoint); List<EndpointInterceptor> interceptors = new ArrayList<EndpointInterceptor>(); interceptors.addAll(Arrays.asList(preInterceptors)); AddressingEndpointInterceptor addressingInterceptor = new AddressingEndpointInterceptor(version, messageIdStrategy, messageSenders, responseAction, faultAction); interceptors.add(addressingInterceptor); interceptors.addAll(Arrays.asList(postInterceptors)); if (this.smartInterceptors != null) { for (SmartEndpointInterceptor smartInterceptor : smartInterceptors) { if (smartInterceptor.shouldIntercept(messageContext, endpoint)) { interceptors.add(smartInterceptor); } } } return new SoapEndpointInvocationChain(endpoint, interceptors.toArray(new EndpointInterceptor[interceptors.size()]), actorsOrRoles, isUltimateReceiver); }
/** * Configure message id strategy for wsa:replyTo The route definition has * priority over this endpoint. */ @Override protected MessageIdStrategy getMessageIdStrategy(Object endpoint) { SpringWebserviceEndpoint camelEndpoint = getSpringWebserviceEndpoint(endpoint); if (camelEndpoint.getConfiguration().getMessageIdStrategy() != null) { return camelEndpoint.getConfiguration().getMessageIdStrategy(); } return super.getMessageIdStrategy(endpoint); }