Add excludeRestfulPatterns support to RestInterceptorRegistration#28
Merged
cookie-meringue merged 5 commits intomainfrom Feb 14, 2025
Merged
Add excludeRestfulPatterns support to RestInterceptorRegistration#28cookie-meringue merged 5 commits intomainfrom
cookie-meringue merged 5 commits intomainfrom
Conversation
- Add anyMatches(HttpServletRequest) to check if any pattern matches a request.
- Introduce excludePatterns field to store patterns that should be excluded from interception. - Add addExcludePatterns(RestfulPatterns) to register exclusion patterns. - Enhance flexibility in request filtering by allowing exclusion of specific patterns.
…istration - #27 - Introduce methods to allow exclusion of specific RestfulPatterns from the interceptor. - Add excludeRestfulPatterns(RestfulPattern...) and excludeRestfulPatterns(Collection<RestfulPattern>) for flexibility. - Enhance RestInterceptorRegistration with functionality to exclude path patterns from interception
…l tracking - #27 - Introduced AtomicBoolean to track if doInternal is called during tests. - Updated tests to verify that doInternal is only called for matching requests. - Simplified checks for pre-flight requests and non-matching paths.
- Added test to verify doInternal is not called for excluded requests. - Added test to ensure doInternal is called for non-excluded matching requests.
Test Results23 tests 23 ✅ 0s ⏱️ Results for commit 794e24f. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue: #27