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(HttpRequest request)
           
 void writeToResponse(SessionContext context)
           
 
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(HttpRequest request)

writeToResponse

public void writeToResponse(SessionContext context)

apply

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

fireCompleteEvent

public void fireCompleteEvent()