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:
Rossen Stoyanchev
2013-10-24 21:50:49 -04:00
parent 4892a27016
commit b8809daf5f
28 changed files with 1945 additions and 786 deletions

View File

@@ -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 {

View File

@@ -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,