Package com.netflix.suro.routing.filter

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


                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

  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

  @Override
  public MessageFilter translate() {
    String xpath = getXPath(getChild(0));
   
    return new PathValueMessageFilter(xpath, NullValuePredicate.INSTANCE);
  }
View Full Code Here

TOP

Related Classes of com.netflix.suro.routing.filter.PathValueMessageFilter

Copyright © 2018 www.massapicom. 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.