Constructor and Description |
---|
NettyFileBody(java.io.File file,
AsyncHttpClientConfig config) |
NettyFileBody(java.io.File file,
long offset,
long length,
AsyncHttpClientConfig config) |
Modifier and Type | Method and Description |
---|---|
long |
getContentLength() |
java.lang.String |
getContentType() |
java.io.File |
getFile() |
long |
getOffset() |
void |
write(Channel channel,
NettyResponseFuture<?> future) |
public NettyFileBody(java.io.File file, AsyncHttpClientConfig config)
public NettyFileBody(java.io.File file, long offset, long length, AsyncHttpClientConfig config)
public java.io.File getFile()
public long getOffset()
public long getContentLength()
getContentLength
in interface NettyBody
public java.lang.String getContentType()
getContentType
in interface NettyBody
public void write(Channel channel, NettyResponseFuture<?> future) throws java.io.IOException
Copyright © 2019. All Rights Reserved.