/** * Capture the entire path portion of the {@link Address} into the given {@link Parameter}. * * @param param the name of the {@link Parameter} to which the entire path portion of the {@link Address} will be * bound. */ public static Path captureIn(final String param) { Path path = new Path("{" + param + "}") { @Override public String toString() { return "Path.captureIn(\"" + param + "\")"; } }; path.captureIn = param; return path; }
/** * Capture the entire path portion of the {@link Address} into the given {@link Parameter}. * * @param param the name of the {@link Parameter} to which the entire path portion of the {@link Address} will be * bound. */ public static Path captureIn(final String param) { Path path = new Path("{" + param + "}") { @Override public String toString() { return "Path.captureIn(\"" + param + "\")"; } }; path.captureIn = param; return path; }
/** * Capture the entire path portion of the {@link Address} into the given {@link Parameter}. * * @param param the name of the {@link Parameter} to which the entire path portion of the {@link Address} will be * bound. */ public static Path captureIn(final String param) { Path path = new Path("{" + param + "}") { @Override public String toString() { return "Path.captureIn(\"" + param + "\")"; } }; path.captureIn = param; return path; }
/** * Create a {@link Condition} that compares the current {@link Address#getPath()} to the given pattern. * <p> * The given pattern may be parameterized: * <p> * <code> * /example/{param} <br> * /example/{param1}/sub/{param2} <br> * ... * </code> * <p> * * @param pattern {@link ParameterizedPattern} matching the path. * * @see ConfigurationRuleParameterBuilder#where(String) */ public static Path matches(final String pattern) { return new Path(pattern) { @Override public String toString() { return "Path.matches(\"" + pattern + "\")"; } }; }
/** * Create a {@link Condition} that compares the current {@link Address#getPath()} to the given pattern. * <p> * The given pattern may be parameterized: * <p> * <code> * /example/{param} <br> * /example/{param1}/sub/{param2} <br> * ... * </code> * <p> * * @param pattern {@link ParameterizedPattern} matching the path. * * @see ConfigurationRuleParameterBuilder#where(String) */ public static Path matches(final String pattern) { return new Path(pattern) { @Override public String toString() { return "Path.matches(\"" + pattern + "\")"; } }; }
/** * Create a {@link Condition} that compares the current {@link Address#getPath()} to the given pattern. * <p> * The given pattern may be parameterized: * <p> * <code> * /example/{param} <br> * /example/{param1}/sub/{param2} <br> * ... * </code> * <p> * * @param pattern {@link ParameterizedPattern} matching the path. * * @see ConfigurationRuleParameterBuilder#where(String) */ public static Path matches(final String pattern) { return new Path(pattern) { @Override public String toString() { return "Path.matches(\"" + pattern + "\")"; } }; }