Class ServletResponseWriter
- java.lang.Object
-
- org.mockserver.responsewriter.ResponseWriter
-
- org.mockserver.servlet.responsewriter.ServletResponseWriter
-
public class ServletResponseWriter extends ResponseWriter
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description ServletResponseWriter(javax.servlet.http.HttpServletResponse httpServletResponse)
-
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
-
-