Package org.reficio.ws.server.responder

Examples of org.reficio.ws.server.responder.RequestResponder


    @Test
    public void registerCheck() {
        String contextPath = "/test";
        SoapServer server = getServer();
        server.registerRequestResponder(contextPath, new RequestResponder() {
            @Override
            public Source respond(SoapMessage message) {
                return null;
            }
        });
View Full Code Here


    @Test
    public void unregisterCheck() {
        String contextPath = "/test";
        SoapServer server = getServer();
        server.registerRequestResponder(contextPath, new RequestResponder() {
            @Override
            public Source respond(SoapMessage message) {
                return null;
            }
        });
View Full Code Here

    @Test(expected = ServiceRegistrationException.class)
    public void doubleRegister() {
        String contextPath = "/test";
        SoapServer server = getServer();
        server.registerRequestResponder(contextPath, new RequestResponder() {
            @Override
            public Source respond(SoapMessage message) {
                return null;
            }
        });
        server.registerRequestResponder(contextPath, new RequestResponder() {
            @Override
            public Source respond(SoapMessage message) {
                return null;
            }
        });
View Full Code Here

    }

    @Test(expected = NullPointerException.class)
    public void registerNullContextPath() {
        SoapServer server = getServer();
        server.registerRequestResponder(null, new RequestResponder() {
            @Override
            public Source respond(SoapMessage message) {
                return null;
            }
        });
View Full Code Here

     * SOAP envelope (and not only the request element);
     * The responders are invoked with that context. If there's no responder an exception is thrown.
     */
    @Override
    public Source invoke(MessageContext messageContext) {
        RequestResponder requestResponder = getRequestResponderBySessionRequestContextPath();
        if (noResponderForRequestFound(requestResponder)) {
            handleNoResponderFault();
        }
        SoapMessage msg = (SoapMessage) messageContext.getRequest();
        Source response = requestResponder.respond(msg);
        return response;
    }
View Full Code Here

TOP

Related Classes of org.reficio.ws.server.responder.RequestResponder

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.