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() |
write
public NettyByteArrayBody(byte[] bytes)
public NettyByteArrayBody(byte[] bytes, String contentType)
public long getContentLength()
public String getContentType()
public io.netty.buffer.ByteBuf byteBuf()
byteBuf
in class NettyDirectBody
Copyright © 2015. All Rights Reserved.