Class HttpRequest
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.contract_testing.contractcase.definitions.matchers.base.AnyMatcher
-
- io.contract_testing.contractcase.definitions.matchers.http.HttpRequest
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-08-20T01:46:20.843Z") @Stability(Stable) public class HttpRequest extends AnyMatcher
Matches any HTTP Request with the provided properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpRequest.BuilderA fluent builder forHttpRequest.
-
Constructor Summary
Constructors Modifier Constructor Description HttpRequest(HttpRequestExample requestExample)Matches any HTTP Request with the provided properties.protectedHttpRequest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedHttpRequest(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetBody()ObjectgetHeaders()ObjectgetMethod()ObjectgetPath()ObjectgetQuery()StringgetUniqueName()ObjecttoJSON()For non-TypeScript implementations (seeAnyMatcher.toJSON).-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
HttpRequest
protected HttpRequest(software.amazon.jsii.JsiiObjectRef objRef)
-
HttpRequest
protected HttpRequest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
HttpRequest
@Stability(Stable) public HttpRequest(@NotNull HttpRequestExample requestExample)Matches any HTTP Request with the provided properties.- Parameters:
requestExample-- An HttpResponseExample that describes the response.
-
-
Method Detail
-
toJSON
@Stability(Stable) @NotNull public Object toJSON()
For non-TypeScript implementations (seeAnyMatcher.toJSON).- Overrides:
toJSONin classAnyMatcher- Returns:
- An object in the matcher format described {@link https://case.contract-testing.io/docs/reference/plugin-framework in the Extending ContractCase documentation}
-
getMethod
@Stability(Stable) @NotNull public Object getMethod()
-
getPath
@Stability(Stable) @NotNull public Object getPath()
-
getBody
@Stability(Stable) @Nullable public Object getBody()
-
getHeaders
@Stability(Stable) @Nullable public Object getHeaders()
-
getQuery
@Stability(Stable) @Nullable public Object getQuery()
-
getUniqueName
@Stability(Stable) @Nullable public String getUniqueName()
-
-