com.github.dreamhead.moco.handler
Class ProxyResponseHandler

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.ProxyResponseHandler
All Implemented Interfaces:
ConfigApplier<ResponseHandler>, ResponseHandler

public class ProxyResponseHandler
extends AbstractProxyResponseHandler
implements ResponseHandler


Field Summary
 
Fields inherited from class com.github.dreamhead.moco.handler.AbstractProxyResponseHandler
failover
 
Constructor Summary
ProxyResponseHandler(java.net.URL url, Failover failover)
           
 
Method Summary
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 com.github.dreamhead.moco.handler.AbstractResponseHandler
apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.github.dreamhead.moco.ResponseHandler
writeToResponse
 
Methods inherited from interface com.github.dreamhead.moco.ConfigApplier
apply
 

Constructor Detail

ProxyResponseHandler

public ProxyResponseHandler(java.net.URL url,
                            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