Package org.apache.cxf.interceptor

Examples of org.apache.cxf.interceptor.StaxInInterceptor


    private ReadHeadersInterceptor rhi;
    private SoapOutInterceptor soi;

    public void setUp() throws Exception {
        super.setUp();
        StaxInInterceptor sii = new StaxInInterceptor();
        sii.setPhase("phase1");
        chain.add(sii);

        rhi = new ReadHeadersInterceptor();
        rhi.setPhase("phase2");
        chain.add(rhi);
View Full Code Here


        } else {
            throw new RuntimeException("Can not initialize SoapBinding, BindingInfo is not SoapBindingInfo");
        }

        sb.getInInterceptors().add(new AttachmentInInterceptor());
        sb.getInInterceptors().add(new StaxInInterceptor());
       
        sb.getOutInterceptors().add(new SoapActionInterceptor());
        sb.getOutInterceptors().add(new AttachmentOutInterceptor());
        sb.getOutInterceptors().add(new StaxOutInterceptor());
       
View Full Code Here

                    return new SoapMessage(message);
                }
            };
           
            newMO.getBindingInterceptors().add(new AttachmentInInterceptor());
            newMO.getBindingInterceptors().add(new StaxInInterceptor());
           
            // This will not work if we one of the endpoints disables message
            // processing. But, if you've disabled message processing, you
            // probably aren't going to use this feature.
            newMO.getBindingInterceptors().add(new ReadHeadersInterceptor());
View Full Code Here

    public Binding createBinding(BindingInfo binding) {
        XMLBinding xb = new XMLBinding(binding);
       
        xb.getInInterceptors().add(new AttachmentInInterceptor());
        xb.getInInterceptors().add(new StaxInInterceptor());
       
        xb.getInFaultInterceptors().add(new XMLFaultInInterceptor());
       
        xb.getOutInterceptors().add(new StaxOutInterceptor());
       
View Full Code Here

public class JBIBindingFactory extends AbstractBindingFactory {

    public Binding createBinding(BindingInfo binding) {
        JBIBinding jb = new JBIBinding((JBIBindingInfo) binding);
        jb.getInInterceptors().add(new JBIOperationInInterceptor());
        jb.getInInterceptors().add(new StaxInInterceptor());
        jb.getInInterceptors().add(new JBIWrapperInInterceptor());
       
        jb.getOutInterceptors().add(new StaxOutInterceptor());
        jb.getOutInterceptors().add(new JBIWrapperOutInterceptor());
View Full Code Here

            ei.getBinding().setProperty(
                    AbstractBindingFactory.DATABINDING_DISABLED, Boolean.TRUE);

            cxfService.getInInterceptors().add(new MustUnderstandInterceptor());
            cxfService.getInInterceptors().add(new AttachmentInInterceptor());
            cxfService.getInInterceptors().add(new StaxInInterceptor());
            cxfService.getInInterceptors().add(
                    new ReadHeadersInterceptor(getBus()));
            cxfService.getInInterceptors().add(
                    new JbiOperationInterceptor());
            cxfService.getInInterceptors().add(
View Full Code Here

            PhaseManager pm = providerEndpoint.getBus().getExtension(
                    PhaseManager.class);
            List<Interceptor> inList = new ArrayList<Interceptor>();
            inList.add(new ReadHeadersInterceptor(this.providerEndpoint.getBus()));
            inList.add(new MustUnderstandInterceptor());
            inList.add(new StaxInInterceptor());
            inList.add(new JbiInWsdl1Interceptor(this.providerEndpoint.isUseJBIWrapper()));
            if (providerEndpoint.isMtomEnabled()) {
                inList.add(new AttachmentInInterceptor());
            }
            PhaseInterceptorChain inChain = inboundChainCache.get(pm
View Full Code Here

        sb.getOutFaultInterceptors().add(new SoapOutInterceptor(getBus()));

        //Do not add any interceptors if it is Provider/Dispatch
        if (!Boolean.TRUE.equals(binding.getProperty(DATABINDING_DISABLED))) {
            sb.getInInterceptors().add(new AttachmentInInterceptor());
            sb.getInInterceptors().add(new StaxInInterceptor());
            sb.getInInterceptors().add(new SoapActionInInterceptor());
           
            sb.getOutInterceptors().add(new SoapActionOutInterceptor());
            sb.getOutInterceptors().add(new AttachmentOutInterceptor());
            sb.getOutInterceptors().add(new StaxOutInterceptor());
View Full Code Here

                    return new SoapMessage(message);
                }
            };

            newMO.getBindingInterceptors().add(new AttachmentInInterceptor());
            newMO.getBindingInterceptors().add(new StaxInInterceptor());

            // This will not work if we one of the endpoints disables message
            // processing. But, if you've disabled message processing, you
            // probably aren't going to use this feature.
            newMO.getBindingInterceptors().add(new ReadHeadersInterceptor(getBus()));
View Full Code Here

                    }
                    //Treat DataSource specially here as it is not valid to call getPayload from
                    //LogicalHandler for DataSource payload
                    message.setContent(DataSource.class, obj)
                } else {                
                    new StaxInInterceptor().handleMessage(message);
                   
                    DataReader<XMLStreamReader> dataReader = new XMLStreamDataReader();
                    Class readType = type;
                    if (!Source.class.isAssignableFrom(type)) {
                        readType = Source.class;
View Full Code Here

TOP

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

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.