Package org.mockserver.model
package org.mockserver.model
-
ClassDescriptionBody<T>Shared deterministic probability-draw logic for chaos injection, used by both
HttpChaosProfile(HTTP fault injection) andLlmChaosProfile(LLM fault injection).Serialisable predicate descriptors for LLM conversation matching.Describes a cross-protocol scenario correlation: when a protocol event matchingCrossProtocolScenario.trigger(and optionallyCrossProtocolScenario.matchPattern) is observed, the named scenario is advanced toCrossProtocolScenario.targetState.Identifies the protocol event that triggers a cross-protocol scenario state transition.Represents a single step in an ordered multi-action expectation pipeline.Controls what happens to an expectation's primary response when a blockingbefore-actionfails or times out.Response action for true bidirectional gRPC streaming.Reactive rule for bidirectional gRPC streaming: each inbound client message is matched against rules in order; the first rule whoseGrpcBidiRule.matchJsonmatches the inbound message JSON emits itsGrpcBidiRule.responsesas DATA frames.Declarative gRPC fault/chaos injection profile for probabilistically returning gRPC error statuses (UNAVAILABLE, DEADLINE_EXCEEDED, RESOURCE_EXHAUSTED, INTERNAL, etc.) on matched gRPC method calls, with latency, quota, and count-window controls.Declarative HTTP fault/chaos injection for mocked and forwarded responses: probabilistic connection-drop injection, error status injection (e.g. 500, 503, 429 with an optionalRetry-Afterheader), latency injection, and response-body corruption (truncateBodyAtFractionkeeps only a leading fraction of the body bytes;malformedBodyappends a broken-JSON fragment) for testing client-side body-parsing resilience, and a slow ("dribbled") response (slowResponseChunkSize+slowResponseChunkDelaysend the body in small chunks with a delay between each) for testing read timeouts on a trickling response.Forward a request to an upstream host; if upstream returns a configured status code (default 500-599) or times out, return a fallback mock response.KeysAndValuesModifier<T extends KeysAndValues<I,T>, K extends KeysAndValuesModifier<T, K, I>, I extends KeyAndValue> KeysToMultiValuesModifier<T extends KeysToMultiValues<I,T>, K extends KeysToMultiValuesModifier<T, K, I>, I extends KeyToMultiValue> Declarative fault/chaos injection for anHttpLlmResponse, for testing agent resilience: probabilistic provider errors (e.g. 429/529 with aRetry-Afterheader), mid-stream truncation, and malformed SSE chunks.Opt-in normalisation applied to LLM prompt text beforeConversationPredicatessubstring/regex comparisons are evaluated.Controls how GraphQL body matching compares the selection set (fields).A chunk sink for streaming response bodies.Declarative TCP-layer fault/chaos injection profile, applied at the raw byte level before HTTP decoding.Represents a timed auto-transition for a scenario state machine.Body matcher that delegates matching to a WASM module stored in theWasmStore.