Class HttpOverrideForwardedRequest
java.lang.Object
de.gematik.test.tiger.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
de.gematik.test.tiger.mockserver.model.ObjectWithJsonToString
de.gematik.test.tiger.mockserver.model.Action<HttpOverrideForwardedRequest>
de.gematik.test.tiger.mockserver.model.HttpOverrideForwardedRequest
-
Nested Class Summary
Nested classes/interfaces inherited from class 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) Methods inherited from class de.gematik.test.tiger.mockserver.model.Action
getExpectationId, setExpectationId, toStringMethods inherited from class de.gematik.test.tiger.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
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
- Specified by:
getTypein classAction<HttpOverrideForwardedRequest>
-
write
- Specified by:
writein classAction<HttpOverrideForwardedRequest>
-
equals
- Overrides:
equalsin classAction<HttpOverrideForwardedRequest>
-
canEqual
- Overrides:
canEqualin classAction<HttpOverrideForwardedRequest>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAction<HttpOverrideForwardedRequest>
-
getRequestOverride
-
getResponseOverride
-