| 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(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 NettyBodypublic String getContentType()
getContentType in interface NettyBodypublic void write(Channel channel, NettyResponseFuture<?> future) throws IOException
write in interface NettyBodyIOExceptionCopyright © 2016. All Rights Reserved.