com.github.dreamhead.moco.matcher
Class JsonRequestMatcher

java.lang.Object
  extended by com.github.dreamhead.moco.matcher.JsonRequestMatcher
All Implemented Interfaces:
ConfigApplier<RequestMatcher>, RequestMatcher

public class JsonRequestMatcher
extends java.lang.Object
implements RequestMatcher


Constructor Summary
JsonRequestMatcher(RequestExtractor<java.lang.String> extractor, Resource resource)
           
 
Method Summary
 RequestMatcher apply(MocoConfig config)
           
 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
 

Constructor Detail

JsonRequestMatcher

public JsonRequestMatcher(RequestExtractor<java.lang.String> extractor,
                          Resource resource)
Method Detail

match

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

apply

public RequestMatcher apply(MocoConfig config)
Specified by:
apply in interface ConfigApplier<RequestMatcher>