Exemplo 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");
  }
Exemplo n.º 2
0
  @Override
  protected void configureWithDefaults() {
    super.configureWithDefaults();

    proxyPort = DEFAULT_PROXY_PORT;
    proxyTimeoutSeconds = DEFAULT_PROXY_TIMEOUT;
    sslSupport = false;
    sslSocketFactory = DEFAULT_SSL_SOCKET_FACTORY;
  }
Exemplo 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);
 }
Exemplo n.º 4
0
 @Override
 public void stop() {
   interceptor.stop();
   super.stop();
 }