Esempio n. 1
0
  @Override
  protected void configureFrom(Properties properties) {
    super.configureFrom(properties);

    proxyPort = getInteger(properties, "betamax.proxyPort", DEFAULT_PROXY_PORT);
    proxyTimeoutSeconds = getInteger(properties, "betamax.proxyTimeout", DEFAULT_PROXY_TIMEOUT);
    sslSupport = getBoolean(properties, "betamax.sslSupport");
  }
Esempio n. 2
0
  @Override
  protected void configureWithDefaults() {
    super.configureWithDefaults();

    proxyPort = DEFAULT_PROXY_PORT;
    proxyTimeoutSeconds = DEFAULT_PROXY_TIMEOUT;
    sslSupport = false;
    sslSocketFactory = DEFAULT_SSL_SOCKET_FACTORY;
  }
Esempio n. 3
0
 @Override
 public void start(String tapeName, Map arguments) {
   if (interceptor == null) {
     try {
       interceptor = new ProxyServer(this);
     } catch (UnknownHostException e) {
       throw new RuntimeException("Unable to start proxy", e);
     }
   }
   if (!interceptor.isRunning()) {
     interceptor.start();
   }
   super.start(tapeName, arguments);
 }
Esempio n. 4
0
 @Override
 public void stop() {
   interceptor.stop();
   super.stop();
 }