Class HttpRequestExample.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.contract_testing.contractcase.definitions.matchers.http.HttpRequestExample.Jsii$Proxy
-
- All Implemented Interfaces:
HttpRequestExample,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- HttpRequestExample
@Stability(Stable) @Internal public static final class HttpRequestExample.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HttpRequestExample
An implementation forHttpRequestExample
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.contract_testing.contractcase.definitions.matchers.http.HttpRequestExample
HttpRequestExample.Builder, HttpRequestExample.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(HttpRequestExample.Builder builder)Constructor that initializes the object based on literal property values passed by theHttpRequestExample.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)ObjectgetBody()A test equivalence matcher or json object that describes the body for this response.ObjectgetHeaders()A Map of header names and associated test-equivalence matcher values accepted by this example.ObjectgetMethod()A string or string matcher that matches the method used for this example (eg"GET"or"POST").ObjectgetPath()A string or string matcher that matches the path of this example.ObjectgetQuery()A test-equivalence matcher for the query.StringgetUniqueName()What unique name, if any, to give to this request.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(HttpRequestExample.Builder builder)
Constructor that initializes the object based on literal property values passed by theHttpRequestExample.Builder.
-
-
Method Detail
-
getMethod
public final Object getMethod()
Description copied from interface:HttpRequestExampleA string or string matcher that matches the method used for this example (eg"GET"or"POST").Case insensitive. Note that DELETE, GET and HEAD requests should not have bodies - see the HTTP RFCs for details.
- Specified by:
getMethodin interfaceHttpRequestExample
-
getPath
public final Object getPath()
Description copied from interface:HttpRequestExampleA string or string matcher that matches the path of this example.Note that any query parameters must be in the query, not in the path.
- Specified by:
getPathin interfaceHttpRequestExample
-
getBody
public final Object getBody()
Description copied from interface:HttpRequestExampleA test equivalence matcher or json object that describes the body for this response.If not provided, no body matching is performed.
- Specified by:
getBodyin interfaceHttpRequestExample
-
getHeaders
public final Object getHeaders()
Description copied from interface:HttpRequestExampleA Map of header names and associated test-equivalence matcher values accepted by this example.If not provided, no header matching is performed
- Specified by:
getHeadersin interfaceHttpRequestExample
-
getQuery
public final Object getQuery()
Description copied from interface:HttpRequestExampleA test-equivalence matcher for the query.Usually this is a Map of test-equivalence matchers to match the parsed query string, keyed by parameter name. Repeated parameters are collated and put in an array in this map.
- Specified by:
getQueryin interfaceHttpRequestExample
-
getUniqueName
public final String getUniqueName()
Description copied from interface:HttpRequestExampleWhat unique name, if any, to give to this request.- Specified by:
getUniqueNamein interfaceHttpRequestExample
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-