public class FeedableBodyGenerator
extends java.lang.Object
BodyGenerator which may return just part of the payload at the time
 handler is requesting it. If it happens, PartialBodyGenerator becomes
 responsible for finishing payload transferring asynchronously.| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
FeedableBodyGenerator.FeedListener  | 
| Constructor and Description | 
|---|
FeedableBodyGenerator()  | 
| Modifier and Type | Method and Description | 
|---|---|
com.ning.http.client.Body | 
createBody()  | 
void | 
feed(java.nio.ByteBuffer buffer,
    boolean isLast)  | 
void | 
setListener(FeedableBodyGenerator.FeedListener listener)  | 
public com.ning.http.client.Body createBody()
                                     throws java.io.IOException
java.io.IOExceptionpublic void feed(java.nio.ByteBuffer buffer,
                 boolean isLast)
          throws java.io.IOException
java.io.IOExceptionpublic void setListener(FeedableBodyGenerator.FeedListener listener)
Copyright © 2021. All Rights Reserved.