Package com.quickwebframework.util.pattern

Examples of com.quickwebframework.util.pattern.WildcardPattern


   * @return
   */
  public static Servlet getServletByPath(String alias) {
    for (String path : pathServletMap.keySet()) {
      if (path.startsWith("*.") || path.endsWith("*")) {
        WildcardPattern pattern = pathWildcardPatternMap.get(path);
        if (pattern == null) {
          pattern = new WildcardPattern(path);
          pathWildcardPatternMap.put(path, pattern);
        }
        if (pattern.implies(alias)) {
          return pathServletMap.get(path);
        }
      } else {
        if (path.equals(alias)) {
          return pathServletMap.get(alias);
View Full Code Here

TOP

Related Classes of com.quickwebframework.util.pattern.WildcardPattern

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.