Package org.mockserver.responsewriter
Class ResponseWriter
- java.lang.Object
-
- org.mockserver.responsewriter.ResponseWriter
-
- Direct Known Subclasses:
NettyResponseWriter
,ServletResponseWriter
public abstract class ResponseWriter extends Object
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description ResponseWriter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected HttpResponse
addConnectionHeader(HttpRequest request, HttpResponse response)
abstract void
writeResponse(HttpRequest request, io.netty.handler.codec.http.HttpResponseStatus responseStatus)
abstract void
writeResponse(HttpRequest request, io.netty.handler.codec.http.HttpResponseStatus responseStatus, String body, String contentType)
abstract void
writeResponse(HttpRequest request, HttpResponse response, boolean apiResponse)
-
-
-
Method Detail
-
writeResponse
public abstract void writeResponse(HttpRequest request, io.netty.handler.codec.http.HttpResponseStatus responseStatus)
-
writeResponse
public abstract void writeResponse(HttpRequest request, io.netty.handler.codec.http.HttpResponseStatus responseStatus, String body, String contentType)
-
writeResponse
public abstract void writeResponse(HttpRequest request, HttpResponse response, boolean apiResponse)
-
addConnectionHeader
protected HttpResponse addConnectionHeader(HttpRequest request, HttpResponse response)
-
-