Uses of Enum Class
org.mockserver.mock.breakpoint.BreakpointPhase
Packages that use BreakpointPhase
-
Uses of BreakpointPhase in org.mockserver.client
Methods in org.mockserver.client with parameters of type BreakpointPhaseModifier and TypeMethodDescriptionMockServerClient.addBreakpoint(RequestDefinition matcher, BreakpointRequestHandler requestHandler, BreakpointResponseHandler responseHandler, BreakpointStreamFrameHandler streamFrameHandler, BreakpointPhase... phases) Register a breakpoint matcher with varargs phases and all handlers.Method parameters in org.mockserver.client with type arguments of type BreakpointPhaseModifier and TypeMethodDescriptionMockServerClient.addBreakpoint(RequestDefinition matcher, Set<BreakpointPhase> phases, BreakpointRequestHandler requestHandler, BreakpointResponseHandler responseHandler, BreakpointStreamFrameHandler streamFrameHandler) Register a breakpoint matcher with request/response/stream-frame handlers.MockServerClient.addBreakpoint(RequestDefinition matcher, Set<BreakpointPhase> phases, BreakpointStreamFrameHandler streamFrameHandler) Register a breakpoint matcher with a stream frame handler. -
Uses of BreakpointPhase in org.mockserver.mock.breakpoint
Methods in org.mockserver.mock.breakpoint that return BreakpointPhaseModifier and TypeMethodDescriptionstatic BreakpointPhaseReturns the enum constant of this class with the specified name.static BreakpointPhase[]BreakpointPhase.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.mockserver.mock.breakpoint that return types with arguments of type BreakpointPhaseMethods in org.mockserver.mock.breakpoint with parameters of type BreakpointPhaseModifier 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 requestTimestampBreakpointMatcherRegistry.findMatch(RequestDefinition request, BreakpointPhase phase) Finds the first registered breakpoint whose phases contain the given phase AND whose prebuilt matcher matches the given request AND which should pause for this hit.BreakpointMatcherRegistry.findResponseMatch(RequestDefinition request, HttpResponse response, BreakpointPhase phase) Response-phase variant ofBreakpointMatcherRegistry.findMatch(org.mockserver.model.RequestDefinition, org.mockserver.mock.breakpoint.BreakpointPhase)that additionally evaluates each matcher's optional response-content conditions (status-code range / body regex) against the actualresponseabout to be written.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.Method parameters in org.mockserver.mock.breakpoint with type arguments of type BreakpointPhaseModifier and TypeMethodDescriptionBreakpointMatcherRegistry.register(RequestDefinition matcher, Set<BreakpointPhase> phases, String clientId, Integer skipCount, Integer responseStatusCodeMin, Integer responseStatusCodeMax, String responseBodyContains, Configuration configuration, MockServerLogger logger) Registers a new breakpoint matcher with a required owner clientId, an optional skip-count for conditional (Nth-hit) breakpoints, and optional response-content conditions that gate whether a RESPONSE-phase breakpoint pauses.BreakpointMatcherRegistry.register(RequestDefinition matcher, Set<BreakpointPhase> phases, String clientId, Integer skipCount, Configuration configuration, MockServerLogger logger) Registers a new breakpoint matcher with a required owner clientId and an optional skip-count for conditional (Nth-hit) breakpoints.BreakpointMatcherRegistry.register(RequestDefinition matcher, Set<BreakpointPhase> phases, String clientId, Configuration configuration, MockServerLogger logger) Registers a new breakpoint matcher with a required owner clientId.BreakpointMatcherRegistry.register(RequestDefinition matcher, Set<BreakpointPhase> phases, Configuration configuration, MockServerLogger logger) Registers a new breakpoint matcher without an owner client (for tests only).Constructor parameters in org.mockserver.mock.breakpoint with type arguments of type BreakpointPhaseModifierConstructorDescriptionBreakpointMatcher(String id, RequestDefinition requestMatcher, Set<BreakpointPhase> phases, HttpRequestMatcher prebuiltMatcher) BreakpointMatcher(String id, RequestDefinition requestMatcher, Set<BreakpointPhase> phases, HttpRequestMatcher prebuiltMatcher, String clientId) BreakpointMatcher(String id, RequestDefinition requestMatcher, Set<BreakpointPhase> phases, HttpRequestMatcher prebuiltMatcher, String clientId, Integer skipCount) BreakpointMatcher(String id, RequestDefinition requestMatcher, Set<BreakpointPhase> phases, HttpRequestMatcher prebuiltMatcher, String clientId, Integer skipCount, Integer responseStatusCodeMin, Integer responseStatusCodeMax, String responseBodyContains)