Uses of Class
de.gematik.test.tiger.mockserver.model.HttpResponse
Packages that use HttpResponse
Package
Description
-
Uses of HttpResponse in de.gematik.test.tiger.mockserver.codec
Methods in de.gematik.test.tiger.mockserver.codec with parameters of type HttpResponseModifier and TypeMethodDescriptionprotected voidMockServerHttpToNettyHttpResponseEncoder.encode(io.netty.channel.ChannelHandlerContext ctx, HttpResponse response, List<Object> out) -
Uses of HttpResponse in de.gematik.test.tiger.mockserver.httpclient
Methods in de.gematik.test.tiger.mockserver.httpclient that return types with arguments of type HttpResponseModifier and TypeMethodDescriptionNettyHttpClient.sendRequest(HttpRequestInfo requestInfo) NettyHttpClient.sendRequest(HttpRequestInfo requestInfo, Long customTimeout) -
Uses of HttpResponse in de.gematik.test.tiger.mockserver.mappers
Methods in de.gematik.test.tiger.mockserver.mappers that return HttpResponseModifier and TypeMethodDescriptionFullHttpResponseToMockServerHttpResponse.mapFullHttpResponseToMockServerResponse(io.netty.handler.codec.http.FullHttpResponse fullHttpResponse) Methods in de.gematik.test.tiger.mockserver.mappers with parameters of type HttpResponseModifier and TypeMethodDescriptionList<io.netty.handler.codec.http.DefaultHttpObject>MockServerHttpResponseToFullHttpResponse.mapMockServerResponseToNettyResponse(HttpResponse httpResponse) -
Uses of HttpResponse in de.gematik.test.tiger.mockserver.mock.action
Methods in de.gematik.test.tiger.mockserver.mock.action that return HttpResponseModifier and TypeMethodDescriptionExpectationForwardAndResponseCallback.handle(HttpRequest httpRequest, HttpResponse httpResponse) Called for every response received from a proxied request, the return value is the returned by MockServer.ExpectationResponseCallback.handle(HttpRequest httpRequest) Called for every request when expectation condition has been satisfied.Methods in de.gematik.test.tiger.mockserver.mock.action with parameters of type HttpResponseModifier and TypeMethodDescriptionExpectationForwardAndResponseCallback.handle(HttpRequest httpRequest, HttpResponse httpResponse) Called for every response received from a proxied request, the return value is the returned by MockServer. -
Uses of HttpResponse in de.gematik.test.tiger.mockserver.mock.action.http
Methods in de.gematik.test.tiger.mockserver.mock.action.http that return types with arguments of type HttpResponseMethods in de.gematik.test.tiger.mockserver.mock.action.http with parameters of type HttpResponseModifier and TypeMethodDescriptionvoidHttpActionHandler.writeForwardActionResponse(HttpResponse response, NettyResponseWriter responseWriter, HttpRequest request) Method parameters in de.gematik.test.tiger.mockserver.mock.action.http with type arguments of type HttpResponseModifier and TypeMethodDescriptionvoidHttpActionHandler.executeAfterForwardActionResponse(HttpForwardActionResult responseFuture, BiConsumer<HttpResponse, Throwable> command, boolean synchronous) HttpForwardAction.sendRequest(HttpRequest request, io.netty.channel.Channel incomingChannel, InetSocketAddress remoteAddress, Function<HttpResponse, HttpResponse> overrideHttpResponse) HttpForwardAction.sendRequest(HttpRequest request, io.netty.channel.Channel incomingChannel, InetSocketAddress remoteAddress, Function<HttpResponse, HttpResponse> overrideHttpResponse) HttpForwardActionResult.setHttpResponse(CompletableFuture<HttpResponse> httpResponse) Constructor parameters in de.gematik.test.tiger.mockserver.mock.action.http with type arguments of type HttpResponseModifierConstructorDescriptionHttpForwardActionResult(HttpRequest httpRequest, CompletableFuture<HttpResponse> httpResponse, Function<HttpResponse, HttpResponse> overrideHttpResponse) HttpForwardActionResult(HttpRequest httpRequest, CompletableFuture<HttpResponse> httpResponse, Function<HttpResponse, HttpResponse> overrideHttpResponse) HttpForwardActionResult(HttpRequest httpRequest, CompletableFuture<HttpResponse> httpResponse, Function<HttpResponse, HttpResponse> overrideHttpResponse) -
Uses of HttpResponse in de.gematik.test.tiger.mockserver.model
Methods in de.gematik.test.tiger.mockserver.model that return HttpResponseModifier and TypeMethodDescriptionHttpResponse.clone()HttpOverrideForwardedRequest.getResponseOverride()static HttpResponseHttpResponse.notFoundResponse()Static builder to create a not found response.HttpResponse.removeHeader(String name) 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 HttpResponseHttpResponse.response()Static builder to create a response.static HttpResponseStatic builder to create a response with a 200 status code and the string response body.HttpResponse.withBody(byte[] body) Set response body to return as binary such as a pdf or imageHttpResponse.withBody(BodyWithContentType body) Set the body to return for example:Set response body to return as a string response body.Set response body to return a string response body with the specified encoding.Set response body to return a string response body with the specified encoding.HttpResponse.withCookies(Cookies cookies) 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.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.withHeaders(Headers headers) 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. for a statusCode of 200 the standard reason phrase is "OK"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 usedHttpResponse.withStreamId(Integer streamId) Methods in de.gematik.test.tiger.mockserver.model with parameters of type HttpResponseModifier and TypeMethodDescriptionstatic HttpOverrideForwardedRequestHttpOverrideForwardedRequest.forwardOverriddenRequest(HttpRequest httpRequest, HttpResponse httpResponse) Static builder which will allow overriding proxied request with the specified request.HttpOverrideForwardedRequest.withResponseOverride(HttpResponse httpResponse) All fields, headers, cookies, etc of the provided response will be overridden -
Uses of HttpResponse in de.gematik.test.tiger.mockserver.netty.responsewriter
Methods in de.gematik.test.tiger.mockserver.netty.responsewriter that return HttpResponseModifier and TypeMethodDescriptionprotected HttpResponseNettyResponseWriter.addConnectionHeader(HttpRequest request, HttpResponse response) Methods in de.gematik.test.tiger.mockserver.netty.responsewriter with parameters of type HttpResponseModifier and TypeMethodDescriptionprotected HttpResponseNettyResponseWriter.addConnectionHeader(HttpRequest request, HttpResponse response) voidNettyResponseWriter.sendResponse(HttpRequest request, HttpResponse response) voidNettyResponseWriter.writeHttpResponse(HttpRequest request, HttpResponse response) -
Uses of HttpResponse in de.gematik.test.tiger.mockserver.scheduler
Method parameters in de.gematik.test.tiger.mockserver.scheduler with type arguments of type HttpResponseModifier and TypeMethodDescriptionvoidScheduler.submit(HttpForwardActionResult future, BiConsumer<HttpResponse, Throwable> consumer, boolean synchronous) -
Uses of HttpResponse in de.gematik.test.tiger.proxy
Methods in de.gematik.test.tiger.proxy with parameters of type HttpResponseModifier and TypeMethodDescriptionMockServerToRbelConverter.convertResponse(HttpResponse response, String senderUrl, String receiverUrl, CompletableFuture<RbelElement> pairedParsedRequest, Optional<ZonedDateTime> timestamp) MockServerToRbelConverter.responseToRbelMessage(HttpResponse response) -
Uses of HttpResponse in de.gematik.test.tiger.proxy.handler
Methods in de.gematik.test.tiger.proxy.handler that return HttpResponseModifier and TypeMethodDescriptionfinal HttpResponseAbstractTigerRouteCallback.handle(HttpRequest req, HttpResponse resp) Methods in de.gematik.test.tiger.proxy.handler with parameters of type HttpResponseModifier and TypeMethodDescriptionvoidAbstractTigerRouteCallback.applyModifications(HttpResponse response) voidAbstractTigerRouteCallback.doOutgoingResponseLogging(HttpResponse resp) final HttpResponseAbstractTigerRouteCallback.handle(HttpRequest req, HttpResponse resp) voidAbstractTigerRouteCallback.parseMessageAndApplyModifications(HttpResponse response)