Package org.apache.cxf.io

Examples of org.apache.cxf.io.AbstractWrappedOutputStream


            throw new IllegalStateException("Local destination does not have a MessageObserver on address "
                                            + destination.getAddress().getAddress().getValue());
        }
       
       
        AbstractWrappedOutputStream cout
            = new AbstractWrappedOutputStream() {
                protected void onFirstWrite() throws IOException {
                    final PipedInputStream stream = new PipedInputStream();
                    wrappedStream = new PipedOutputStream(stream);

                    final MessageImpl inMsg = new MessageImpl();
View Full Code Here


        public void prepare(final Message message) throws IOException {           
            if (!Boolean.TRUE.equals(message.getExchange().get(LocalConduit.DIRECT_DISPATCH))) {
                final Exchange exchange = (Exchange)message.getExchange().get(LocalConduit.IN_EXCHANGE);

                AbstractWrappedOutputStream cout
                    = new AbstractWrappedOutputStream() {
                        protected void onFirstWrite() throws IOException {
                            final PipedInputStream stream = new PipedInputStream();
                            wrappedStream = new PipedOutputStream(stream);

                            final MessageImpl m = new MessageImpl();
View Full Code Here

            throw new IllegalStateException("Local destination does not have a MessageObserver on address "
                                            + destination.getAddress().getAddress().getValue());
        }
       
       
        AbstractWrappedOutputStream cout
            = new AbstractWrappedOutputStream() {
                protected void onFirstWrite() throws IOException {
                    final PipedInputStream stream = new PipedInputStream();
                    wrappedStream = new PipedOutputStream(stream);

                    final MessageImpl inMsg = new MessageImpl();
View Full Code Here

            throw new IllegalStateException("Local destination does not have a MessageObserver on address "
                                            + destination.getAddress().getAddress().getValue());
        }
       
       
        AbstractWrappedOutputStream cout
            = new LocalConduitOutputStream(conduit, exchange, message);
        message.setContent(OutputStream.class, cout);
    }
View Full Code Here

        public void prepare(final Message message) throws IOException {           
            if (!Boolean.TRUE.equals(message.getExchange().get(LocalConduit.DIRECT_DISPATCH))) {
                final Exchange exchange = (Exchange)message.getExchange().get(LocalConduit.IN_EXCHANGE);

                AbstractWrappedOutputStream cout
                    = new LocalDestinationOutputStream(exchange, message);
               
                message.setContent(OutputStream.class, cout);   
               
            } else {
View Full Code Here

        // Add a final interceptor to write end elements
        message.getInterceptorChain().add(ENDING);
    }
    private OutputStream setupOutputStream(Message message, OutputStream os) {
        if (!(os instanceof AbstractWrappedOutputStream)) {
            os = new AbstractWrappedOutputStream(os) { };
        }
        ((AbstractWrappedOutputStream)os).allowFlush(false);
        return os;
    }
View Full Code Here

        // Add a final interceptor to write end elements
        message.getInterceptorChain().add(ENDING);
    }
    private OutputStream setupOutputStream(Message message, OutputStream os) {
        if (!(os instanceof AbstractWrappedOutputStream)) {
            os = new AbstractWrappedOutputStream(os) { };
        }
        ((AbstractWrappedOutputStream)os).allowFlush(false);
        return os;
    }
View Full Code Here

        if (destination.getMessageObserver() == null) {
            throw new IllegalStateException("Local destination does not have a MessageObserver on address "
                                            + destination.getAddress().getAddress().getValue());
        }
       
        AbstractWrappedOutputStream cout
            = new LocalConduitOutputStream(conduit, exchange, message);
        message.setContent(OutputStream.class, cout);
    }
View Full Code Here

        public void prepare(final Message message) throws IOException {           
            if (!Boolean.TRUE.equals(message.getExchange().get(LocalConduit.DIRECT_DISPATCH))) {
                final Exchange exchange = (Exchange)message.getExchange().get(LocalConduit.IN_EXCHANGE);

                AbstractWrappedOutputStream cout
                    = new LocalDestinationOutputStream(exchange, message);
               
                message.setContent(OutputStream.class, cout);   
               
            } else {
View Full Code Here

            throw new IllegalStateException("Local destination does not have a MessageObserver on address "
                                            + destination.getAddress().getAddress().getValue());
        }
       
       
        AbstractWrappedOutputStream cout
            = new LocalConduitOutputStream(conduit, exchange, message);
        message.setContent(OutputStream.class, cout);
    }
View Full Code Here

TOP

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

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.