Enum Class BreakpointPhase

java.lang.Object
java.lang.Enum<BreakpointPhase>
org.mockserver.mock.breakpoint.BreakpointPhase
All Implemented Interfaces:
Serializable, Comparable<BreakpointPhase>, Constable

public enum BreakpointPhase extends Enum<BreakpointPhase>
Phases at which a breakpoint matcher can intercept a forwarded exchange.
  • REQUEST — before the request is forwarded upstream
  • RESPONSE — after the upstream response arrives, before it is written to the client
  • RESPONSE_STREAM — each outbound streaming frame (SSE, chunked, gRPC, WebSocket)
  • INBOUND_STREAM — each inbound frame on a bidirectional connection (WebSocket, gRPC bidi, GraphQL subscription)
  • Enum Constant Details

  • Method Details

    • values

      public static BreakpointPhase[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BreakpointPhase valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null