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
ConstructorDescriptionHttpMessageEntity
(Message message) HttpMessageEntity
(Message message, org.apache.http.entity.ContentType contentType) -
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
boolean
void
setContentEncoding
(String charset) void
writeTo
(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:
setContentEncoding
in classorg.apache.http.entity.AbstractHttpEntity
-
isRepeatable
public boolean isRepeatable() -
isStreaming
public boolean isStreaming() -
getContentLength
public long getContentLength() -
getContent
- Throws:
IOException
-
writeTo
- Throws:
IOException
-