Package org.frankframework.http
Class HttpMessageEntity
java.lang.Object
org.apache.http.entity.AbstractHttpEntity
org.frankframework.http.HttpMessageEntity
- All Implemented Interfaces:
org.apache.http.HttpEntity
public class HttpMessageEntity
extends org.apache.http.entity.AbstractHttpEntity
Custom implementation of an
HttpEntity which deals with isRepeatable(),
isStreaming(), Message.getCharset() and Message.size().- Author:
- Niels Meijer
-
Field Summary
Fields inherited from class org.apache.http.entity.AbstractHttpEntity
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionHttpMessageEntity(Message message) HttpMessageEntity(Message message, org.apache.http.entity.ContentType contentType) -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanbooleanvoidsetContentEncoding(String charset) voidwriteTo(OutputStream outStream) Methods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentType, setContentType, toString
-
Constructor Details
-
HttpMessageEntity
-
HttpMessageEntity
-
-
Method Details
-
setContentEncoding
- Overrides:
setContentEncodingin classorg.apache.http.entity.AbstractHttpEntity
-
isRepeatable
public boolean isRepeatable() -
isStreaming
public boolean isStreaming() -
getContentLength
public long getContentLength() -
getContent
- Throws:
IOException
-
writeTo
- Throws:
IOException
-