Exemplo n.º 1
0
 private void copySettings() {
   final Thread currentThread = Thread.currentThread();
   /** use BrowserSettings from current thread if available */
   if (currentThread != null && currentThread instanceof BrowserSettings) {
     final BrowserSettings settings = (BrowserSettings) currentThread;
     this.proxySelector = settings.getProxySelector();
     this.debug = settings.isDebug();
     this.verbose = settings.isVerbose();
     this.logger = settings.getLogger();
   }
 }