com.github.dreamhead.moco.handler
Class ProxyResponseHandler

java.lang.Object
  extended by com.github.dreamhead.moco.handler.ProxyResponseHandler
All Implemented Interfaces:
ConfigApplier<ResponseHandler>, ResponseHandler

public class ProxyResponseHandler
extends java.lang.Object
implements ResponseHandler


Constructor Summary
ProxyResponseHandler(java.net.URL url, Failover failover)
           
 
Method Summary
 ResponseHandler apply(MocoConfig config)
           
 void writeToResponse(io.netty.handler.codec.http.FullHttpRequest request, io.netty.handler.codec.http.FullHttpResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyResponseHandler

public ProxyResponseHandler(java.net.URL url,
                            Failover failover)
Method Detail

writeToResponse

public void writeToResponse(io.netty.handler.codec.http.FullHttpRequest request,
                            io.netty.handler.codec.http.FullHttpResponse response)
Specified by:
writeToResponse in interface ResponseHandler

apply

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