Package org.mockserver.model
Class GrpcBidiRule
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.model.GrpcBidiRule
Reactive rule for bidirectional gRPC streaming: each inbound client message is matched
against rules in order; the first rule whose
matchJson matches the inbound
message JSON emits its responses as DATA frames.
Matching semantics mirror WebSocketMessageMatcher.getTextMatcher() /
BidirectionalWebSocketFrameHandler.matches: exact string match first,
then regex via String.matches().
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GrpcBidiRulestatic GrpcBidiRulegrpcBidiRule(String matchJson) inthashCode()withMatchJson(String matchJson) withMatchJson(NottableString matchJson) withResponse(String json) withResponse(String json, Delay delay) withResponse(GrpcStreamMessage response) withResponses(List<GrpcStreamMessage> responses) withResponses(GrpcStreamMessage... responses) Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Constructor Details
-
GrpcBidiRule
public GrpcBidiRule()
-
-
Method Details
-
grpcBidiRule
-
grpcBidiRule
-
getMatchJson
-
withMatchJson
-
withMatchJson
-
getResponses
-
withResponses
-
withResponses
-
withResponse
-
withResponse
-
withResponse
-
equals
- Overrides:
equalsin classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()- Overrides:
hashCodein classObjectWithReflectiveEqualsHashCodeToString
-