Package com.github.dreamhead.moco.handler.failover

Examples of com.github.dreamhead.moco.handler.failover.Failover


    public static RequestExtractor<String> var(final String text) {
        return new PlainTextExtractor(checkNotNullOrEmpty(text, "Template variable should not be null or empty"));
    }

    public static Failover failover(final String file) {
        return new Failover(failoverExecutor(checkNotNullOrEmpty(file, "Filename should not be null")), FailoverStrategy.FAILOVER);
    }
View Full Code Here


    private static DefaultFailoverExecutor failoverExecutor(final String file) {
        return new DefaultFailoverExecutor(new File(checkNotNullOrEmpty(file, "Filename should not be null")));
    }

    public static Failover playback(final String file) {
        return new Failover(failoverExecutor(checkNotNullOrEmpty(file, "Filename should not be null")), FailoverStrategy.PLAYBACK);
    }
View Full Code Here

            }
        };
    }

    private ResponseHandler createProxy(ProxyContainer proxy) {
        Failover failover = proxy.getFailover();

        if (proxy.hasProxyConfig()) {
            return proxy(proxy.getProxyConfig(), failover);
        }
View Full Code Here

TOP

Related Classes of com.github.dreamhead.moco.handler.failover.Failover

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.