Package org.simpleframework.http.message
Interface BodyConsumer
-
- All Superinterfaces:
ByteConsumer
- All Known Implementing Classes:
ChunkedConsumer
,ContentConsumer
,EmptyConsumer
,FileUploadConsumer
,FixedLengthConsumer
,PartBodyConsumer
,PartSeriesConsumer
,UpdateConsumer
public interface BodyConsumer extends ByteConsumer
TheBodyConsumer
is used to consume the body of an HTTP message. Implementations of this consumer must provide theBody
that has been consumed. If there is no body associated with the consumer then an empty body is returned.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Body
getBody()
This is used to acquire the body that has been consumed.-
Methods inherited from interface org.simpleframework.http.message.ByteConsumer
consume, isFinished
-
-
-
-
Method Detail
-
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
-
-