Package org.openengsb.core.common.remote

Examples of org.openengsb.core.common.remote.RequestMapperFilter


    }

    @Test(timeout = 100000)
    public void testStart_ShouldListenToIncomingCallsAndCallSetRequestHandler() throws Exception {
        FilterChainFactory<String, String> factory = new FilterChainFactory<String, String>(String.class, String.class);
        factory.setFilters(Arrays.asList(JsonMethodCallMarshalFilter.class, new RequestMapperFilter(handler)));
        incomingPort.setFilterChain(factory.create());
        incomingPort.start();

        String resultString = sendWithTempQueue(METHOD_CALL_REQUEST);
View Full Code Here


            EncryptedJsonMessageMarshaller.class,
            cipherFactory,
            JsonSecureRequestMarshallerFilter.class,
            MessageVerifierFilter.class,
            new MessageAuthenticatorFilterFactory(new DefaultOsgiUtilsService(bundleContext), new ShiroContext()),
            new RequestMapperFilter(handler)));
        FilterChain secureChain = factory.create();
        return secureChain;
    }
View Full Code Here

    public void testPortWithXmlFormat_shouldWorkWithXmlFilterChain() throws Exception {
        FilterChainFactory<String, String> factory = new FilterChainFactory<String, String>(String.class, String.class);
        factory.setFilters(Arrays.asList(
            XmlDecoderFilter.class,
            XmlMethodCallMarshalFilter.class,
            new RequestMapperFilter(handler)));
        incomingPort.setFilterChain(factory.create());
        incomingPort.start();

        String resultString = sendWithTempQueue(XML_METHOD_CALL_REQUEST);
View Full Code Here

            public MethodResult answer(InvocationOnMock invocation) throws Throwable {
                MethodCall input = (MethodCall) invocation.getArguments()[0];
                return new MethodResult(input.getArgs()[0]);
            }
        });
        requestMapperFilter = new RequestMapperFilter(requestHandlerMock);
    }
View Full Code Here

                MethodResultMessage.class);
        List<Object> filterFactories = new LinkedList<Object>();
        filterFactories.add(MessageVerifierFilter.class);
        filterFactories.add(new MessageAuthenticatorFilterFactory(new DefaultOsgiUtilsService(bundleContext),
                new ShiroContext()));
        filterFactories.add(new RequestMapperFilter(requestHandler));
        factory.setFilters(filterFactories);
        factory.create();

        filterTop = factory;
View Full Code Here

TOP

Related Classes of org.openengsb.core.common.remote.RequestMapperFilter

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.