Package org.springframework.ws.soap.server

Examples of org.springframework.ws.soap.server.SoapEndpointInvocationChain


     */
    @Override
    protected final EndpointInvocationChain createEndpointInvocationChain(MessageContext messageContext,
                                                                          Object endpoint,
                                                                          EndpointInterceptor[] interceptors) {
        return new SoapEndpointInvocationChain(endpoint, interceptors, actorsOrRoles, isUltimateReceiver);
    }
View Full Code Here


     */
    @Override
    protected final EndpointInvocationChain createEndpointInvocationChain(MessageContext messageContext,
                                                                          Object endpoint,
                                                                          EndpointInterceptor[] interceptors) {
        return new SoapEndpointInvocationChain(endpoint, interceptors, actorsOrRoles, isUltimateReceiver);
    }
View Full Code Here

     */
    @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;
        }
View Full Code Here

      interceptors.addAll(Arrays.asList(preInterceptors));
      interceptors.add(addressingInterceptor);
      interceptors.addAll(Arrays.asList(postInterceptors));
      interceptors.addAll(Arrays.asList(smartInterceptors));

      return new SoapEndpointInvocationChain(endpoint,
          interceptors.toArray(new EndpointInterceptor[interceptors.size()]), actorsOrRoles, isUltimateReceiver);
    }
View Full Code Here

        EndpointInvocationChain delegateChain = new EndpointInvocationChain(new Object());
        expect(mock.getEndpoint(context)).andReturn(delegateChain);

        replay(mock);

        SoapEndpointInvocationChain resultChain = (SoapEndpointInvocationChain) endpointMapping.getEndpoint(context);
        Assert.assertNotNull("No chain returned", resultChain);
        Assert.assertEquals("Invalid ampount of roles returned", 1, resultChain.getActorsOrRoles().length);
        Assert.assertEquals("Invalid role returned", role, resultChain.getActorsOrRoles()[0]);

        verify(mock);
    }
View Full Code Here

    protected final EndpointInvocationChain createEndpointInvocationChain(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors) {
        for (EndpointMappingKey key : endpoints.keySet()) {
            if (EndpointMappingType.SOAP_ACTION.equals(key.getType())) {
                Object messageKey = getSoapAction(messageContext);
                if (messageKey != null && key.getLookupKey().equals(messageKey)) {
                    return new SoapEndpointInvocationChain(endpoint, interceptors);
                    // possibly add support for SOAP actors/roles and ultimate
                    // receiver in the future
                }
            }
        }
View Full Code Here

    protected final EndpointInvocationChain createEndpointInvocationChain(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors) {
        for (EndpointMappingKey key : endpoints.keySet()) {
            if (EndpointMappingType.SOAP_ACTION.equals(key.getType())) {
                Object messageKey = getSoapAction(messageContext);
                if (messageKey != null && key.getLookupKey().equals(messageKey)) {
                    return new SoapEndpointInvocationChain(endpoint, interceptors, actorsOrRoles, isUltimateReceiver);
                }
            }
        }
        return super.createEndpointInvocationChain(messageContext, endpoint, interceptors);
    }
View Full Code Here

        System.arraycopy(preInterceptors, 0, interceptors, 0, preInterceptors.length);
        AddressingEndpointInterceptor interceptor = new AddressingEndpointInterceptor(version, messageIdStrategy,
                messageSenders, responseAction, faultAction);
        interceptors[preInterceptors.length] = interceptor;
        System.arraycopy(postInterceptors, 0, interceptors, preInterceptors.length + 1, postInterceptors.length);
        return new SoapEndpointInvocationChain(endpoint, interceptors, actorsOrRoles, isUltimateReceiver);
    }
View Full Code Here

TOP

Related Classes of org.springframework.ws.soap.server.SoapEndpointInvocationChain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.