Package org.mockserver.model
Class GrpcStreamMessage
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.model.GrpcStreamMessage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetDelay()getJson()static GrpcStreamMessagestatic GrpcStreamMessagegrpcStreamMessage(String json) inthashCode()withTemplateType(HttpTemplate.TemplateType templateType) Opt-in response templating: when set (toHttpTemplate.TemplateType.VELOCITYorHttpTemplate.TemplateType.MUSTACHE), thegetJson()content is treated as a response template rendered against the matched inbound gRPC message (exposed as the request body, so$!request.body,jsonPath, the built-in helpers and thescenariohelper are all available) rather than emitted verbatim.Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Constructor Details
-
GrpcStreamMessage
public GrpcStreamMessage()
-
-
Method Details
-
grpcStreamMessage
-
grpcStreamMessage
-
withJson
-
getJson
-
withTemplateType
Opt-in response templating: when set (toHttpTemplate.TemplateType.VELOCITYorHttpTemplate.TemplateType.MUSTACHE), thegetJson()content is treated as a response template rendered against the matched inbound gRPC message (exposed as the request body, so$!request.body,jsonPath, the built-in helpers and thescenariohelper are all available) rather than emitted verbatim.When
null(the default) the response is emitted byte-for-byte unchanged, exactly as before this field existed.HttpTemplate.TemplateType.JAVASCRIPTis not supported for bidi stream templating (JavaScript templates construct a full response object rather than a text fragment) and is rejected at render time. -
getTemplateType
-
withDelay
-
withDelay
-
getDelay
-
equals
- Overrides:
equalsin classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()- Overrides:
hashCodein classObjectWithReflectiveEqualsHashCodeToString
-