Class NettyFileBody
- java.lang.Object
-
- org.asynchttpclient.netty.request.body.NettyFileBody
-
-
Constructor Summary
Constructors Constructor Description NettyFileBody(File file, long offset, long length, AsyncHttpClientConfig config)NettyFileBody(File file, AsyncHttpClientConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetContentLength()FilegetFile()voidwrite(io.netty.channel.Channel channel, NettyResponseFuture<?> future)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.asynchttpclient.netty.request.body.NettyBody
getContentTypeOverride
-
-
-
-
Constructor Detail
-
NettyFileBody
public NettyFileBody(File file, AsyncHttpClientConfig config)
-
NettyFileBody
public NettyFileBody(File file, long offset, long length, AsyncHttpClientConfig config)
-
-
Method Detail
-
getFile
public File getFile()
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceNettyBody
-
write
public void write(io.netty.channel.Channel channel, NettyResponseFuture<?> future) throws IOException- Specified by:
writein interfaceNettyBody- Throws:
IOException
-
-