Examples of PathValueMessageFilter


Examples of com.netflix.suro.routing.filter.PathValueMessageFilter

            Lists.transform(children.subList(1, children.size()), new Function<Object, MessageFilter>() {

                @Override
                public MessageFilter apply(Object node) {
                    String value = ((StringTreeNode) node).getValue();
                    return new PathValueMessageFilter(xpath, new StringValuePredicate(value));
                }

            })
        );
  }
View Full Code Here

Examples of com.netflix.suro.routing.filter.PathValueMessageFilter

                Lists.transform(children.subList(1, children.size()), new Function<Object, MessageFilter>() {

                    @Override
                    public MessageFilter apply(Object node) {
                        Number value = ((NumberTreeNode) node).getValue();
                        return new PathValueMessageFilter(xpath, new NumericValuePredicate(value, "="));
                    }

                })
        );
  }
View Full Code Here

Examples of com.netflix.suro.routing.filter.PathValueMessageFilter

  public MessageFilter translate() {
    String xpath = getXPath(getChild(0));
     
    StringTreeNode valueNode = (StringTreeNode)getChild(1);

        return new PathValueMessageFilter(xpath, new RegexValuePredicate(valueNode.getValue(), RegexValuePredicate.MatchPolicy.PARTIAL));

    }
View Full Code Here

Examples of com.netflix.suro.routing.filter.PathValueMessageFilter

  @Override
  public MessageFilter translate() {
    String xpath = getXPath(getChild(0));
   
    return new PathValueMessageFilter(xpath, NullValuePredicate.INSTANCE);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.