public String dump() { StringBuilder builder = new StringBuilder(); builder.append("encoding:").append(getEncoding()).append("\n"); builder.append("queries:[").append(StringUtils.toString(getQueries())).append("]\n"); builder.append("params:[").append(StringUtils.toString(getParams())).append("]\n"); builder.append("parts:[").append(StringUtils.toString(getParts())).append("]\n"); return builder.toString(); }
private static String responseToText(final Response response) throws IOException { return StringUtils.safeSubString(IOUtils.readString(response.body().charStream()), 8196); }