Class DefaultMatchingChecker

  • All Implemented Interfaces:
    MatchingChecker

    public class DefaultMatchingChecker
    extends java.lang.Object
    implements MatchingChecker
    Default way to check the matchers (with default matchers).
    Since:
    4.0.0
    Author:
    Jerome Leleu
    • Constructor Detail

      • DefaultMatchingChecker

        public DefaultMatchingChecker()
    • Method Detail

      • matches

        public boolean matches​(WebContext context,
                               SessionStore sessionStore,
                               java.lang.String matchersValue,
                               java.util.Map<java.lang.String,​Matcher> matchersMap,
                               java.util.List<Client> clients)
        Description copied from interface: MatchingChecker
        Check if the web context matches.
        Specified by:
        matches in interface MatchingChecker
        Parameters:
        context - the web context
        sessionStore - the session store
        matchersValue - the matchers
        matchersMap - the map of matchers
        clients - the clients
        Returns:
        whether the web context matches
      • computeMatchers

        protected java.util.List<Matcher> computeMatchers​(WebContext context,
                                                          SessionStore sessionStore,
                                                          java.lang.String matchersValue,
                                                          java.util.Map<java.lang.String,​Matcher> matchersMap,
                                                          java.util.List<Client> clients)
      • computeMatchersFromNames

        protected java.util.List<Matcher> computeMatchersFromNames​(java.lang.String matchersValue,
                                                                   java.util.Map<java.lang.String,​Matcher> matchersMap)
      • retrieveMatchers

        protected java.util.List<Matcher> retrieveMatchers​(java.lang.String matcherName,
                                                           java.util.Map<java.lang.String,​Matcher> matchersMap)