Package org.apache.tomcat.lite.io

Examples of org.apache.tomcat.lite.io.CBuffer.indexOf()


        http.expectation = false;
        MultiMap headers = http.getRequest().getMimeHeaders();

        CBuffer expect = headers.getHeader("expect");
        if ((expect != null)
                && (expect.indexOf("100-continue") != -1)) {
            http.expectation = true;

            // TODO: configure, use the callback or the servlet 'read'.
            net.getOut().append("HTTP/1.1 100 Continue\r\n\r\n");
            net.startSending();
View Full Code Here


        CBuffer value = headers.getHeader(CONNECTION);
        // TODO: split it by space
        if (value != null) {
            value.toLower();
            if (value.indexOf(CLOSE) >= 0) {
                // 1.1 ( but we accept it for 1.0 too )
                closeStreamOnEnd("connection close");
            }
            if (http10 && value.indexOf(KEEPALIVE_S) < 0) {
                // Keep-Alive required for http/1.0
View Full Code Here

            value.toLower();
            if (value.indexOf(CLOSE) >= 0) {
                // 1.1 ( but we accept it for 1.0 too )
                closeStreamOnEnd("connection close");
            }
            if (http10 && value.indexOf(KEEPALIVE_S) < 0) {
                // Keep-Alive required for http/1.0
                closeStreamOnEnd("connection != keep alive");
            }
            // we have connection: keepalive, good
        } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.