public class NettyByteArrayBody extends NettyDirectBody
| Constructor and Description |
|---|
NettyByteArrayBody(byte[] bytes) |
NettyByteArrayBody(byte[] bytes,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
byteBuf() |
long |
getContentLength() |
String |
getContentType() |
writepublic NettyByteArrayBody(byte[] bytes)
public NettyByteArrayBody(byte[] bytes,
String contentType)
public long getContentLength()
public String getContentType()
public io.netty.buffer.ByteBuf byteBuf()
byteBuf in class NettyDirectBodyCopyright © 2017. All Rights Reserved.