public class ServletResponseWriter extends ResponseWriter
Constructor and Description |
---|
ServletResponseWriter(MockServerLogger mockServerLogger,
javax.servlet.http.HttpServletResponse httpServletResponse) |
Modifier and Type | Method and Description |
---|---|
void |
writeResponse(HttpRequest request,
HttpResponse response,
boolean apiResponse) |
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) |
addConnectionHeader
public ServletResponseWriter(MockServerLogger mockServerLogger, javax.servlet.http.HttpServletResponse httpServletResponse)
public void writeResponse(HttpRequest request, io.netty.handler.codec.http.HttpResponseStatus responseStatus)
writeResponse
in class ResponseWriter
public void writeResponse(HttpRequest request, io.netty.handler.codec.http.HttpResponseStatus responseStatus, String body, String contentType)
writeResponse
in class ResponseWriter
public void writeResponse(HttpRequest request, HttpResponse response, boolean apiResponse)
writeResponse
in class ResponseWriter
Copyright © 2020. All rights reserved.