Package org.apache.cxf.interceptor

Examples of org.apache.cxf.interceptor.ClientFaultConverter


        createBinding(endpointInfo.getBinding());
       
        inFaultObserver = new InFaultChainInitiatorObserver(bus);
        outFaultObserver = new OutFaultChainInitiatorObserver(bus);

        getInFaultInterceptors().add(new ClientFaultConverter());
        getOutInterceptors().add(new MessageSenderInterceptor());
        getOutFaultInterceptors().add(new MessageSenderInterceptor());
    }
View Full Code Here


        createBinding(endpointInfo.getBinding());
       
        inFaultObserver = new InFaultChainInitiatorObserver(bus);
        outFaultObserver = new OutFaultChainInitiatorObserver(bus);

        getInFaultInterceptors().add(new ClientFaultConverter());
        getOutInterceptors().add(new MessageSenderInterceptor());
        getOutFaultInterceptors().add(new MessageSenderInterceptor());
    }
View Full Code Here

        List<Interceptor> out = super.getOutInterceptors();
        out.addAll(handlerInterceptors);
        out.add(new WrapperClassOutInterceptor());
        out.add(new HolderOutInterceptor());
       
        getInFaultInterceptors().add(new ClientFaultConverter());
    }
View Full Code Here

        xmlMessage.setContent(Exception.class, new Fault(new RuntimeException("dummy exception")));
        XMLFaultOutInterceptor xfo = new XMLFaultOutInterceptor();
        xfo.setPhase("phase1");
        chain.add(xfo);
        InHelpInterceptor ih = new InHelpInterceptor();
        ClientFaultConverter cfc = new ClientFaultConverter();
        XMLFaultInInterceptor xfi = new XMLFaultInInterceptor();
        ih.setPhase("phase2");
        cfc.setPhase("phase3");
        xfi.setPhase("phase3");
        chain.add(ih);
        chain.add(cfc);
        chain.add(xfi);
        chain.doIntercept(xmlMessage);
View Full Code Here

        createBinding(endpointInfo.getBinding());
       
        inFaultObserver = new InFaultChainInitiatorObserver(bus);
        outFaultObserver = new OutFaultChainInitiatorObserver(bus);

        getInFaultInterceptors().add(new ClientFaultConverter());
        getOutInterceptors().add(new MessageSenderInterceptor());
        getOutFaultInterceptors().add(new MessageSenderInterceptor());
    }
View Full Code Here

        createBinding(endpointInfo.getBinding());
       
        inFaultObserver = new InFaultChainInitiatorObserver(bus);
        outFaultObserver = new OutFaultChainInitiatorObserver(bus);

        getInFaultInterceptors().add(new ClientFaultConverter());
        getOutInterceptors().add(new MessageSenderInterceptor());
        getOutFaultInterceptors().add(new MessageSenderInterceptor());
    }
View Full Code Here

        createBinding(endpointInfo.getBinding());
       
        inFaultObserver = new InFaultChainInitiatorObserver(bus);
        outFaultObserver = new OutFaultChainInitiatorObserver(bus);

        getInFaultInterceptors().add(new ClientFaultConverter());
        getOutInterceptors().add(new MessageSenderInterceptor());
        getOutFaultInterceptors().add(new MessageSenderInterceptor());
    }
View Full Code Here

        xmlMessage.setContent(XMLStreamWriter.class, StaxUtils.createXMLStreamWriter(baos));
        xmlMessage.setContent(Exception.class, new Fault(new RuntimeException("dummy exception")));
        XMLFaultOutInterceptor xfo = new XMLFaultOutInterceptor("phase1");
        chain.add(xfo);
        InHelpInterceptor ih = new InHelpInterceptor("phase2");
        ClientFaultConverter cfc = new ClientFaultConverter("phase3");
        XMLFaultInInterceptor xfi = new XMLFaultInInterceptor("phase3");
        chain.add(ih);
        chain.add(cfc);
        chain.add(xfi);
        chain.doIntercept(xmlMessage);
View Full Code Here

        createBinding(endpointInfo.getBinding());
       
        inFaultObserver = new InFaultChainInitiatorObserver(bus);
        outFaultObserver = new OutFaultChainInitiatorObserver(bus);

        getInFaultInterceptors().add(new ClientFaultConverter());
        getOutInterceptors().add(new MessageSenderInterceptor());
        getOutFaultInterceptors().add(new MessageSenderInterceptor());
    }
View Full Code Here

        xmlMessage.setContent(XMLStreamWriter.class, StaxUtils.createXMLStreamWriter(baos));
        xmlMessage.setContent(Exception.class, new Fault(new RuntimeException("dummy exception")));
        XMLFaultOutInterceptor xfo = new XMLFaultOutInterceptor("phase1");
        chain.add(xfo);
        InHelpInterceptor ih = new InHelpInterceptor("phase2");
        ClientFaultConverter cfc = new ClientFaultConverter("phase3");
        XMLFaultInInterceptor xfi = new XMLFaultInInterceptor("phase3");
        chain.add(ih);
        chain.add(cfc);
        chain.add(xfi);
        chain.doIntercept(xmlMessage);
View Full Code Here

TOP

Related Classes of org.apache.cxf.interceptor.ClientFaultConverter

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.