if (conv == null) { conv = new B2CConverter(enc); setURIConverter(conv);
/* 575 */ if (conv == null) { /* 576 */ conv = new B2CConverter(enc); /* 577 */ request.setURIConverter(conv); /* */ } else {
if (conv == null) { conv = new B2CConverter(enc); request.setURIConverter(conv); } else { conv.recycle();
if (conv == null) { conv = new B2CConverter(enc); request.setURIConverter(conv); } else { conv.recycle();
/** * Character conversion of the URI. * * @param uri MessageBytes object containing the URI * @param request The Servlet request object * @throws IOException if a IO exception occurs sending an error to the client */ protected void convertURI(MessageBytes uri, Request request) throws IOException { ByteChunk bc = uri.getByteChunk(); int length = bc.getLength(); CharChunk cc = uri.getCharChunk(); cc.allocate(length, -1); Charset charset = connector.getURICharset(); B2CConverter conv = request.getURIConverter(); if (conv == null) { conv = new B2CConverter(charset, true); request.setURIConverter(conv); } else { conv.recycle(); } try { conv.convert(bc, cc, true); uri.setChars(cc.getBuffer(), cc.getStart(), cc.getLength()); } catch (IOException ioe) { // Should never happen as B2CConverter should replace // problematic characters request.getResponse().sendError(HttpServletResponse.SC_BAD_REQUEST); } }
/** * Character conversion of the URI. * * @param uri MessageBytes object containing the URI * @param request The Servlet request object * @throws IOException if a IO exception occurs sending an error to the client */ protected void convertURI(MessageBytes uri, Request request) throws IOException { ByteChunk bc = uri.getByteChunk(); int length = bc.getLength(); CharChunk cc = uri.getCharChunk(); cc.allocate(length, -1); Charset charset = connector.getURICharset(); B2CConverter conv = request.getURIConverter(); if (conv == null) { conv = new B2CConverter(charset, true); request.setURIConverter(conv); } else { conv.recycle(); } try { conv.convert(bc, cc, true); uri.setChars(cc.getBuffer(), cc.getStart(), cc.getLength()); } catch (IOException ioe) { // Should never happen as B2CConverter should replace // problematic characters request.getResponse().sendError(HttpServletResponse.SC_BAD_REQUEST); } }
if (conv == null) { conv = new B2CConverter(enc, true); request.setURIConverter(conv); } else { conv.recycle();
if (conv == null) { conv = new B2CConverter(enc); request.setURIConverter(conv); } else { conv.recycle();
if (conv == null) { conv = new B2CConverter(enc, true); request.setURIConverter(conv); } else { conv.recycle();
if (conv == null) { conv = new B2CConverter(enc); request.setURIConverter(conv);
if (conv == null) { conv = new B2CConverter(enc); request.setURIConverter(conv);
if (conv == null) { conv = new B2CConverter(enc); request.setURIConverter(conv);
if (conv == null) { conv = new B2CConverter(enc); request.setURIConverter(conv);