public interface FeedableBodyGenerator extends BodyGenerator
BodyGenerator which may return just part of the payload at the time handler is requesting it.
If it happens, client becomes responsible for providing the rest of the chunks.| Modifier and Type | Method and Description |
|---|---|
boolean |
feed(ByteBuffer buffer,
boolean isLast) |
void |
setListener(FeedListener listener) |
createBodyboolean feed(ByteBuffer buffer, boolean isLast) throws Exception
Exceptionvoid setListener(FeedListener listener)
Copyright © 2016. All Rights Reserved.