Package org.wiztools.restclient

Examples of org.wiztools.restclient.ProxyConfig.release()


            }
        }
        else{
            proxy.setEnabled(false);
        }
        proxy.release();
        return true;
    }
   
    private void setUIFromCache(){
        ProxyConfig proxy = ProxyConfig.getInstance();
View Full Code Here


            jpf_password.setText("");
        }
        else{
            jpf_password.setText(new String(proxy.getPassword()));
        }
        proxy.release();

        // Disable/enable the interface:
        toggleEnable(proxy.isEnabled());
        // toggleAuthEnable(proxy.isAuthEnabled());
    }
View Full Code Here

            setUIFromCache();
        }
        catch(Exception ex){
            LOG.info("Cannot load Proxy options from properties.");
        }
        proxy.release();
    }

    @Override
    public void shutdownOptions() {
        IGlobalOptions options = Implementation.of(IGlobalOptions.class);
View Full Code Here

        options.setProperty(PROP_PREFIX + "port", String.valueOf(proxy.getPort()));
        options.setProperty(PROP_PREFIX + "is_auth_enabled", String.valueOf(proxy.isAuthEnabled()));
        options.setProperty(PROP_PREFIX + "username", proxy.getUsername());
        String pwd = proxy.getPassword()==null? "": new String(proxy.getPassword());
        options.setProperty(PROP_PREFIX + "password", pwd);
        proxy.release();
    }
}
View Full Code Here

            }
        }
        else{
            proxy.setEnabled(false);
        }
        proxy.release();
        return true;
    }
   
    private void setUIFromCache(){
        ProxyConfig proxy = ProxyConfig.getInstance();
View Full Code Here

            jpf_password.setText("");
        }
        else{
            jpf_password.setText(new String(proxy.getPassword()));
        }
        proxy.release();

        // Disable/enable the interface:
        toggleEnable(proxy.isEnabled());
        // toggleAuthEnable(proxy.isAuthEnabled());
    }
View Full Code Here

    public void initOptions() {
        ProxyConfig proxy = ProxyConfig.getInstance();
       
        proxy.acquire();
        setUIFromCache();
        proxy.release();
    }

    @Override
    public void shutdownOptions() {
        ProxyConfig proxy = ProxyConfig.getInstance();
View Full Code Here

    public void shutdownOptions() {
        ProxyConfig proxy = ProxyConfig.getInstance();
       
        proxy.acquire();
        proxy.write();
        proxy.release();
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.