Refactor HandlerMethod support in spring-messaging
Introduce base class AbstractMethodMessageHandler for HandlerMethod-based message handling. Add MessageCondition interface for mapping conditions to messages with support for combining type- and method-level annotation conditions, the ability to match conditions to messages, and also comparing matches to select the best match. Issue: SPR-11024
This commit is contained in:
@@ -337,7 +337,9 @@ public abstract class AbstractHandlerMethodMapping<T> extends AbstractHandlerMap
|
||||
|
||||
|
||||
/**
|
||||
* A temporary container for a mapping matched to a request.
|
||||
* A thin wrapper around a matched HandlerMethod and its matched mapping for
|
||||
* the purpose of comparing the best match with a comparator in the context
|
||||
* of the current request.
|
||||
*/
|
||||
private class Match {
|
||||
|
||||
|
||||
@@ -98,7 +98,6 @@ public final class PatternsRequestCondition extends AbstractRequestCondition<Pat
|
||||
|
||||
/**
|
||||
* Private constructor accepting a collection of patterns.
|
||||
* @param fileExtensionResolver
|
||||
*/
|
||||
private PatternsRequestCondition(Collection<String> patterns, UrlPathHelper urlPathHelper,
|
||||
PathMatcher pathMatcher, boolean useSuffixPatternMatch, boolean useTrailingSlashMatch,
|
||||
|
||||
Reference in New Issue
Block a user