Class StringPrefix
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.contract_testing.contractcase.definitions.matchers.base.AnyMatcher
-
- io.contract_testing.contractcase.definitions.matchers.strings.StringPrefix
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
- Direct Known Subclasses:
BasicAuthHeaderValue,BearerTokenHeaderValue
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-08-20T01:46:20.847Z") @Stability(Stable) public class StringPrefix extends AnyMatcher
Matches any string that begins with the given constant string prefix, and ends with a matchable suffix.At match time, the actual string is checked for the constant prefix, and then the rest of the string is passed to the suffix matcher.. The suffix matcher must be expecting a string. See also
StringSuffix
-
-
Constructor Summary
Constructors Modifier Constructor Description StringPrefix(String prefix, Object suffix)Matches any string that begins with the given constant string prefix, and ends with a matchable suffix.protectedStringPrefix(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedStringPrefix(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
StringPrefix
protected StringPrefix(software.amazon.jsii.JsiiObjectRef objRef)
-
StringPrefix
protected StringPrefix(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
StringPrefix
@Stability(Stable) public StringPrefix(@NotNull String prefix, @NotNull Object suffix)Matches any string that begins with the given constant string prefix, and ends with a matchable suffix.At match time, the actual string is checked for the constant prefix, and then the rest of the string is passed to the suffix matcher.. The suffix matcher must be expecting a string. See also
StringSuffix- Parameters:
prefix-- The prefix string.
suffix-- A string or matcher to match against the suffix.
-
-
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}
-
-