com.github.dreamhead.moco.matcher
Class AbstractOperatorMatcher<T>

java.lang.Object
  extended by com.github.dreamhead.moco.matcher.AbstractOperatorMatcher<T>
All Implemented Interfaces:
ConfigApplier<RequestMatcher>, RequestMatcher
Direct Known Subclasses:
EqRequestMatcher, MatchMatcher

public abstract class AbstractOperatorMatcher<T>
extends java.lang.Object
implements RequestMatcher


Field Summary
protected  RequestExtractor<T> extractor
           
 
Constructor Summary
protected AbstractOperatorMatcher(RequestExtractor<T> extractor, com.google.common.base.Predicate<java.lang.String> predicate)
           
 
Method Summary
 boolean match(io.netty.handler.codec.http.FullHttpRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.github.dreamhead.moco.ConfigApplier
apply
 

Field Detail

extractor

protected final RequestExtractor<T> extractor
Constructor Detail

AbstractOperatorMatcher

protected AbstractOperatorMatcher(RequestExtractor<T> extractor,
                                  com.google.common.base.Predicate<java.lang.String> predicate)
Method Detail

match

public boolean match(io.netty.handler.codec.http.FullHttpRequest request)
Specified by:
match in interface RequestMatcher