Package org.apache.tomcat.lite.io

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


//        } else {
            // Adjust the host header.
            CBuffer hostHdr =
                serverHttpReq.getMimeHeaders().getHeader("host");
            if (hostHdr != null) {
                hostHdr.recycle();
                CBuffer cb = hostHdr;
                cb.append(dstHost);
                if (dstPort != 80) {
                    cb.append(':');
                    cb.appendInt(dstPort);
View Full Code Here


//        } else {
            // Adjust the host header.
            CBuffer hostHdr =
                serverHttpReq.getMimeHeaders().getHeader("host");
            if (hostHdr != null) {
                hostHdr.recycle();
                CBuffer cb = hostHdr;
                cb.append(dstHost);
                if (dstPort != 80) {
                    cb.append(':');
                    cb.appendInt(dstPort);
View Full Code Here

        return requestURI;
    }

    public CBuffer requestURL() {
        CBuffer url = requestURL;
        url.recycle();

        String scheme = getScheme();
        int port = getServerPort();
        if (port < 0)
            port = 80; // Work around java.net.URL bug
View Full Code Here

            result = bc.toString(enc);
        } else {
            // Ascii

            CBuffer cc = tmpNameC;
            cc.recycle();
            int length = bc.getLength();
            byte[] bbuf = bc.array();
            int start = bc.getStart();
            cc.appendAscii(bbuf, start, length);
            result = cc.toString();
View Full Code Here

            int length = bc.getLength();
            byte[] bbuf = bc.array();
            int start = bc.getStart();
            cc.appendAscii(bbuf, start, length);
            result = cc.toString();
            cc.recycle();
        }
        return result;
    }

    private void processParameters( byte bytes[], int start, int len ) {
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.