Package org.mockserver.responsewriter
Class NettyResponseWriter
- java.lang.Object
-
- org.mockserver.responsewriter.ResponseWriter
-
- org.mockserver.responsewriter.NettyResponseWriter
-
public class NettyResponseWriter extends ResponseWriter
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description NettyResponseWriter(io.netty.channel.ChannelHandlerContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeResponse(HttpRequest request, io.netty.handler.codec.http.HttpResponseStatus responseStatus)
void
writeResponse(HttpRequest request, io.netty.handler.codec.http.HttpResponseStatus responseStatus, String body, String contentType)
void
writeResponse(HttpRequest request, HttpResponse response, boolean apiResponse)
-
Methods inherited from class org.mockserver.responsewriter.ResponseWriter
addConnectionHeader
-
-
-
-
Method Detail
-
writeResponse
public void writeResponse(HttpRequest request, io.netty.handler.codec.http.HttpResponseStatus responseStatus)
- Specified by:
writeResponse
in classResponseWriter
-
writeResponse
public void writeResponse(HttpRequest request, io.netty.handler.codec.http.HttpResponseStatus responseStatus, String body, String contentType)
- Specified by:
writeResponse
in classResponseWriter
-
writeResponse
public void writeResponse(HttpRequest request, HttpResponse response, boolean apiResponse)
- Specified by:
writeResponse
in classResponseWriter
-
-