Package org.apache.cxf.binding.soap.interceptor

Examples of org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor


    }

    // do not handle any payload information here
    private void initializeSoapInterceptors() {
        getService().getInInterceptors().add(new DataInInterceptor());
        getService().getInInterceptors().add(new ReadHeadersInterceptor(getBus()));
        getService().getInInterceptors().add(new MustUnderstandInterceptor());
        getService().getInInterceptors().add(new AttachmentInInterceptor());
        getService().getInInterceptors().add(new SoapHeaderInterceptor());
        getService().getInInterceptors().add(new CheckFaultInterceptor());
        getService().getInInterceptors().add(new URIMappingInterceptor());
View Full Code Here


    private SAAJInInterceptor saajIntc;

    public void setUp() throws Exception {
        super.setUp();

        rhi = new ReadHeadersInterceptor();
        rhi.setPhase("phase1");
        chain.add(rhi);

        saajIntc = new SAAJInInterceptor();
        saajIntc.setPhase("phase2");
View Full Code Here

    private StaxInInterceptor staxIntc = new StaxInInterceptor();

    public void setUp() throws Exception {
        super.setUp();

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

        InputStream in = getClass().getResourceAsStream("test-bad-env.xml");
        assertNotNull(in);
        ByteArrayDataSource bads = new ByteArrayDataSource(in, "test/xml");
        soapMessage.setContent(InputStream.class, bads.getInputStream());

        ReadHeadersInterceptor r = new ReadHeadersInterceptor();
        try {
            r.handleMessage(soapMessage);
            fail("Did not throw exception");
        } catch (SoapFault f) {
            assertEquals(Soap11.getInstance().getVersionMismatch(), f.getFaultCode());
        }
    }
View Full Code Here

        super.setUp();
        StaxInInterceptor sii = new StaxInInterceptor();
        sii.setPhase("phase1");
        chain.add(sii);

        rhi = new ReadHeadersInterceptor();
        rhi.setPhase("phase2");
        chain.add(rhi);

        soi = new SoapOutInterceptor();
        soi.setPhase("phase3");
View Full Code Here

            }
            sb.getInInterceptors().add(new SoapHeaderInterceptor());
        }
       
        if (!Boolean.TRUE.equals(binding.getProperty(MESSAGE_PROCESSING_DISABLED))) {
            sb.getInInterceptors().add(new ReadHeadersInterceptor());
            sb.getInInterceptors().add(new MustUnderstandInterceptor());
            sb.getOutInterceptors().add(new SoapPreProtocolOutInterceptor());
            sb.getOutInterceptors().add(new SoapOutInterceptor());
            sb.getOutFaultInterceptors().add(new SoapOutInterceptor());
View Full Code Here

            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());

            // Add in a default selection interceptor
            newMO.getRoutingInterceptors().add(new EndpointSelectionInterceptor());
           
            newMO.getEndpoints().add(cio.getEndpoint());
View Full Code Here

        SoapMessage soapMessage = new SoapMessage(message);
        InputStream is = RMSoapInterceptorTest.class.getResourceAsStream(resource);
        assertNotNull(is);
        XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(is);
        soapMessage.setContent(XMLStreamReader.class, reader);
        ReadHeadersInterceptor rji = new ReadHeadersInterceptor();
        rji.handleMessage(soapMessage);
        return soapMessage;
    }
View Full Code Here

    public void setUp() throws Exception {

        super.setUp();

        rhi = new ReadHeadersInterceptor();
        rhi.setPhase("phase1");
        chain.add(rhi);

        mui = new MustUnderstandInterceptor();
        mui.setPhase("phase2");
View Full Code Here

            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(
                    new JbiInWsdl1Interceptor(isUseJBIWrapper()));
            cxfService.getInInterceptors().add(new JbiInInterceptor());
View Full Code Here

TOP

Related Classes of org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor

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.