Package org.mockserver.codec
Class BodyDecoderEncoder
- java.lang.Object
-
- org.mockserver.codec.BodyDecoderEncoder
-
public class BodyDecoderEncoder extends Object
-
-
Constructor Summary
Constructors Constructor Description BodyDecoderEncoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.buffer.ByteBufbodyToByteBuf(Body body, String contentTypeHeader)io.netty.buffer.ByteBuf[]bodyToByteBuf(Body body, String contentTypeHeader, int chunkSize)BodyWithContentTypebyteBufToBody(io.netty.buffer.ByteBuf content, String contentTypeHeader)BodyWithContentTypebytesToBody(byte[] bodyBytes, String contentTypeHeader)static byte[][]split(byte[] array, int chunkSize)
-
-
-
Method Detail
-
bodyToByteBuf
public io.netty.buffer.ByteBuf[] bodyToByteBuf(Body body, String contentTypeHeader, int chunkSize)
-
split
public static byte[][] split(byte[] array, int chunkSize)
-
byteBufToBody
public BodyWithContentType byteBufToBody(io.netty.buffer.ByteBuf content, String contentTypeHeader)
-
bytesToBody
public BodyWithContentType bytesToBody(byte[] bodyBytes, String contentTypeHeader)
-
-