java.lang.Object |
↳ |
com.ning.http.client.providers.grizzly.FeedableBodyGenerator |
Class Overview
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.
Summary
Public Methods |
Body
|
createBody()
Creates a new instance of the request body to be read.
|
void
|
feed(Buffer buffer, boolean isLast)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0)
|
final
void
|
wait(long arg0, int arg1)
|
|
From interface
com.ning.http.client.BodyGenerator
abstract
Body
|
createBody()
Creates a new instance of the request body to be read.
|
|
Public Constructors
public
FeedableBodyGenerator
()
Public Methods
public
Body
createBody
()
Creates a new instance of the request body to be read. While each invocation of this method is supposed to create
a fresh instance of the body, the actual contents of all these body instances is the same. For example, the body
needs to be resend after an authentication challenge of a redirect.
Returns
- The request body, never
null
.
public
void
feed
(Buffer buffer, boolean isLast)