Lines Matching refs:buf
158 ByteArrayBuffer buf = new ByteArrayBuffer();
160 ct = codec.encode(request, buf);
162 reqHeaders.put("Content-Length", Collections.singletonList(Integer.toString(buf.size())));
172 dump(buf, "HTTP request", reqHeaders);
174 buf.writeTo(con.getOutput());
186 ByteArrayBuffer buf = new ByteArrayBuffer();
187 codec.encode(request, buf);
188 dump(buf, "HTTP request - "+request.endpointAddress, reqHeaders);
191 buf.writeTo(out);
217 ByteArrayBuffer buf = new ByteArrayBuffer();
219 buf.write(responseStream);
222 dump(buf,"HTTP response - "+request.endpointAddress+" - "+con.statusCode, con.getHeaders());
223 responseStream = buf.newInputStream();
341 StringBuffer buf = new StringBuffer(user);
342 buf.append(":");
343 buf.append(pw);
344 String creds = DatatypeConverter.printBase64Binary(buf.toString().getBytes());
372 private void dump(ByteArrayBuffer buf, String caption, Map<String, List<String>> headers) throws IOException {
378 buf.writeTo(System.out);