Class HttpResponse
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.contract_testing.contractcase.definitions.matchers.base.AnyMatcher
-
- io.contract_testing.contractcase.definitions.matchers.http.HttpResponse
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-08-20T01:46:20.844Z") @Stability(Stable) public class HttpResponse extends AnyMatcher
Matches any HTTP Response with the provided properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpResponse.BuilderA fluent builder forHttpResponse.
-
Constructor Summary
Constructors Modifier Constructor Description HttpResponse(HttpResponseExample responseExample)Matches any HTTP Response with the provided properties.protectedHttpResponse(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedHttpResponse(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetBody()ObjectgetHeaders()ObjectgetStatus()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
-
HttpResponse
protected HttpResponse(software.amazon.jsii.JsiiObjectRef objRef)
-
HttpResponse
protected HttpResponse(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
HttpResponse
@Stability(Stable) public HttpResponse(@NotNull HttpResponseExample responseExample)Matches any HTTP Response with the provided properties.- Parameters:
responseExample-- 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}
-
getStatus
@Stability(Stable) @NotNull public Object getStatus()
-
getBody
@Stability(Stable) @Nullable public Object getBody()
-
getHeaders
@Stability(Stable) @Nullable public Object getHeaders()
-
getUniqueName
@Stability(Stable) @Nullable public String getUniqueName()
-
-