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