| Constructor and Description |
|---|
NettyFileBody(File file,
AsyncHttpClientConfig config) |
NettyFileBody(File file,
long offset,
long length,
AsyncHttpClientConfig config) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength() |
File |
getFile() |
void |
write(io.netty.channel.Channel channel,
NettyResponseFuture<?> future) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentTypeOverridepublic NettyFileBody(File file, AsyncHttpClientConfig config)
public NettyFileBody(File file, long offset, long length, AsyncHttpClientConfig config)
public File getFile()
public long getContentLength()
getContentLength in interface NettyBodypublic void write(io.netty.channel.Channel channel,
NettyResponseFuture<?> future)
throws IOException
write in interface NettyBodyIOExceptionCopyright © 2020. All rights reserved.