Home | History | Annotate | Download | only in entity

Lines Matching refs:entity

2  * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/entity/EntityDeserializer.java $
32 package org.apache.http.impl.entity;
40 import org.apache.http.entity.BasicHttpEntity;
41 import org.apache.http.entity.ContentLengthStrategy;
49 * Default implementation of an entity deserializer.
51 * This entity deserializer currently supports only "chunked" and "identitiy" transfer-coding</a>
75 BasicHttpEntity entity = new BasicHttpEntity();
79 entity.setChunked(true);
80 entity.setContentLength(-1);
81 entity.setContent(new ChunkedInputStream(inbuffer));
83 entity.setChunked(false);
84 entity.setContentLength(-1);
85 entity.setContent(new IdentityInputStream(inbuffer));
87 entity.setChunked(false);
88 entity.setContentLength(len);
89 entity.setContent(new ContentLengthInputStream(inbuffer, len));
94 entity.setContentType(contentTypeHeader);
98 entity.setContentEncoding(contentEncodingHeader);
100 return entity;