Package com.sun.grizzly.util

Examples of com.sun.grizzly.util.ByteBufferInputStream


    public void initialize(boolean secure){
        request  = new HttpRequest();
        inputBuffer = new HttpInputBuffer(request);
        inputStream = secure ? new SSLByteBufferInputStream()
        : new ByteBufferInputStream();
       
        inputBuffer.setInputStream(inputStream);
        request.setInputBuffer(inputBuffer);
        response = new Response();
        outputBuffer = secure ? new SSLOutputBuffer(response,
View Full Code Here


                            buffer.clear();
                        }

                        // The thread might block when reading more bytes using
                        // a temporary Selector.
                        ByteBufferInputStream inputStream =
                                new ByteBufferInputStream();
                        inputStream.setSecure((prot == Protocol.TLS));
                        inputStream.setSelectionKey(ctx.getSelectionKey());
                        inputStream.setReadTimeout(requestTimeOut * 1000);
                        int nRead = inputStream.read(buffer);
                        if (nRead <= 0) {
                            logger.log(Level.SEVERE,
                                    "sip.network.grizzly.readtimeout",
                                    new Object[]{requestTimeOut, nRead, buffer});
                            if (logger.isLoggable(Level.FINE)) {
View Full Code Here

TOP

Related Classes of com.sun.grizzly.util.ByteBufferInputStream

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.