Package org.simpleframework.http.message
Interface BodyConsumer
- All Superinterfaces:
ByteConsumer
- All Known Implementing Classes:
ChunkedConsumer
,ContentConsumer
,EmptyConsumer
,FileUploadConsumer
,FixedLengthConsumer
,PartBodyConsumer
,PartSeriesConsumer
,UpdateConsumer
The
BodyConsumer
is used to consume the body of an
HTTP message. Implementations of this consumer must provide the
Body
that has been consumed. If there is no body
associated with the consumer then an empty body is returned.-
Method Summary
Methods inherited from interface org.simpleframework.http.message.ByteConsumer
consume, isFinished
-
Method Details
-
getBody
Body getBody()This is used to acquire the body that has been consumed. This will return a body which can be used to read the content of the message, also if the request is multipart upload then all of the parts are provided asPart
objects. Each part can then be read as an individual message.- Returns:
- the body that has been consumed by this instance
-