Examples of recycle()


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

        SpdyConnection.appendAsciiHead(headBuf, http.getRequest().requestURL());

        if (headerCompression && httpConnector.compression) {
            headerCompressBuffer.recycle();
            headCompressOut.compress(headBuf, headerCompressBuffer, false);
            headBuf.recycle();
            headerCompressBuffer.copyAll(headBuf);
        }

        // Frame head - 8
        BBuffer out = BBuffer.allocate();
View Full Code Here

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

Examples of org.apache.tomcat.util.buf.B2CConverter.recycle()

            try {
                if (conv == null) {
                    conv = new B2CConverter(enc);
                    request.setURIConverter(conv);
                } else {
                    conv.recycle();
                }
            } catch (IOException e) {
                // Ignore
                log.error("Invalid URI encoding; using HTTP default");
                connector.setURIEncoding(null);
View Full Code Here

Examples of org.apache.tomcat.util.buf.B2CConverter.recycle()

            try {
                if (conv == null) {
                    conv = new B2CConverter(enc);
                    request.setURIConverter(conv);
                } else {
                    conv.recycle();
                }
            } catch (Exception e) {
                // Ignore
                log.error("Invalid URI encoding; using HTTP default");
                connector.setURIEncoding(null);
View Full Code Here

Examples of org.apache.tomcat.util.buf.ByteChunk.recycle()

        ByteChunk res = postUrl(body,
                "https://localhost:" + getPort() + "/unprotected");
        assertEquals("OK-" + bodySize, res.toString());
       
        // Protected resource
        res.recycle();
        int rc = postUrl(body, "https://localhost:" + getPort() + "/protected",
                res, null);
        if (expectProtectedFail) {
            assertEquals(401, rc);
        } else {
View Full Code Here

Examples of org.apache.tomcat.util.buf.CharChunk.recycle()

                    queryString = urlString.substring(queryIndex+1);
                    urlString = urlString.substring(0, queryIndex);
                }
                // Set the new URL
                CharChunk chunk = request.getCoyoteRequest().requestURI().getCharChunk();
                chunk.recycle();
                if (context) {
                    chunk.append(request.getContextPath());
                }
                chunk.append(urlString);
                request.getCoyoteRequest().requestURI().toChars();
View Full Code Here

Examples of org.apache.tomcat.util.buf.CharChunk.recycle()

                chunk.append(urlString);
                request.getCoyoteRequest().requestURI().toChars();
                // Set the new Query if there is one
                if (queryString != null) {
                    chunk = request.getCoyoteRequest().queryString().getCharChunk();
                    chunk.recycle();
                    chunk.append(queryString);
                    request.getCoyoteRequest().queryString().toChars();
                }
                // Set the new host if it changed
                if (!host.equals(request.getServerName())) {
View Full Code Here

Examples of org.apache.tomcat.util.buf.CharChunk.recycle()

                    request.getCoyoteRequest().queryString().toChars();
                }
                // Set the new host if it changed
                if (!host.equals(request.getServerName())) {
                    chunk = request.getCoyoteRequest().serverName().getCharChunk();
                    chunk.recycle();
                    chunk.append(host.toString());
                    request.getCoyoteRequest().serverName().toChars();
                }
                request.getMappingData().recycle();
                // Reinvoke the whole request recursively
View Full Code Here

Examples of org.apache.tomcat.util.buf.MessageBytes.recycle()

            uriMB = MessageBytes.newInstance();
            CharChunk uriCC = uriMB.getCharChunk();
            uriCC.setLimit(-1);
            localUriMB.set(uriMB);
        } else {
            uriMB.recycle();
        }

        // Get query string
        String queryString = null;
        int pos = path.indexOf('?');
View Full Code Here

Examples of org.apache.tomcat.util.http.BaseRequest.recycle()

                }
           
              // Special low level request allready handled (ie: PING/PONG)
              if( status == 999 )
              {
          request.recycle();
                continue;
              }
             
                if( status != 200 )
                    break;
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.