| Constructor and Description |
|---|
NettyFileBody(File file,
long offset,
long length,
NettyAsyncHttpProviderConfig nettyConfig) |
NettyFileBody(File file,
NettyAsyncHttpProviderConfig nettyConfig) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength() |
String |
getContentType() |
File |
getFile() |
long |
getOffset() |
void |
write(org.jboss.netty.channel.Channel channel,
NettyResponseFuture<?> future,
AsyncHttpClientConfig config) |
public NettyFileBody(File file, NettyAsyncHttpProviderConfig nettyConfig) throws IOException
IOExceptionpublic NettyFileBody(File file, long offset, long length, NettyAsyncHttpProviderConfig nettyConfig) throws IOException
IOExceptionpublic File getFile()
public long getOffset()
public long getContentLength()
getContentLength in interface NettyBodypublic String getContentType()
getContentType in interface NettyBodypublic void write(org.jboss.netty.channel.Channel channel,
NettyResponseFuture<?> future,
AsyncHttpClientConfig config)
throws IOException
write in interface NettyBodyIOExceptionCopyright © 2014. All Rights Reserved.