com.github.dreamhead.moco.handler
Class ProxyBatchResponseHandler

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

public class ProxyBatchResponseHandler
extends AbstractProxyResponseHandler


Field Summary
 
Fields inherited from class com.github.dreamhead.moco.handler.AbstractProxyResponseHandler
failover
 
Constructor Summary
ProxyBatchResponseHandler(ProxyConfig proxyConfig, Failover failover)
           
 
Method Summary
 ResponseHandler apply(MocoConfig config)
           
protected  com.google.common.base.Optional<java.lang.String> remoteUrl(java.lang.String uri)
           
 
Methods inherited from class com.github.dreamhead.moco.handler.AbstractProxyResponseHandler
prepareRemoteRequest, remoteUrl, setupResponse, writeToResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyBatchResponseHandler

public ProxyBatchResponseHandler(ProxyConfig proxyConfig,
                                 Failover failover)
Method Detail

remoteUrl

protected com.google.common.base.Optional<java.lang.String> remoteUrl(java.lang.String uri)
Specified by:
remoteUrl in class AbstractProxyResponseHandler

apply

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