Lines Matching refs:entity
33 import org.apache.http.entity.BasicHttpEntity;
34 import org.apache.http.entity.ContentLengthStrategy;
37 import org.apache.http.impl.entity.EntitySerializer;
38 import org.apache.http.impl.entity.StrictContentLengthStrategy;
265 * Sends the request entity over the connection.
266 * @param request the request whose entity to send.
381 * Return the next response entity.
382 * @param headers contains values for parsing entity
387 BasicHttpEntity entity = new BasicHttpEntity();
391 entity.setChunked(true);
392 entity.setContentLength(-1);
393 entity.setContent(new ChunkedInputStream(inbuffer));
395 entity.setChunked(false);
396 entity.setContentLength(-1);
397 entity.setContent(new IdentityInputStream(inbuffer));
399 entity.setChunked(false);
400 entity.setContentLength(len);
401 entity.setContent(new ContentLengthInputStream(inbuffer, len));
406 entity.setContentType(contentTypeHeader);
410 entity.setContentEncoding(contentEncodingHeader);
413 return entity;