示例#1
0
  @Override
  public boolean evaluateHttp(final HttpServletRewrite event, final EvaluationContext context) {
    String scheme = null;

    if (event instanceof HttpOutboundServletRewrite) {
      scheme = event.getAddress().getScheme();
      if (scheme == null) scheme = event.getRequest().getScheme();
    } else scheme = event.getRequest().getScheme();

    return (scheme != null && expression.parse(scheme).submit(event, context));
  }
示例#2
0
 @Override
 public void setParameterStore(ParameterStore store) {
   expression.setParameterStore(store);
 }
示例#3
0
 @Override
 public Set<String> getRequiredParameterNames() {
   return expression.getRequiredParameterNames();
 }