protected CDN(final String pattern) { this.resource = Path.matches(pattern); }
/** * 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; }
public ParameterizedPatternParser getResourcExpression() { return resource.getExpression(); }
protected Join(final String pattern, boolean requestBinding) { this.requestPattern = pattern; this.requestPath = Path.matches(pattern); if (requestBinding) requestPath.withRequestBinding(); this.bindingEnabled = requestBinding; }
private Set<String> getPathRequestParameters() { /* * For performance purposes - think and profile this if changed. */ if (pathRequestParameters == null) { Set<String> nonQueryParameters = resourcePath.getRequiredParameterNames(); Set<String> queryParameters = requestPath.getRequiredParameterNames(); queryParameters.removeAll(nonQueryParameters); pathRequestParameters = queryParameters; } return pathRequestParameters; }
@Override public void setParameterStore(ParameterStore store) { resource.setParameterStore(store); location.setParameterStore(store); }
@Override public boolean evaluate(final Rewrite event, final EvaluationContext context) { if (Direction.isOutbound().evaluate(event, context)) return resource.evaluate(event, context); return false; }
protected Join(final String pattern, boolean requestBinding) { this.requestPattern = pattern; this.requestPath = Path.matches(pattern); if (requestBinding) requestPath.withRequestBinding(); this.bindingEnabled = requestBinding; }
private Set<String> getPathRequestParameters() { /* * For performance purposes - think and profile this if changed. */ if (pathRequestParameters == null) { Set<String> nonQueryParameters = resourcePath.getRequiredParameterNames(); Set<String> queryParameters = requestPath.getRequiredParameterNames(); queryParameters.removeAll(nonQueryParameters); pathRequestParameters = queryParameters; } return pathRequestParameters; }
@Override public void setParameterStore(ParameterStore store) { resource.setParameterStore(store); location.setParameterStore(store); }
@Override public boolean evaluate(final Rewrite event, final EvaluationContext context) { if (Direction.isOutbound().evaluate(event, context)) return resource.evaluate(event, context); return false; }
protected CDN(final String pattern) { this.resource = Path.matches(pattern); }
protected Join(final String pattern, boolean requestBinding) { this.requestPattern = pattern; this.requestPath = Path.matches(pattern); if (requestBinding) requestPath.withRequestBinding(); this.bindingEnabled = requestBinding; }
private Set<String> getPathRequestParameters() { /* * For performance purposes - think and profile this if changed. */ if (pathRequestParameters == null) { Set<String> nonQueryParameters = resourcePath.getRequiredParameterNames(); Set<String> queryParameters = requestPath.getRequiredParameterNames(); queryParameters.removeAll(nonQueryParameters); pathRequestParameters = queryParameters; } return pathRequestParameters; }
public ParameterizedPatternParser getResourcExpression() { return resource.getExpression(); }
@Override public void setParameterStore(ParameterStore store) { resource.setParameterStore(store); location.setParameterStore(store); }
/** * 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; }