Package org.mockserver.netty.proxy.relay
Class UpstreamReply
java.lang.Object
org.mockserver.netty.proxy.relay.UpstreamReply
What a relay does with the upstream's reply to one message it forwards: relays it to the client (the default),
drops it, or drops it and writes other bytes to the client in its place once it has ended.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic UpstreamReplydrop()static UpstreamReplyreplaceWith(byte[] replacement, long delayMillis)
-
Field Details
-
RELAY
-
-
Method Details
-
drop
-
replaceWith
- Parameters:
replacement- written in place of the reply; null or empty writes nothing, so the reply is only droppeddelayMillis- the replacement is not written before this long after its message was read
-