org.simpleframework.http.message
Interface BodyConsumer

All Superinterfaces:
ByteConsumer
All Known Implementing Classes:
ChunkedConsumer, EmptyConsumer, FileUploadConsumer, FixedLengthConsumer, UpdateConsumer

public interface BodyConsumer
extends ByteConsumer

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.

Author:
Niall Gallagher

Method Summary
 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 as Part objects. Each part can then be read as an individual message.

Returns:
the body that has been consumed by this instance


Copyright © 2014. All Rights Reserved.