Package org.jibx.ws.example.headers.common

Examples of org.jibx.ws.example.headers.common.QOS


     * @param outCtx outbound message context
     * @return welcome message
     */
    public Welcome welcomeService(Greetee greeetee, InContext inCtx, OutContext outCtx) {
        Locale locale = (Locale) inCtx.getAttribute("example.locale");
        QOS qos = null;
        String greeting = "Hi";
        if (locale != null) {
            if (locale.getLanguage().equals("en")) {
                greeting = "Hello";
                qos = new QOS(8, "OK");
            } else if (locale.getLanguage().equals("fr")) {
                greeting = "Bonjour";
                qos = new QOS(9, "Très bon");
            }
        }
        outCtx.setAttribute("comm.qos", qos);
       
        return new Welcome(greeting + " " + greeetee.getName() + "!");
View Full Code Here

TOP

Related Classes of org.jibx.ws.example.headers.common.QOS

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.