Package com.predic8.membrane.core.http
Class AbstractMessageObserver
java.lang.Object
com.predic8.membrane.core.http.AbstractMessageObserver
- All Implemented Interfaces:
MessageObserver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbodyChunk(byte[] buffer, int offset, int length) Observes a piece of the body.voidObserves a piece of the body.voidbodyComplete(AbstractBody body) Notification that the body has fully been received.voidbodyRequested(AbstractBody body)
-
Constructor Details
-
AbstractMessageObserver
public AbstractMessageObserver()
-
-
Method Details
-
bodyRequested
- Specified by:
bodyRequestedin interfaceMessageObserver
-
bodyChunk
Description copied from interface:MessageObserverObserves a piece of the body.- Specified by:
bodyChunkin interfaceMessageObserver
-
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
-
bodyComplete
Description copied from interface:MessageObserverNotification that the body has fully been received.Note that this event may run instantaneously (during the call to
Message.addObserver(MessageObserver)), as the body may have already been fully received when registering the observer.This is the last event that will be fired on any MessageObserver.
- Specified by:
bodyCompletein interfaceMessageObserver
-