Response
237238239240241242243244
if (pw != null) pw.close(); setContentLength(baos.size()); StatusLine sl = new StatusLine(statusCode, statusReason); DataPoster dp = new ByteArrayDataPoster(baos.toByteArray()); ServerResponse sr = new ServerResponse(sl, headers, dp); return sr; }
99100101102103104105106
pw.flush(); sres.setStatus(500, sres.toString()); exception(e); } ServerResponse response = sres.createServerResponse(); r.getServer().writeResponse(response); }