/** * <p> Return the action configuration for the specified path, first * looking a direct match, then if none found, a wildcard pattern match; * otherwise return <code>null</code>. </p> * * @param path Path of the action configuration to return */ public ActionConfig findActionConfig(String path) { ActionConfig config = (ActionConfig) actionConfigs.get(path); // If a direct match cannot be found, try to match action configs // containing wildcard patterns only if a matcher exists. if ((config == null) && (matcher != null)) { config = matcher.match(path); } return config; }
/** * Return the action configuration for the specified path, first looking * a direct match, then if none found, a wildcard pattern match; * otherwise return <code>null</code>. * * @param path Path of the action configuration to return */ public ActionConfig findActionConfig(String path) { ActionConfig config = (ActionConfig) actionConfigs.get(path); // If a direct match cannot be found, try to match action configs // containing wildcard patterns if (config == null) { config = matcher.match(path); } return config; }