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 TypeMethodDescriptionlongbooleanbooleanisStreamingbasically means: true if not repeatable.voidwriteTo(OutputStream outStream) Methods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
-
Constructor Details
-
HttpMessageEntity
-
HttpMessageEntity
-
-
Method Details
-
isRepeatable
public boolean isRepeatable() -
isStreaming
public boolean isStreaming()isStreamingbasically means: true if not repeatable. All our messages are now repeatable, so never require streaming.- Returns:
falsebecause all Messages are now repeatable.
-
getContentLength
public long getContentLength() -
getContent
- Throws:
IOException
-
writeTo
- Throws:
IOException
-