com.github.dreamhead.moco.setting
Class BaseSetting

java.lang.Object
  extended by com.github.dreamhead.moco.ResponseSetting
      extended by com.github.dreamhead.moco.Setting
          extended by com.github.dreamhead.moco.setting.BaseSetting
All Implemented Interfaces:
ConfigApplier<BaseSetting>

public class BaseSetting
extends Setting
implements ConfigApplier<BaseSetting>


Field Summary
 
Fields inherited from class com.github.dreamhead.moco.Setting
matcher
 
Fields inherited from class com.github.dreamhead.moco.ResponseSetting
eventTriggers, handler
 
Constructor Summary
BaseSetting(RequestMatcher matcher)
           
 
Method Summary
 BaseSetting apply(MocoConfig config)
           
 void fireCompleteEvent()
           
 boolean match(io.netty.handler.codec.http.FullHttpRequest request)
           
 void writeToResponse(io.netty.handler.codec.http.FullHttpRequest request, io.netty.handler.codec.http.FullHttpResponse response)
           
 
Methods inherited from class com.github.dreamhead.moco.ResponseSetting
context, on, redirectTo, response, response, response, response, response
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSetting

public BaseSetting(RequestMatcher matcher)
Method Detail

match

public boolean match(io.netty.handler.codec.http.FullHttpRequest request)

writeToResponse

public void writeToResponse(io.netty.handler.codec.http.FullHttpRequest request,
                            io.netty.handler.codec.http.FullHttpResponse response)

apply

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

fireCompleteEvent

public void fireCompleteEvent()