public class BodyDecoderEncoder extends Object
Constructor and Description |
---|
BodyDecoderEncoder(MockServerLogger mockServerLogger) |
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
bodyToByteBuf(Body body,
String contentTypeHeader) |
io.netty.buffer.ByteBuf[] |
bodyToByteBuf(Body body,
String contentTypeHeader,
int chunkSize) |
void |
bodyToServletResponse(javax.servlet.http.HttpServletResponse httpServletResponse,
Body body,
String contentTypeHeader) |
BodyWithContentType |
byteBufToBody(io.netty.buffer.ByteBuf content,
String contentTypeHeader) |
BodyWithContentType |
servletRequestToBody(javax.servlet.http.HttpServletRequest servletRequest) |
static byte[][] |
split(byte[] array,
int chunkSize) |
public BodyDecoderEncoder(MockServerLogger mockServerLogger)
public io.netty.buffer.ByteBuf[] bodyToByteBuf(Body body, String contentTypeHeader, int chunkSize)
public static byte[][] split(byte[] array, int chunkSize)
public void bodyToServletResponse(javax.servlet.http.HttpServletResponse httpServletResponse, Body body, String contentTypeHeader)
public BodyWithContentType byteBufToBody(io.netty.buffer.ByteBuf content, String contentTypeHeader)
public BodyWithContentType servletRequestToBody(javax.servlet.http.HttpServletRequest servletRequest)
Copyright © 2020. All rights reserved.