org.apache.http.nio.entity
Class ContentBufferEntity
java.lang.Object
org.apache.http.entity.AbstractHttpEntity
org.apache.http.entity.BasicHttpEntity
org.apache.http.nio.entity.ContentBufferEntity
- All Implemented Interfaces:
- HttpEntity
public class ContentBufferEntity
- extends BasicHttpEntity
HTTP entity wrapper whose content is provided by a
ContentInputBuffer.
- Since:
- 4.0
ContentBufferEntity
public ContentBufferEntity(HttpEntity entity,
ContentInputBuffer buffer)
- Creates new instance of ContentBufferEntity.
- Parameters:
entity - the original entity.buffer - the content buffer.
isChunked
public boolean isChunked()
- Specified by:
isChunked in interface HttpEntity- Overrides:
isChunked in class AbstractHttpEntity
getContentLength
public long getContentLength()
- Specified by:
getContentLength in interface HttpEntity- Overrides:
getContentLength in class BasicHttpEntity
getContentType
public Header getContentType()
- Specified by:
getContentType in interface HttpEntity- Overrides:
getContentType in class AbstractHttpEntity
getContentEncoding
public Header getContentEncoding()
- Specified by:
getContentEncoding in interface HttpEntity- Overrides:
getContentEncoding in class AbstractHttpEntity
Copyright © 2005–2018 The Apache Software Foundation. All rights reserved.