Class HttpOverrideForwardedRequest
java.lang.Object
de.gematik.test.tiger.mockserver.model.HttpOverrideForwardedRequest
- All Implemented Interfaces:
Action
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.gematik.test.tiger.mockserver.model.Action
Action.Direction, Action.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanstatic HttpOverrideForwardedRequestStatic builder which will allow overriding proxied request with the specified request.static HttpOverrideForwardedRequestforwardOverriddenRequest(HttpRequest httpRequest) Static builder which will allow overriding proxied request with the specified request.static HttpOverrideForwardedRequestforwardOverriddenRequest(HttpRequest httpRequest, HttpResponse httpResponse) Static builder which will allow overriding proxied request with the specified request.getType()inthashCode()withRequestOverride(HttpRequest httpRequest) All fields, headers, cookies, etc of the provided request will be overriddenwithResponseOverride(HttpResponse httpResponse) All fields, headers, cookies, etc of the provided response will be overriddenvoidwrite(NettyResponseWriter nettyResponseWriter, HttpRequest request)
-
Constructor Details
-
HttpOverrideForwardedRequest
public HttpOverrideForwardedRequest()
-
-
Method Details
-
forwardOverriddenRequest
Static builder which will allow overriding proxied request with the specified request. -
forwardOverriddenRequest
Static builder which will allow overriding proxied request with the specified request.- Parameters:
httpRequest- the HttpRequest specifying what to override
-
forwardOverriddenRequest
public static HttpOverrideForwardedRequest forwardOverriddenRequest(HttpRequest httpRequest, HttpResponse httpResponse) Static builder which will allow overriding proxied request with the specified request.- Parameters:
httpRequest- the HttpRequest specifying what to overridehttpResponse- the HttpRequest specifying what to override
-
withRequestOverride
All fields, headers, cookies, etc of the provided request will be overridden- Parameters:
httpRequest- the HttpRequest specifying what to override
-
withResponseOverride
All fields, headers, cookies, etc of the provided response will be overridden- Parameters:
httpResponse- the HttpResponse specifying what to override
-
getType
-
write
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getExpectationId
- Specified by:
getExpectationIdin interfaceAction
-
getRequestOverride
-
getResponseOverride
-