Package org.apache.cxf.interceptor

Examples of org.apache.cxf.interceptor.StaxInInterceptor


        getService().getInInterceptors().add(new AttachmentInInterceptor());
        getService().getInInterceptors().add(new SoapHeaderInterceptor());
        getService().getInInterceptors().add(new CheckFaultInterceptor());
        getService().getInInterceptors().add(new URIMappingInterceptor());

        getService().getInInterceptors().add(new StaxInInterceptor());
        getService().getInInterceptors().add(new SoapActionInInterceptor());

        getService().getOutInterceptors().add(new DataOutInterceptor());
        getService().getOutInterceptors().add(new SoapActionOutInterceptor());
        getService().getOutInterceptors().add(new AttachmentOutInterceptor());
View Full Code Here


    private SoapOutInterceptor soi;

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

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

    public Binding createBinding(BindingInfo binding) {
        JBIBindingInfo bindingInfo = (JBIBindingInfo) binding;
        JBIBinding jb = new JBIBinding(bindingInfo);
       
        jb.getInInterceptors().add(new StaxInInterceptor());
        jb.getInInterceptors().add(new JBIOperationInInterceptor());
        jb.getInInterceptors().add(new JBIWrapperInInterceptor());
        jb.getOutInterceptors().add(new StaxOutInterceptor());
        jb.getOutInterceptors().add(new JBIWrapperOutInterceptor());
        jb.getOutFaultInterceptors().add(new StaxOutInterceptor());
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 AttachmentOutInterceptor());
            sb.getOutInterceptors().add(new StaxOutInterceptor());
            sb.getOutInterceptors().add(new SoapHeaderOutFilterInterceptor());
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 AttachmentInInterceptor().handleMessage(message);
                    new StaxInInterceptor().handleMessage(message);
                   
                    DataReader<XMLStreamReader> dataReader = new XMLStreamDataReader();
                    Class readType = type;
                    if (!Source.class.isAssignableFrom(type)) {
                        readType = Source.class;
View Full Code Here

    private StartBodyInterceptor sbi;

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

        rhi = new ReadHeadersInterceptor(BusFactory.getDefaultBus(), "phase2");
        chain.add(rhi);
        sbi = new StartBodyInterceptor("phase1.5");
View Full Code Here

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

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

                    return new SoapMessage(message);
                }
            };

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

            // This will not work if one of the endpoints disables message
            // processing. But, if you've disabled message processing, you
            // probably aren't going to use this feature.
           
View Full Code Here

            chain.add(new OutgoingChainInterceptor());
           
            // add JAX-WS interceptors
            // See http://cwiki.apache.org/CXF20DOC/interceptors.html
            chain.add(new AttachmentInInterceptor());
            chain.add(new StaxInInterceptor());
            chain.add(new ReadHeadersInterceptor(bus));
            chain.add(new SoapActionInInterceptor());
            chain.add(new SoapHeaderInterceptor());
            chain.add(new WrapperClassInInterceptor());
            chain.add(new HolderInInterceptor());
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.