Package org.mockserver.codec
Class BodyDecoderEncoder
- java.lang.Object
-
- org.mockserver.codec.BodyDecoderEncoder
-
public class BodyDecoderEncoder extends Object
-
-
Constructor Summary
Constructors Constructor Description BodyDecoderEncoder(MockServerLogger mockServerLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.buffer.ByteBuf
bodyToByteBuf(Body body, String contentTypeHeader)
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)
-
-
-
Constructor Detail
-
BodyDecoderEncoder
public BodyDecoderEncoder(MockServerLogger mockServerLogger)
-
-
Method Detail
-
bodyToServletResponse
public void bodyToServletResponse(javax.servlet.http.HttpServletResponse httpServletResponse, Body body, String contentTypeHeader)
-
byteBufToBody
public BodyWithContentType byteBufToBody(io.netty.buffer.ByteBuf content, String contentTypeHeader)
-
servletRequestToBody
public BodyWithContentType servletRequestToBody(javax.servlet.http.HttpServletRequest servletRequest)
-
-