Package org.apache.cxf.binding.xml.interceptor

Examples of org.apache.cxf.binding.xml.interceptor.XMLMessageOutInterceptor


        binding.getInInterceptors().add(new URIParameterInterceptor());

        binding.getOutInterceptors().add(new StaxOutInterceptor());
        binding.getOutInterceptors().add(new ContentTypeOutInterceptor());
        binding.getOutInterceptors().add(new WrappedOutInterceptor());
        binding.getOutInterceptors().add(new XMLMessageOutInterceptor());
       

        binding.getInFaultInterceptors().add(new XMLFaultInInterceptor());
       
        binding.getOutFaultInterceptors().add(new StaxOutInterceptor());
View Full Code Here


        xb.getInInterceptors().add(new XMLMessageInInterceptor());
       
        xb.getOutInterceptors().add(new AttachmentOutInterceptor());
        xb.getOutInterceptors().add(new StaxOutInterceptor());
        xb.getOutInterceptors().add(new WrappedOutInterceptor());
        xb.getOutInterceptors().add(new XMLMessageOutInterceptor());           

        xb.getInFaultInterceptors().add(new XMLFaultInInterceptor());
        xb.getOutFaultInterceptors().add(new StaxOutInterceptor());
        xb.getOutFaultInterceptors().add(new XMLFaultOutInterceptor());
       
View Full Code Here

          
            WrappedOutInterceptor wrappedOut = new WrappedOutInterceptor(Phase.PRE_LOGICAL);
            wrappedOut.addAfter(getId());
            chain.add(wrappedOut);

            final XMLMessageOutInterceptor xmlOut = new XMLMessageOutInterceptor(Phase.PRE_LOGICAL);
            xmlOut.addAfter(wrappedOut.getId());
            chain.add(xmlOut);

            Endpoint ep = message.getExchange().get(Endpoint.class);
            URIMapper mapper = (URIMapper) ep.getService().get(URIMapper.class.getName());
            BindingOperationInfo bop = message.getExchange().get(BindingOperationInfo.class);
           
            String verb = mapper.getVerb(bop);
            message.put(Message.HTTP_REQUEST_METHOD, verb);
            boolean putOrPost = verb.equals(HttpConstants.POST) || verb.equals(HttpConstants.PUT);
           
            if (putOrPost) {
                chain.add(new URIParameterOutInterceptor());
                chain.add(new DocumentWriterInterceptor());
                chain.add(new AbstractPhaseInterceptor<Message>("remove-writer",
                        Phase.PREPARE_SEND) {
                    {
                        addAfter(xmlOut.getId());
                        addBefore(MessageSenderInterceptor.class.getName());
                    }
                    public void handleMessage(Message message) throws Fault {
                        message.removeContent(XMLStreamWriter.class);
                    }
View Full Code Here

          
            WrappedOutInterceptor wrappedOut = new WrappedOutInterceptor(Phase.PRE_LOGICAL);
            wrappedOut.addAfter(getId());
            chain.add(wrappedOut);

            XMLMessageOutInterceptor xmlOut = new XMLMessageOutInterceptor(Phase.PRE_LOGICAL);
            xmlOut.addAfter(wrappedOut.getId());
            chain.add(xmlOut);
           

            Endpoint ep = message.getExchange().get(Endpoint.class);
            URIMapper mapper = (URIMapper) ep.getService().get(URIMapper.class.getName());
View Full Code Here

            xb.getInInterceptors().add(new DocLiteralInInterceptor());
            xb.getInInterceptors().add(new XMLMessageInInterceptor());

            xb.getOutInterceptors().add(new StaxOutInterceptor());
            xb.getOutInterceptors().add(new WrappedOutInterceptor());
            xb.getOutInterceptors().add(new XMLMessageOutInterceptor());           
        }       

        xb.getInFaultInterceptors().add(new XMLFaultInInterceptor());
        xb.getOutFaultInterceptors().add(new StaxOutInterceptor());
        xb.getOutFaultInterceptors().add(new XMLFaultOutInterceptor());
View Full Code Here

            xb.getInInterceptors().add(new AttachmentInInterceptor());   
            xb.getInInterceptors().add(new StaxInInterceptor());
            xb.getOutInterceptors().add(new StaxOutInterceptor());
           
            xb.getInInterceptors().add(new URIMappingInterceptor());
            xb.getOutInterceptors().add(new XMLMessageOutInterceptor());
            xb.getInInterceptors().add(new DocLiteralInInterceptor());
            xb.getInInterceptors().add(new XMLMessageInInterceptor());
        }       

        xb.getInFaultInterceptors().add(new XMLFaultInInterceptor());
View Full Code Here

        xb.getInInterceptors().add(new XMLMessageInInterceptor());
       
        xb.getOutInterceptors().add(new AttachmentOutInterceptor());
        xb.getOutInterceptors().add(new StaxOutInterceptor());
        xb.getOutInterceptors().add(new WrappedOutInterceptor());
        xb.getOutInterceptors().add(new XMLMessageOutInterceptor());           

        xb.getInFaultInterceptors().add(new XMLFaultInInterceptor());
        xb.getOutFaultInterceptors().add(new StaxOutInterceptor());
        xb.getOutFaultInterceptors().add(new XMLFaultOutInterceptor());
       
View Full Code Here

          
            WrappedOutInterceptor wrappedOut = new WrappedOutInterceptor(Phase.PRE_LOGICAL);
            wrappedOut.addAfter(getId());
            chain.add(wrappedOut);

            XMLMessageOutInterceptor xmlOut = new XMLMessageOutInterceptor(Phase.PRE_LOGICAL);
            xmlOut.addAfter(wrappedOut.getId());
            chain.add(xmlOut);
           

            Endpoint ep = message.getExchange().get(Endpoint.class);
            URIMapper mapper = (URIMapper) ep.getService().get(URIMapper.class.getName());
View Full Code Here

TOP

Related Classes of org.apache.cxf.binding.xml.interceptor.XMLMessageOutInterceptor

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.