Package org.apache.cxf.io

Examples of org.apache.cxf.io.AbstractCachedOutputStream


                ex.put(IN_EXCHANGE, exchange);
                destination.getMessageObserver().onMessage(inMsg);
            }
        };

        final AbstractCachedOutputStream outStream = new CachedOutputStream(stream);

        message.setContent(OutputStream.class, outStream);

        // TODO: put on executor
        new Thread(receiver).start();
View Full Code Here


           
            message.getInterceptorChain().doIntercept(message);

            try {
                cs.flush();
                AbstractCachedOutputStream csnew = (AbstractCachedOutputStream) message
                    .getContent(OutputStream.class);
                GZIPOutputStream zipOutput = new GZIPOutputStream(os);
                AbstractCachedOutputStream.copyStream(csnew.getInputStream(), zipOutput, 1024);

                cs.close();
                zipOutput.close();
                os.flush();
View Full Code Here

                SOAPMessage soapMessage = message.getContent(SOAPMessage.class);
                if (soapMessage != null) {
                    soapMessage.writeTo(os);
                } else {
                    cs.flush();
                    AbstractCachedOutputStream csnew = (AbstractCachedOutputStream) message
                            .getContent(OutputStream.class);
                    AbstractCachedOutputStream.copyStream(csnew
                            .getInputStream(), os, 64 * 1024);
                    cs.close();
                }

                os.flush();
View Full Code Here

                if (outboundProperty) {
                    MessageFactory factory = MessageFactory.newInstance();
                    MimeHeaders mhs = null;
                    //Safe to do this cast as SOAPHandlerInterceptor has explictly
                    //replaced OutputStream with AbstractCachedOutputStream.
                    AbstractCachedOutputStream out = (AbstractCachedOutputStream)getWrappedMessage()
                        .getContent(OutputStream.class);
                    InputStream is = out.getInputStream();
                    message = factory.createMessage(mhs, is);
                } else {
                    CachedStream cs = new CachedStream();
                    XMLStreamWriter writer = StaxUtils.getXMLOutputFactory().createXMLStreamWriter(cs);
                    XMLStreamReader xmlReader = getWrappedMessage().getContent(XMLStreamReader.class);
View Full Code Here

                ex.put(IN_EXCHANGE, exchange);
                destination.getMessageObserver().onMessage(m);
            }
        };

        final AbstractCachedOutputStream outStream = new CachedOutputStream(stream);

        message.setContent(OutputStream.class, outStream);

        // TODO: put on executor
        new Thread(receiver).start();
View Full Code Here

TOP

Related Classes of org.apache.cxf.io.AbstractCachedOutputStream

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.