Examples of PingMeFault


Examples of org.apache.cxf.greeter_control.PingMeFault

        if ((pingMeCount % 2) == 0 || throwAlways) {
            LOG.fine("Throwing PingMeFault while executiong operation pingMe");
            FaultDetail fd = new FaultDetail();
            fd.setMajor((short)2);
            fd.setMinor((short)1);
            throw new PingMeFault("Pings succeed only every other time.", fd);
        } else {
            LOG.fine("Executing operation pingMe");       
        }
    }
View Full Code Here

Examples of org.apache.cxf.greeter_control.PingMeFault

        FaultDetail faultDetail = new FaultDetail();
        faultDetail.setMajor((short)2);
        faultDetail.setMinor((short)1);
        LOG.info("Executing operation pingMe, throwing PingMeFault exception");
        System.out.println("Executing operation pingMe, throwing PingMeFault exception\n");
        throw new PingMeFault("PingMeFault raised by server", faultDetail);       
    }
View Full Code Here

Examples of org.apache.cxf.greeter_control.PingMeFault

        FaultMode mode = MessageUtils.getFaultMode(message);
        if (null != mode) {
            Throwable cause = message.getContent(Exception.class).getCause();
           
            if (FaultMode.CHECKED_APPLICATION_FAULT == mode) {
                PingMeFault original = (PingMeFault)cause;               
                FaultDetail detail = new FaultDetail();
                detail.setMajor((short)20);
                detail.setMinor((short)10);
                PingMeFault replaced = new PingMeFault(original.getMessage(), detail);
                message.setContent(Exception.class, new Fault(replaced));
            } else {
                RuntimeException original = (RuntimeException)cause;
                RuntimeException replaced = new RuntimeException(original.getMessage().toUpperCase());
                message.setContent(Exception.class, new Fault(replaced));               
View Full Code Here

Examples of org.apache.cxf.greeter_control.PingMeFault

        FaultDetail faultDetail = new FaultDetail();
        faultDetail.setMajor((short)2);
        faultDetail.setMinor((short)1);
        LOG.info("Executing operation pingMe, throwing PingMeFault exception");
        System.out.println("Executing operation pingMe, throwing PingMeFault exception\n");
        throw new PingMeFault("PingMeFault raised by server", faultDetail);       
    }
View Full Code Here

Examples of org.apache.cxf.greeter_control.PingMeFault

        if ((pingMeCount % 2) == 0 || throwAlways) {
            LOG.fine("Throwing PingMeFault while executiong operation pingMe");
            FaultDetail fd = new FaultDetail();
            fd.setMajor((short)2);
            fd.setMinor((short)1);
            throw new PingMeFault("Pings succeed only every other time.", fd);
        } else {
            LOG.fine("Executing operation pingMe");       
        }
    }
View Full Code Here

Examples of org.apache.cxf.greeter_control.PingMeFault

        FaultDetail faultDetail = new FaultDetail();
        faultDetail.setMajor((short)2);
        faultDetail.setMinor((short)1);
        LOG.info("Executing operation pingMe, throwing PingMeFault exception");
        //System.out.println("Executing operation pingMe, throwing PingMeFault exception\n");
        throw new PingMeFault("PingMeFault raised by server", faultDetail);       
    }
View Full Code Here

Examples of org.apache.cxf.greeter_control.PingMeFault

        return new RouteBuilder() {
            public void configure() {
                from(SERVICE_URI).process(new Processor() {

                    public void process(Exchange exchng) throws Exception {
                        throw new PingMeFault(MESSAGE);
                    }
                });
            }
        };
    }
View Full Code Here

Examples of org.apache.cxf.greeter_control.PingMeFault

        return new RouteBuilder() {
            public void configure() {
                from(SERVICE_URI).process(new Processor() {

                    public void process(Exchange exchng) throws Exception {
                        throw new PingMeFault(MESSAGE);
                    }
                });
            }
        };
    }
View Full Code Here

Examples of org.apache.cxf.greeter_control.PingMeFault

        FaultDetail faultDetail = new FaultDetail();
        faultDetail.setMajor((short)2);
        faultDetail.setMinor((short)1);
        LOG.info("Executing operation pingMe, throwing PingMeFault exception");
        //System.out.println("Executing operation pingMe, throwing PingMeFault exception\n");
        throw new PingMeFault("PingMeFault raised by server", faultDetail);       
    }
View Full Code Here

Examples of org.apache.cxf.hello_world_corba.PingMeFault

        if ("USER".equals(faultType)) {

            FaultDetail detail = new FaultDetail();
            detail.setMajor((short)1);
            detail.setMinor((short)2);
            throw new PingMeFault("USER FAULT TEST", detail);
        } else if ("SYSTEM".equals(faultType)) {
            throw new Fault(new Message(EX_STRING, (ResourceBundle)null,
                    new Object[]{"FAULT TEST"}));
        } else {
            throw new IllegalArgumentException(EX_STRING);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.