Пример #1
0
 /** @return a `java.net.Proxy` instance configured to point to the Betamax proxy. */
 public Proxy getProxy() {
   return new Proxy(
       Proxy.Type.HTTP, new InetSocketAddress(interceptor.getHost(), interceptor.getPort()));
 }
Пример #2
0
 /** @return the hostname or address where the proxy will run. */
 public String getProxyHost() {
   return interceptor.getHost();
 }