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 voidWebSocketResponseCallback. handle(HttpResponse httpResponse)voidWebSocketRequestCallback. handleError(HttpResponse httpResponse) -
Uses of HttpResponse in org.mockserver.client
Methods in org.mockserver.client that return HttpResponse Modifier and Type Method Description HttpResponseNettyHttpClient. 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 voidHttpClientHandler. channelRead0(io.netty.channel.ChannelHandlerContext ctx, HttpResponse response)voidForwardChainExpectation. 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 voidMockServerResponseEncoder. encode(io.netty.channel.ChannelHandlerContext ctx, HttpResponse response, List<Object> out)io.netty.handler.codec.http.DefaultFullHttpResponseMockServerResponseEncoder. 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 HttpResponseFullHttpResponseToMockServerResponse. 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 voidCORSHeaders. addCORSHeaders(HttpRequest request, HttpResponse response) -
Uses of HttpResponse in org.mockserver.dashboard.model
Methods in org.mockserver.dashboard.model that return HttpResponse Modifier and Type Method Description HttpResponseLogEntryDTO. getHttpResponse()Methods in org.mockserver.dashboard.model with parameters of type HttpResponse Modifier and Type Method Description LogEntryDTOLogEntryDTO. setHttpResponse(HttpResponse httpResponse) -
Uses of HttpResponse in org.mockserver.echo.http
Fields in org.mockserver.echo.http declared as HttpResponse Modifier and Type Field Description HttpResponseEchoServer.OnlyResponse. httpResponseFields in org.mockserver.echo.http with type parameters of type HttpResponse Modifier and Type Field Description Queue<HttpResponse>EchoServer.NextResponse. httpResponseMethods in org.mockserver.echo.http with parameters of type HttpResponse Modifier and Type Method Description EchoServerEchoServer. withNextResponse(HttpResponse... httpResponses)EchoServerEchoServer. 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 HttpResponsePrecannedTestExpectationResponseCallback. httpResponsestatic HttpResponseStaticTestExpectationResponseCallback. httpResponseMethods in org.mockserver.integration.callback that return HttpResponse Modifier and Type Method Description HttpResponsePrecannedTestExpectationResponseCallback. handle(HttpRequest httpRequest)HttpResponseStaticTestExpectationResponseCallback. 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 HttpResponseAbstractMockingIntegrationTestBase. 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 HttpResponseLogEntry. getHttpResponse()Methods in org.mockserver.log.model with parameters of type HttpResponse Modifier and Type Method Description LogEntryLogEntry. setHttpResponse(HttpResponse httpResponse) -
Uses of HttpResponse in org.mockserver.mappers
Methods in org.mockserver.mappers with parameters of type HttpResponse Modifier and Type Method Description voidMockServerResponseToHttpServletResponseEncoder. 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 HttpResponseExpectation. getHttpResponse()HttpResponseHttpStateHandler. retrieve(HttpRequest request)Methods in org.mockserver.mock with parameters of type HttpResponse Modifier and Type Method Description ExpectationExpectation. 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 HttpResponseExpectationResponseCallback. handle(HttpRequest httpRequest)Called for every request when expectation condition has been satisfied.HttpResponseHttpResponseActionHandler. handle(HttpResponse httpResponse)HttpResponseHttpResponseClassCallbackActionHandler. handle(HttpClassCallback httpClassCallback, HttpRequest request)HttpResponseHttpResponseTemplateActionHandler. 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 HttpResponseHttpResponseActionHandler. handle(HttpResponse httpResponse) -
Uses of HttpResponse in org.mockserver.model
Methods in org.mockserver.model that return HttpResponse Modifier and Type Method Description HttpResponseHttpResponse. clone()HttpResponseHttpRequestAndHttpResponse. getHttpResponse()static HttpResponseHttpResponse. notFoundResponse()Static builder to create a not found response.HttpResponseHttpResponse. removeHeader(String name)HttpResponseHttpResponse. removeHeader(NottableString name)HttpResponseHttpResponse. 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 modifiedHttpResponseHttpResponse. replaceHeader(Header header)Update header to return as a Header object, if a header with the same name already exists it will be modifiedstatic HttpResponseHttpResponse. response()Static builder to create a response.static HttpResponseHttpResponse. response(String body)Static builder to create a response with a 200 status code and the string response body.HttpResponseHttpResponse. withBody(byte[] body)Set response body to return as binary such as a pdf or imageHttpResponseHttpResponse. withBody(String body)Set response body to return as a string response body.HttpResponseHttpResponse. withBody(String body, com.google.common.net.MediaType contentType)Set response body to return a string response body with the specified encoding.HttpResponseHttpResponse. withBody(String body, Charset charset)Set response body to return a string response body with the specified encoding.HttpResponseHttpResponse. withBody(BodyWithContentType body)Set the body to return for example:HttpResponseHttpResponse. 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 sentHttpResponseHttpResponse. withCookie(String name, String value)Add cookie to return as Set-Cookie headerHttpResponseHttpResponse. withCookie(Cookie cookie)Add cookie to return as Set-Cookie headerHttpResponseHttpResponse. 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)HttpResponseHttpResponse. withCookies(List<Cookie> cookies)The cookies to return as Set-Cookie headers as a list of Cookie objectsHttpResponseHttpResponse. withCookies(Cookie... cookies)The cookies to return as Set-Cookie headers as a varargs of Cookie objectsHttpResponseHttpResponse. withCookies(Cookies cookies)HttpResponseHttpResponse. 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 existHttpResponseHttpResponse. 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 existHttpResponseHttpResponse. 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 existHttpResponseHttpResponse. withHeaders(List<Header> headers)The headers to return as a list of Header objectsHttpResponseHttpResponse. withHeaders(Header... headers)The headers to return as a varargs of Header objectsHttpResponseHttpResponse. withHeaders(Headers headers)HttpResponseHttpResponse. 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.HttpResponseHttpResponse. 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 usedMethods in org.mockserver.model with parameters of type HttpResponse Modifier and Type Method Description HttpRequestAndHttpResponseHttpRequestAndHttpResponse. setHttpResponse(HttpResponse httpResponse) -
Uses of HttpResponse in org.mockserver.responsewriter
Methods in org.mockserver.responsewriter that return HttpResponse Modifier and Type Method Description protected HttpResponseResponseWriter. addConnectionHeader(HttpRequest request, HttpResponse response)Methods in org.mockserver.responsewriter with parameters of type HttpResponse Modifier and Type Method Description protected HttpResponseResponseWriter. addConnectionHeader(HttpRequest request, HttpResponse response)voidNettyResponseWriter. writeResponse(HttpRequest request, HttpResponse response, boolean apiResponse)abstract voidResponseWriter. 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 HttpResponseHttpResponseSerializer. 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 StringHttpResponseSerializer. serialize(HttpResponse httpResponse)StringHttpResponseSerializer. serialize(HttpResponse... httpResponses)Method parameters in org.mockserver.serialization with type arguments of type HttpResponse Modifier and Type Method Description StringHttpResponseSerializer. 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 StringHttpResponseToJavaSerializer. 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 HttpResponseHttpResponseDTO. 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 voidHttpResponseSerializer. 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 voidServletResponseWriter. writeResponse(HttpRequest request, HttpResponse response, boolean apiResponse)
-