Package org.springframework.ws.soap.addressing.server.annotation

Examples of org.springframework.ws.soap.addressing.server.annotation.Action


     * Returns the action value for the specified method. Default implementation looks for the {@link Action} annotation
     * value.
     */
    @Override
    protected URI getActionForMethod(Method method) {
        Action action = method.getAnnotation(Action.class);
        if (action != null && StringUtils.hasText(action.value())) {
            try {
                return new URI(action.value());
            }
            catch (URISyntaxException e) {
                throw new IllegalArgumentException(
                        "Invalid Action annotation [" + action.value() + "] on [" + method + "]");
            }
        }
        return null;
    }
View Full Code Here


    }

    @Override
    protected URI getResponseAction(Object endpoint, MessageAddressingProperties map) {
        MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint;
        Action action = methodEndpoint.getMethod().getAnnotation(Action.class);
        if (action != null && StringUtils.hasText(action.output())) {
            return getActionUri(action.output(), methodEndpoint);
        }
        else {
            return super.getResponseAction(endpoint, map);
        }
    }
View Full Code Here

    }

    @Override
    protected URI getFaultAction(Object endpoint, MessageAddressingProperties map) {
        MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint;
        Action action = methodEndpoint.getMethod().getAnnotation(Action.class);
        if (action != null && StringUtils.hasText(action.fault())) {
            return getActionUri(action.fault(), methodEndpoint);
        }
        else {
            return super.getResponseAction(endpoint, map);
        }
    }
View Full Code Here

TOP

Related Classes of org.springframework.ws.soap.addressing.server.annotation.Action

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.