Class BodyDecoderEncoder

java.lang.Object
de.gematik.test.tiger.mockserver.codec.BodyDecoderEncoder

public class BodyDecoderEncoder extends Object
  • Constructor Details

    • BodyDecoderEncoder

      public BodyDecoderEncoder()
  • Method Details

    • bodyToByteBuf

      public io.netty.buffer.ByteBuf bodyToByteBuf(Body body)
    • 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)