172173174175176177178179180181182
// } 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);
324325326327328329330331332333334
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
744745746747748749750751752753754
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();
750751752753754755756757758759760
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 ) {