Uses of Class
org.mockserver.model.HttpResponse
-
-
Uses of HttpResponse in org.mockserver.callback
Methods in org.mockserver.callback with parameters of type HttpResponse Modifier and Type Method Description void
WebSocketResponseCallback. handle(HttpResponse httpResponse)
void
WebSocketRequestCallback. handleError(HttpResponse httpResponse)
-
Uses of HttpResponse in org.mockserver.client
Methods in org.mockserver.client that return HttpResponse Modifier and Type Method Description HttpResponse
NettyHttpClient. sendRequest(HttpRequest httpRequest, long timeout, TimeUnit unit)
Methods in org.mockserver.client that return types with arguments of type HttpResponse Modifier and Type Method Description com.google.common.util.concurrent.SettableFuture<HttpResponse>
NettyHttpClient. sendRequest(HttpRequest httpRequest)
com.google.common.util.concurrent.SettableFuture<HttpResponse>
NettyHttpClient. sendRequest(HttpRequest httpRequest, InetSocketAddress remoteAddress)
com.google.common.util.concurrent.SettableFuture<HttpResponse>
NettyHttpClient. sendRequest(HttpRequest httpRequest, InetSocketAddress remoteAddress, Integer connectionTimeoutMillis)
Methods in org.mockserver.client with parameters of type HttpResponse Modifier and Type Method Description void
HttpClientHandler. channelRead0(io.netty.channel.ChannelHandlerContext ctx, HttpResponse response)
void
ForwardChainExpectation. respond(HttpResponse httpResponse)
Return response when expectation is matched -
Uses of HttpResponse in org.mockserver.codec
Methods in org.mockserver.codec with parameters of type HttpResponse Modifier and Type Method Description protected void
MockServerResponseEncoder. encode(io.netty.channel.ChannelHandlerContext ctx, HttpResponse response, List<Object> out)
io.netty.handler.codec.http.DefaultFullHttpResponse
MockServerResponseEncoder. encode(HttpResponse httpResponse)
-
Uses of HttpResponse in org.mockserver.codec.mappers
Methods in org.mockserver.codec.mappers that return HttpResponse Modifier and Type Method Description HttpResponse
FullHttpResponseToMockServerResponse. mapMockServerResponseToFullHttpResponse(io.netty.handler.codec.http.FullHttpResponse fullHttpResponse)
-
Uses of HttpResponse in org.mockserver.cors
Methods in org.mockserver.cors with parameters of type HttpResponse Modifier and Type Method Description void
CORSHeaders. addCORSHeaders(HttpRequest request, HttpResponse response)
-
Uses of HttpResponse in org.mockserver.echo.http
Fields in org.mockserver.echo.http declared as HttpResponse Modifier and Type Field Description HttpResponse
EchoServer.OnlyResponse. httpResponse
Fields in org.mockserver.echo.http with type parameters of type HttpResponse Modifier and Type Field Description Queue<HttpResponse>
EchoServer.NextResponse. httpResponse
Methods in org.mockserver.echo.http with parameters of type HttpResponse Modifier and Type Method Description EchoServer
EchoServer. withNextResponse(HttpResponse... httpResponses)
EchoServer
EchoServer. withOnlyResponse(HttpResponse httpResponse)
-
Uses of HttpResponse in org.mockserver.integration.callback
Fields in org.mockserver.integration.callback declared as HttpResponse Modifier and Type Field Description static HttpResponse
PrecannedTestExpectationResponseCallback. httpResponse
static HttpResponse
StaticTestExpectationResponseCallback. httpResponse
Methods in org.mockserver.integration.callback that return HttpResponse Modifier and Type Method Description HttpResponse
PrecannedTestExpectationResponseCallback. handle(HttpRequest httpRequest)
HttpResponse
StaticTestExpectationResponseCallback. handle(HttpRequest httpRequest)
-
Uses of HttpResponse in org.mockserver.integration.server
Methods in org.mockserver.integration.server that return HttpResponse Modifier and Type Method Description protected HttpResponse
AbstractMockingIntegrationTestBase. makeRequest(HttpRequest httpRequest, Collection<String> headersToIgnore)
-
Uses of HttpResponse in org.mockserver.log.model
Methods in org.mockserver.log.model that return HttpResponse Modifier and Type Method Description HttpResponse
RequestResponseLogEntry. getHttpResponse()
Constructors in org.mockserver.log.model with parameters of type HttpResponse Constructor Description RequestResponseLogEntry(HttpRequest httpRequest, HttpResponse httpResponse)
-
Uses of HttpResponse in org.mockserver.mappers
Methods in org.mockserver.mappers with parameters of type HttpResponse Modifier and Type Method Description void
MockServerResponseToHttpServletResponseEncoder. mapMockServerResponseToHttpServletResponse(HttpResponse httpResponse, javax.servlet.http.HttpServletResponse httpServletResponse)
-
Uses of HttpResponse in org.mockserver.mock
Methods in org.mockserver.mock that return HttpResponse Modifier and Type Method Description HttpResponse
Expectation. getHttpResponse()
HttpResponse
HttpStateHandler. retrieve(HttpRequest request)
Methods in org.mockserver.mock with parameters of type HttpResponse Modifier and Type Method Description Expectation
Expectation. thenRespond(HttpResponse httpResponse)
-
Uses of HttpResponse in org.mockserver.mock.action
Methods in org.mockserver.mock.action that return HttpResponse Modifier and Type Method Description HttpResponse
ExpectationResponseCallback. handle(HttpRequest httpRequest)
Called for every request when expectation condition has been satisfied.HttpResponse
HttpResponseActionHandler. handle(HttpResponse httpResponse)
HttpResponse
HttpResponseClassCallbackActionHandler. handle(HttpClassCallback httpClassCallback, HttpRequest request)
HttpResponse
HttpResponseTemplateActionHandler. handle(HttpTemplate httpTemplate, HttpRequest httpRequest)
Methods in org.mockserver.mock.action that return types with arguments of type HttpResponse Modifier and Type Method Description com.google.common.util.concurrent.SettableFuture<HttpResponse>
HttpForwardActionResult. getHttpResponse()
Methods in org.mockserver.mock.action with parameters of type HttpResponse Modifier and Type Method Description HttpResponse
HttpResponseActionHandler. handle(HttpResponse httpResponse)
-
Uses of HttpResponse in org.mockserver.model
Methods in org.mockserver.model that return HttpResponse Modifier and Type Method Description HttpResponse
HttpResponse. clone()
static HttpResponse
HttpResponse. notFoundResponse()
Static builder to create a not found response.HttpResponse
HttpResponse. removeHeader(String name)
HttpResponse
HttpResponse. removeHeader(NottableString name)
HttpResponse
HttpResponse. replaceHeader(String name, String... values)
Update header to return as a Header object, if a header with the same name already exists it will be modifiedHttpResponse
HttpResponse. replaceHeader(Header header)
Update header to return as a Header object, if a header with the same name already exists it will be modifiedstatic HttpResponse
HttpResponse. response()
Static builder to create a response.static HttpResponse
HttpResponse. response(String body)
Static builder to create a response with a 200 status code and the string response body.HttpResponse
HttpResponse. withBody(byte[] body)
Set response body to return as binary such as a pdf or imageHttpResponse
HttpResponse. withBody(String body)
Set response body to return as a string response body.HttpResponse
HttpResponse. withBody(String body, com.google.common.net.MediaType contentType)
Set response body to return a string response body with the specified encoding.HttpResponse
HttpResponse. withBody(String body, Charset charset)
Set response body to return a string response body with the specified encoding.HttpResponse
HttpResponse. withBody(BodyWithContentType body)
Set the body to return for example:HttpResponse
HttpResponse. withConnectionOptions(ConnectionOptions connectionOptions)
The connection options for override the default connection behaviour, this allows full control of headers such as "Connection" or "Content-Length" or controlling whether the socket is closed after the response has been sentHttpResponse
HttpResponse. withCookie(String name, String value)
Add cookie to return as Set-Cookie headerHttpResponse
HttpResponse. withCookie(Cookie cookie)
Add cookie to return as Set-Cookie headerHttpResponse
HttpResponse. withCookie(NottableString name, NottableString value)
Adds one cookie to match on or to not match on using the NottableString, each NottableString can either be a positive matching value, such as string("match"), or a value to not match on, such as not("do not match"), the string values passed to the NottableString can be a plain string or a regex (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)HttpResponse
HttpResponse. withCookies(List<Cookie> cookies)
The cookies to return as Set-Cookie headers as a list of Cookie objectsHttpResponse
HttpResponse. withCookies(Cookie... cookies)
The cookies to return as Set-Cookie headers as a varargs of Cookie objectsHttpResponse
HttpResponse. withCookies(Cookies cookies)
HttpResponse
HttpResponse. withHeader(String name, String... values)
Add a header to return as a Header object, if a header with the same name already exists this will NOT be modified but two headers will existHttpResponse
HttpResponse. withHeader(Header header)
Add a header to return as a Header object, if a header with the same name already exists this will NOT be modified but two headers will existHttpResponse
HttpResponse. withHeader(NottableString name, NottableString... values)
Add a header to return as a Header object, if a header with the same name already exists this will NOT be modified but two headers will existHttpResponse
HttpResponse. withHeaders(List<Header> headers)
The headers to return as a list of Header objectsHttpResponse
HttpResponse. withHeaders(Header... headers)
The headers to return as a varargs of Header objectsHttpResponse
HttpResponse. withHeaders(Headers headers)
HttpResponse
HttpResponse. withReasonPhrase(String reasonPhrase)
The reason phrase to return, if no reason code is returned this will be defaulted to the standard reason phrase for the statusCode, i.e.HttpResponse
HttpResponse. withStatusCode(Integer statusCode)
The status code to return, such as 200, 404, the status code specified here will result in the default status message for this status code for example for 200 the status message "OK" is used -
Uses of HttpResponse in org.mockserver.responsewriter
Methods in org.mockserver.responsewriter with parameters of type HttpResponse Modifier and Type Method Description protected void
ResponseWriter. addConnectionHeader(HttpRequest request, HttpResponse response)
void
NettyResponseWriter. writeResponse(HttpRequest request, HttpResponse response, boolean apiResponse)
abstract void
ResponseWriter. writeResponse(HttpRequest request, HttpResponse response, boolean apiResponse)
-
Uses of HttpResponse in org.mockserver.serialization
Methods in org.mockserver.serialization that return HttpResponse Modifier and Type Method Description HttpResponse
HttpResponseSerializer. deserialize(String jsonHttpResponse)
HttpResponse[]
HttpResponseSerializer. deserializeArray(String jsonHttpResponses)
Methods in org.mockserver.serialization that return types with arguments of type HttpResponse Modifier and Type Method Description Class<HttpResponse>
HttpResponseSerializer. supportsType()
Methods in org.mockserver.serialization with parameters of type HttpResponse Modifier and Type Method Description String
HttpResponseSerializer. serialize(HttpResponse httpResponse)
String
HttpResponseSerializer. serialize(HttpResponse... httpResponses)
Method parameters in org.mockserver.serialization with type arguments of type HttpResponse Modifier and Type Method Description String
HttpResponseSerializer. serialize(List<HttpResponse> httpResponses)
-
Uses of HttpResponse in org.mockserver.serialization.java
Methods in org.mockserver.serialization.java with parameters of type HttpResponse Modifier and Type Method Description String
HttpResponseToJavaSerializer. serialize(int numberOfSpacesToIndent, HttpResponse httpResponse)
-
Uses of HttpResponse in org.mockserver.serialization.model
Methods in org.mockserver.serialization.model that return HttpResponse Modifier and Type Method Description HttpResponse
HttpResponseDTO. buildObject()
Constructors in org.mockserver.serialization.model with parameters of type HttpResponse Constructor Description HttpResponseDTO(HttpResponse httpResponse)
-
Uses of HttpResponse in org.mockserver.serialization.serializers.response
Methods in org.mockserver.serialization.serializers.response with parameters of type HttpResponse Modifier and Type Method Description void
HttpResponseSerializer. serialize(HttpResponse httpResponse, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
-
Uses of HttpResponse in org.mockserver.servlet.responsewriter
Methods in org.mockserver.servlet.responsewriter with parameters of type HttpResponse Modifier and Type Method Description void
ServletResponseWriter. writeResponse(HttpRequest request, HttpResponse response, boolean apiResponse)
-