| Constructor and Description |
|---|
NettyByteArrayBody(byte[] bytes) |
NettyByteArrayBody(byte[] bytes,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
long |
getContentLength() |
String |
getContentType() |
void |
write(org.jboss.netty.channel.Channel channel,
NettyResponseFuture<?> future,
AsyncHttpClientConfig config) |
public NettyByteArrayBody(byte[] bytes)
public NettyByteArrayBody(byte[] bytes,
String contentType)
public byte[] getBytes()
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.