Package com.predic8.membrane.core.http
Class BodyCollectingMessageObserver
java.lang.Object
com.predic8.membrane.core.http.BodyCollectingMessageObserver
- All Implemented Interfaces:
MessageObserver
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBodyCollectingMessageObserver(BodyCollectingMessageObserver.Strategy strategy, long limit) -
Method Summary
Modifier and TypeMethodDescriptionvoidbodyChunk(byte[] buffer, int offset, int length) Observes a piece of the body.voidObserves a piece of the body.getBody(AbstractBody body) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.predic8.membrane.core.http.MessageObserver
bodyComplete, bodyRequested
-
Constructor Details
-
BodyCollectingMessageObserver
-
-
Method Details
-
bodyChunk
public void bodyChunk(byte[] buffer, int offset, int length) Description copied from interface:MessageObserverObserves a piece of the body. Note that the buffer content may change after the method completes.- Specified by:
bodyChunkin interfaceMessageObserver
-
bodyChunk
Description copied from interface:MessageObserverObserves a piece of the body.- Specified by:
bodyChunkin interfaceMessageObserver
-
getBody
- Throws:
IOException
-
isTruncated
public boolean isTruncated()
-