457458459460461462463464465466467
uri.setChars(cc.getBuffer(), cc.getStart(), cc.getLength()); return; } catch (IOException e) { log.error("Invalid URI character encoding; trying ascii"); cc.recycle(); } } } // Default encoding: fast conversion
492493494495496497498499500501502
for (int i = 0; i < length; i++) { cbuf[i] = (char) (bbuf[i + start] & 0xff); } cc.setChars(cbuf, 0, length); result = cc.toString(); cc.recycle(); } return result; } public void processParameters( char chars[], int start, int len ) {
555556557558559560561562563564565
return; } catch (IOException e) { if (debug >= 1) { log("Invalid URI character encoding; trying ascii", e); } cc.recycle(); } } } // Default encoding: fast conversion
647648649650651652653654655656657
941942943944945946947948949950951
795796797798799800801802803804805
17071708170917101711171217131714171517161717
} } else { encodedURI = urlEncoder.encodeURL(relativePath, 0, pos); } redirectURLCC.append(encodedURI); encodedURI.recycle(); redirectURLCC.append('/'); } redirectURLCC.append(location, 0, location.length()); normalize(redirectURLCC);
963964965966967968969970971972973
868869870871872873874875876877878
447448449450451452453454455456457