/** * Handles the request for a single SOAP actor/role. Iterates over all {@code MustUnderstand} headers for a * specific SOAP 1.1 actor or SOAP 1.2 role, and determines whether these are understood by any of the registered * {@code SoapEndpointInterceptor}. If they are, returns {@code true}. If they are not, a SOAP fault is * created, and false is returned. * * @see SoapEndpointInterceptor#understands(org.springframework.ws.soap.SoapHeaderElement) */ private boolean headerUnderstood(EndpointInvocationChain mappedEndpoint, SoapHeaderElement headerElement) { EndpointInterceptor[] interceptors = mappedEndpoint.getInterceptors(); if (ObjectUtils.isEmpty(interceptors)) { return false; } for (EndpointInterceptor interceptor : interceptors) { if (interceptor instanceof SoapEndpointInterceptor && ((SoapEndpointInterceptor) interceptor).understands(headerElement)) { return true; } } return false; }
/** * Handles the request for a single SOAP actor/role. Iterates over all <code>MustUnderstand</code> headers for a * specific SOAP 1.1 actor or SOAP 1.2 role, and determines whether these are understood by any of the registered * <code>SoapEndpointInterceptor</code>. If they are, returns <code>true</code>. If they are not, a SOAP fault is * created, and false is returned. * * @see SoapEndpointInterceptor#understands(org.springframework.ws.soap.SoapHeaderElement) */ private boolean headerUnderstood(EndpointInvocationChain mappedEndpoint, SoapHeaderElement headerElement) { EndpointInterceptor[] interceptors = mappedEndpoint.getInterceptors(); if (ObjectUtils.isEmpty(interceptors)) { return false; } for (EndpointInterceptor interceptor : interceptors) { if (interceptor instanceof SoapEndpointInterceptor && ((SoapEndpointInterceptor) interceptor).understands(headerElement)) { return true; } } return false; }
/** * Handles the request for a single SOAP actor/role. Iterates over all {@code MustUnderstand} headers for a * specific SOAP 1.1 actor or SOAP 1.2 role, and determines whether these are understood by any of the registered * {@code SoapEndpointInterceptor}. If they are, returns {@code true}. If they are not, a SOAP fault is * created, and false is returned. * * @see SoapEndpointInterceptor#understands(org.springframework.ws.soap.SoapHeaderElement) */ private boolean headerUnderstood(EndpointInvocationChain mappedEndpoint, SoapHeaderElement headerElement) { EndpointInterceptor[] interceptors = mappedEndpoint.getInterceptors(); if (ObjectUtils.isEmpty(interceptors)) { return false; } for (EndpointInterceptor interceptor : interceptors) { if (interceptor instanceof SoapEndpointInterceptor && ((SoapEndpointInterceptor) interceptor).understands(headerElement)) { return true; } } return false; }
/** * Handles the request for a single SOAP actor/role. Iterates over all {@code MustUnderstand} headers for a * specific SOAP 1.1 actor or SOAP 1.2 role, and determines whether these are understood by any of the registered * {@code SoapEndpointInterceptor}. If they are, returns {@code true}. If they are not, a SOAP fault is * created, and false is returned. * * @see SoapEndpointInterceptor#understands(org.springframework.ws.soap.SoapHeaderElement) */ private boolean headerUnderstood(EndpointInvocationChain mappedEndpoint, SoapHeaderElement headerElement) { EndpointInterceptor[] interceptors = mappedEndpoint.getInterceptors(); if (ObjectUtils.isEmpty(interceptors)) { return false; } for (EndpointInterceptor interceptor : interceptors) { if (interceptor instanceof SoapEndpointInterceptor && ((SoapEndpointInterceptor) interceptor).understands(headerElement)) { return true; } } return false; }
EndpointInterceptor[] interceptors = mappedEndpoint.getInterceptors(); if (interceptors != null) { for (int i = interceptorIndex; i >= 0; i--) {
EndpointInterceptor[] interceptors = mappedEndpoint.getInterceptors(); if (interceptors != null) { for (int i = interceptorIndex; i >= 0; i--) {
EndpointInterceptor[] interceptors = mappedEndpoint.getInterceptors(); if (interceptors != null) { for (int i = interceptorIndex; i >= 0; i--) {
/** * Creates a new {@code SoapEndpointInvocationChain} based on the delegate endpoint, the delegate interceptors, * and set actors/roles. * * @see #setActorsOrRoles(String[]) */ @Override public EndpointInvocationChain getEndpoint(MessageContext messageContext) throws Exception { EndpointInvocationChain delegateChain = delegate.getEndpoint(messageContext); if (delegateChain != null) { return new SoapEndpointInvocationChain(delegateChain.getEndpoint(), delegateChain.getInterceptors(), actorsOrRoles, isUltimateReceiver); } else { return null; } }
/** * Creates a new <code>SoapEndpointInvocationChain</code> based on the delegate endpoint, the delegate interceptors, * and set actors/roles. * * @see #setActorsOrRoles(String[]) */ public EndpointInvocationChain getEndpoint(MessageContext messageContext) throws Exception { EndpointInvocationChain delegateChain = delegate.getEndpoint(messageContext); if (delegateChain != null) { return new SoapEndpointInvocationChain(delegateChain.getEndpoint(), delegateChain.getInterceptors(), actorsOrRoles, isUltimateReceiver); } else { return null; } }
/** * Creates a new {@code SoapEndpointInvocationChain} based on the delegate endpoint, the delegate interceptors, * and set actors/roles. * * @see #setActorsOrRoles(String[]) */ @Override public EndpointInvocationChain getEndpoint(MessageContext messageContext) throws Exception { EndpointInvocationChain delegateChain = delegate.getEndpoint(messageContext); if (delegateChain != null) { return new SoapEndpointInvocationChain(delegateChain.getEndpoint(), delegateChain.getInterceptors(), actorsOrRoles, isUltimateReceiver); } else { return null; } }
/** * Creates a new {@code SoapEndpointInvocationChain} based on the delegate endpoint, the delegate interceptors, * and set actors/roles. * * @see #setActorsOrRoles(String[]) */ @Override public EndpointInvocationChain getEndpoint(MessageContext messageContext) throws Exception { EndpointInvocationChain delegateChain = delegate.getEndpoint(messageContext); if (delegateChain != null) { return new SoapEndpointInvocationChain(delegateChain.getEndpoint(), delegateChain.getInterceptors(), actorsOrRoles, isUltimateReceiver); } else { return null; } }
MessageContext messageContext) throws Exception { if (mappedEndpoint != null && messageContext.hasResponse() && !ObjectUtils.isEmpty(mappedEndpoint.getInterceptors())) { boolean hasFault = false; WebServiceMessage response = messageContext.getResponse(); EndpointInterceptor interceptor = mappedEndpoint.getInterceptors()[i]; if (!hasFault) { resume = interceptor.handleResponse(messageContext, mappedEndpoint.getEndpoint());
MessageContext messageContext) throws Exception { if (mappedEndpoint != null && messageContext.hasResponse() && !ObjectUtils.isEmpty(mappedEndpoint.getInterceptors())) { boolean hasFault = false; WebServiceMessage response = messageContext.getResponse(); EndpointInterceptor interceptor = mappedEndpoint.getInterceptors()[i]; if (!hasFault) { resume = interceptor.handleResponse(messageContext, mappedEndpoint.getEndpoint());
MessageContext messageContext) throws Exception { if (mappedEndpoint != null && messageContext.hasResponse() && !ObjectUtils.isEmpty(mappedEndpoint.getInterceptors())) { boolean hasFault = false; WebServiceMessage response = messageContext.getResponse(); EndpointInterceptor interceptor = mappedEndpoint.getInterceptors()[i]; if (!hasFault) { resume = interceptor.handleResponse(messageContext, mappedEndpoint.getEndpoint());
MessageContext messageContext) throws Exception { if (mappedEndpoint != null && messageContext.hasResponse() && !ObjectUtils.isEmpty(mappedEndpoint.getInterceptors())) { boolean hasFault = false; WebServiceMessage response = messageContext.getResponse(); EndpointInterceptor interceptor = mappedEndpoint.getInterceptors()[i]; if (!hasFault) { resume = interceptor.handleResponse(messageContext, mappedEndpoint.getEndpoint());
if (mappedEndpoint.getInterceptors() != null) { for (int i = 0; i < mappedEndpoint.getInterceptors().length; i++) { EndpointInterceptor interceptor = mappedEndpoint.getInterceptors()[i]; interceptorIndex = i; if (!interceptor.handleRequest(messageContext, mappedEndpoint.getEndpoint())) {
if (mappedEndpoint.getInterceptors() != null) { for (int i = 0; i < mappedEndpoint.getInterceptors().length; i++) { EndpointInterceptor interceptor = mappedEndpoint.getInterceptors()[i]; interceptorIndex = i; if (!interceptor.handleRequest(messageContext, mappedEndpoint.getEndpoint())) {
if (mappedEndpoint.getInterceptors() != null) { for (int i = 0; i < mappedEndpoint.getInterceptors().length; i++) { EndpointInterceptor interceptor = mappedEndpoint.getInterceptors()[i]; interceptorIndex = i; if (!interceptor.handleRequest(messageContext, mappedEndpoint.getEndpoint())) {
if (mappedEndpoint.getInterceptors() != null) { for (int i = 0; i < mappedEndpoint.getInterceptors().length; i++) { EndpointInterceptor interceptor = mappedEndpoint.getInterceptors()[i]; interceptorIndex = i; if (!interceptor.handleRequest(messageContext, mappedEndpoint.getEndpoint())) {