Package org.mockserver.client
Interface BreakpointStreamFrameHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handler invoked when a RESPONSE_STREAM or INBOUND_STREAM phase breakpoint is hit.
The paused frame DTO is passed to the handler; the return value is the decision
DTO that determines how the frame is resolved.
The handler receives a PausedStreamFrameDTO and must return a
StreamFrameDecisionDTO with the correlationId echoed from the
input and an action of CONTINUE, MODIFY, DROP, INJECT, or CLOSE.
-
Method Summary
Modifier and TypeMethodDescriptionhandle(PausedStreamFrameDTO pausedFrame) Handle a paused stream frame at the RESPONSE_STREAM or INBOUND_STREAM breakpoint phase.
-
Method Details
-
handle
Handle a paused stream frame at the RESPONSE_STREAM or INBOUND_STREAM breakpoint phase.- Parameters:
pausedFrame- the paused stream frame DTO from the server- Returns:
- the decision DTO to send back to the server
-