Uses of Class
org.mockserver.mock.breakpoint.BreakpointMatcher
Packages that use BreakpointMatcher
-
Uses of BreakpointMatcher in org.mockserver.mock.breakpoint
Methods in org.mockserver.mock.breakpoint that return BreakpointMatcherModifier and TypeMethodDescriptionBreakpointMatcherRegistry.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.Methods in org.mockserver.mock.breakpoint that return types with arguments of type BreakpointMatcherModifier and TypeMethodDescriptionBreakpointMatcherRegistry.entries()Returns a snapshot of all registered breakpoints in registration order.Methods in org.mockserver.mock.breakpoint with parameters of type BreakpointMatcherModifier and TypeMethodDescriptionStreamFrameCallbackDispatcher.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.