Uses of Class
org.mockserver.mock.breakpoint.StreamFrameDecision
Packages that use StreamFrameDecision
-
Uses of StreamFrameDecision in org.mockserver.mock.breakpoint
Methods in org.mockserver.mock.breakpoint that return StreamFrameDecisionModifier and TypeMethodDescriptionstatic StreamFrameDecisionStreamFrameDecision.close()Close: end the stream (drop the held frame, send LastHttpContent, close the connection).static StreamFrameDecisionStreamFrameDecision.continueFrame()Continue: write the original frame unchanged.static StreamFrameDecisionStreamFrameDecision.drop()Drop: discard the frame without writing anything to the client.static StreamFrameDecisionStreamFrameDecision.inject(byte[] injectedBody) Inject: write the original frame, then also write an additional injected frame.static StreamFrameDecisionStreamFrameDecision.modify(byte[] replacementBody) Modify: write a replacement frame body instead of the original.Methods in org.mockserver.mock.breakpoint that return types with arguments of type StreamFrameDecisionModifier and TypeMethodDescriptionStreamFrameCallbackDispatcher.dispatchFrame(String clientId, String streamId, int sequenceNumber, PausedStreamFrame.Direction direction, BreakpointPhase phase, byte[] capturedBytes, String requestMethod, String requestPath, WebSocketClientRegistry webSocketClientRegistry, Configuration configuration, MockServerLogger logger) Deprecated.use the overload that includes breakpointId and requestTimestampStreamFrameCallbackDispatcher.dispatchFrame(String clientId, String breakpointId, String streamId, int sequenceNumber, PausedStreamFrame.Direction direction, BreakpointPhase phase, byte[] capturedBytes, String requestMethod, String requestPath, Long requestTimestamp, WebSocketClientRegistry webSocketClientRegistry, Configuration configuration, MockServerLogger logger) Dispatches a stream frame to a callback WebSocket client for interactive resolution, tagging the message with the matched breakpoint id and request timestamp.StreamFrameCallbackDispatcher.dispatchFrame(String clientId, String breakpointId, String streamId, int sequenceNumber, PausedStreamFrame.Direction direction, BreakpointPhase phase, byte[] capturedBytes, String requestMethod, String requestPath, WebSocketClientRegistry webSocketClientRegistry, Configuration configuration, MockServerLogger logger) Deprecated.use the overload that includes requestTimestampPausedStreamFrame.getDecisionFuture()The future that the relay loop awaits.StreamFrameCallbackDispatcher.tryWsDispatch(BreakpointMatcher matchedBreakpoint, String streamId, int sequenceNumber, PausedStreamFrame.Direction direction, BreakpointPhase phase, byte[] capturedBytes, String requestMethod, String requestPath, Long requestTimestamp, Configuration configuration, MockServerLogger logger, WebSocketClientRegistry webSocketClientRegistry) Overload ofStreamFrameCallbackDispatcher.tryWsDispatch(org.mockserver.mock.breakpoint.BreakpointMatcher, java.lang.String, int, org.mockserver.mock.breakpoint.PausedStreamFrame.Direction, org.mockserver.mock.breakpoint.BreakpointPhase, byte[], java.lang.String, java.lang.String, org.mockserver.configuration.Configuration, org.mockserver.logging.MockServerLogger, org.mockserver.closurecallback.websocketregistry.WebSocketClientRegistry)that includes the request timestamp.StreamFrameCallbackDispatcher.tryWsDispatch(BreakpointMatcher matchedBreakpoint, String streamId, int sequenceNumber, PausedStreamFrame.Direction direction, BreakpointPhase phase, byte[] capturedBytes, String requestMethod, String requestPath, Configuration configuration, MockServerLogger logger, WebSocketClientRegistry webSocketClientRegistry) Convenience method that checks whether the given matched breakpoint should use WS-callback dispatch (non-null clientId + registry available), and if so, dispatches the frame.