- All Implemented Interfaces:
public class InputStreamBodyGenerator
- extends Object
- implements BodyGenerator
BodyGenerator which use an
InputStream for reading bytes, without having to read the entire
stream in memory.
InputStream must support the
If not, mechanisms like authentication, redirect, or resumable download will not works.
Creates a new instance of the request body to be read.
HACK: This is required because Netty has issues with chunking.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public InputStreamBodyGenerator(InputStream inputStream)
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.
- Specified by:
createBody in interface
- The request body, never
IOException - If the body could not be created.
public void patchNettyChunkingIssue(boolean patchNettyChunkingIssue)
- HACK: This is required because Netty has issues with chunking.
Copyright © 2014. All Rights Reserved.