Class UpstreamReply

java.lang.Object
org.mockserver.netty.proxy.relay.UpstreamReply

public final class UpstreamReply extends Object
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 Details

  • Method Details

    • drop

      public static UpstreamReply drop()
    • replaceWith

      public static UpstreamReply replaceWith(byte[] replacement, long delayMillis)
      Parameters:
      replacement - written in place of the reply; null or empty writes nothing, so the reply is only dropped
      delayMillis - the replacement is not written before this long after its message was read