com.github.dreamhead.moco.mount
Class MountMatcher

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

public class MountMatcher
extends java.lang.Object
implements RequestMatcher


Constructor Summary
MountMatcher(java.io.File dir, MountTo target, java.lang.Iterable<MountPredicate> predicates)
           
 
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

MountMatcher

public MountMatcher(java.io.File dir,
                    MountTo target,
                    java.lang.Iterable<MountPredicate> predicates)
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>