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