Examples of FaultMode


Examples of org.apache.cxf.message.FaultMode

            } catch (RuntimeException exception) {
                Exchange exchange = message.getExchange();
               
                Exception ex = new Fault(exception);

                FaultMode mode = message.get(FaultMode.class);               
               
                Message faultMessage = exchange.getOutMessage();
                if (null == faultMessage) {
                    faultMessage = new MessageImpl();
                    faultMessage.setExchange(message.getExchange());
View Full Code Here

Examples of org.apache.cxf.message.FaultMode

                //if exception occurs while writing a fault, we'll just let things continue
                //and let the rest of the chain try handling it as is.
                LOG.log(Level.WARNING, "EXCEPTION_WHILE_WRITING_FAULT", nex);
            }
        } else {
            FaultMode mode = message.get(FaultMode.class);
            if (mode == FaultMode.CHECKED_APPLICATION_FAULT) {
                //only convert checked exceptions with this
                //otherwise delegate down to the normal protocol specific stuff
                super.handleMessage(message);
            }
View Full Code Here

Examples of org.apache.cxf.message.FaultMode

            } catch (RuntimeException ex) {
                if (!faultOccurred) {
                    faultOccurred = true;
                                       
                    FaultMode mode = message.get(FaultMode.class);
                    if (mode == FaultMode.CHECKED_APPLICATION_FAULT) {
                        if (LOG.isLoggable(Level.FINE)) {
                            LogUtils.log(LOG, Level.FINE,
                                         "Application has thrown exception, unwinding now", ex);
                        } else if (LOG.isLoggable(Level.INFO)) {
View Full Code Here

Examples of org.apache.cxf.message.FaultMode

                //if exception occurs while writing a fault, we'll just let things continue
                //and let the rest of the chain try handling it as is.
                LOG.log(Level.WARNING, "EXCEPTION_WHILE_WRITING_FAULT", nex);
            }
        } else {
            FaultMode mode = message.get(FaultMode.class);
            if (mode == FaultMode.CHECKED_APPLICATION_FAULT) {
                //only convert checked exceptions with this
                //otherwise delegate down to the normal protocol specific stuff
                super.handleMessage(message);
            }
View Full Code Here

Examples of org.apache.cxf.message.FaultMode

            }
        }
    }
   
    boolean isRuntimeFault(Message message) {
        FaultMode mode = MessageUtils.getFaultMode(message);
        if (null == mode) {
            return false;
        }
        return FaultMode.CHECKED_APPLICATION_FAULT != mode;
    }
View Full Code Here

Examples of org.apache.cxf.message.FaultMode

        objectName = on;    
    }
   
    public void  increase(MessageHandlingTimeRecorder mhtr) {
        invocations.getAndIncrement();
        FaultMode faultMode = mhtr.getFaultMode();
        if (null == faultMode) {
            // no exception occured
        } else {
            switch (faultMode) {
            case CHECKED_APPLICATION_FAULT:
View Full Code Here

Examples of org.apache.cxf.message.FaultMode

            } catch (RuntimeException ex) {
                if (!faultOccurred) {
                    faultOccurred = true;
                                       
                    FaultMode mode = message.get(FaultMode.class);
                    if (mode == FaultMode.CHECKED_APPLICATION_FAULT) {
                        if (LOG.isLoggable(Level.FINE)) {
                            LogUtils.log(LOG, Level.FINE,
                                         "Application has thrown exception, unwinding now", ex);
                        } else if (LOG.isLoggable(Level.INFO)) {
View Full Code Here

Examples of org.apache.cxf.message.FaultMode

            }
        }
    }
   
    boolean isRuntimeFault(Message message) {
        FaultMode mode = MessageUtils.getFaultMode(message);
        if (null == mode) {
            return false;
        }
        return FaultMode.CHECKED_APPLICATION_FAULT != mode;
    }
View Full Code Here

Examples of org.apache.cxf.message.FaultMode

            if (isOutboundObserver()) {
                Exception ex = message.getContent(Exception.class);
                if (!(ex instanceof Fault)) {
                    ex = new Fault(ex);
                }
                FaultMode mode = (FaultMode)message.get(FaultMode.class);
               
                faultMessage = exchange.getOutMessage();
                if (null == faultMessage) {
                    faultMessage = new MessageImpl();
                    faultMessage.setExchange(exchange);
View Full Code Here

Examples of org.apache.cxf.message.FaultMode

            if (isOutboundObserver()) {
                Exception ex = message.getContent(Exception.class);
                if (!(ex instanceof Fault)) {
                    ex = new Fault(ex);
                }
                FaultMode mode = message.get(FaultMode.class);
               
                faultMessage = exchange.getOutMessage();
                if (null == faultMessage) {
                    faultMessage = new MessageImpl();
                    faultMessage.setExchange(exchange);
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.