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() |
String |
getContentType() |
File |
getFile() |
long |
getOffset() |
void |
write(io.netty.channel.Channel channel,
NettyResponseFuture<?> future) |
public NettyFileBody(File file, AsyncHttpClientConfig config)
public NettyFileBody(File file, long offset, long length, AsyncHttpClientConfig config)
public File getFile()
public long getOffset()
public long getContentLength()
getContentLength
in interface NettyBody
public String getContentType()
getContentType
in interface NettyBody
public void write(io.netty.channel.Channel channel, NettyResponseFuture<?> future) throws IOException
write
in interface NettyBody
IOException
Copyright © 2017. All Rights Reserved.