Examples of retrieveProperty()


Examples of com.adito.boot.PropertyClass.retrieveProperty()

        String user = null;
        String pass = null;
        try {
            PropertyClass contextConfiguration = ContextHolder.getContext().getConfig();
            if (getRequestingProtocol().startsWith("SOCKS")) {
                user = contextConfiguration.retrieveProperty(new ContextKey("proxies.socksProxyUser"));
                pass = contextConfiguration.retrieveProperty(new ContextKey("proxies.socksProxyPassword"));
            } else {
                user = contextConfiguration.retrieveProperty(new ContextKey("proxies.http.proxyUser"));
                pass = contextConfiguration.retrieveProperty(new ContextKey("proxies.http.proxyPassword"));
            }
View Full Code Here

Examples of com.adito.boot.PropertyClass.retrieveProperty()

        String pass = null;
        try {
            PropertyClass contextConfiguration = ContextHolder.getContext().getConfig();
            if (getRequestingProtocol().startsWith("SOCKS")) {
                user = contextConfiguration.retrieveProperty(new ContextKey("proxies.socksProxyUser"));
                pass = contextConfiguration.retrieveProperty(new ContextKey("proxies.socksProxyPassword"));
            } else {
                user = contextConfiguration.retrieveProperty(new ContextKey("proxies.http.proxyUser"));
                pass = contextConfiguration.retrieveProperty(new ContextKey("proxies.http.proxyPassword"));
            }
        } catch (Exception e) {
View Full Code Here

Examples of com.adito.boot.PropertyClass.retrieveProperty()

            PropertyClass contextConfiguration = ContextHolder.getContext().getConfig();
            if (getRequestingProtocol().startsWith("SOCKS")) {
                user = contextConfiguration.retrieveProperty(new ContextKey("proxies.socksProxyUser"));
                pass = contextConfiguration.retrieveProperty(new ContextKey("proxies.socksProxyPassword"));
            } else {
                user = contextConfiguration.retrieveProperty(new ContextKey("proxies.http.proxyUser"));
                pass = contextConfiguration.retrieveProperty(new ContextKey("proxies.http.proxyPassword"));
            }
        } catch (Exception e) {
            log.error("Failed to get proxy authentication details.");
            return null;
View Full Code Here

Examples of com.adito.boot.PropertyClass.retrieveProperty()

            if (getRequestingProtocol().startsWith("SOCKS")) {
                user = contextConfiguration.retrieveProperty(new ContextKey("proxies.socksProxyUser"));
                pass = contextConfiguration.retrieveProperty(new ContextKey("proxies.socksProxyPassword"));
            } else {
                user = contextConfiguration.retrieveProperty(new ContextKey("proxies.http.proxyUser"));
                pass = contextConfiguration.retrieveProperty(new ContextKey("proxies.http.proxyPassword"));
            }
        } catch (Exception e) {
            log.error("Failed to get proxy authentication details.");
            return null;
        }
View Full Code Here

Examples of com.adito.boot.PropertyClass.retrieveProperty()

        PropertyDefinition def = getDefinition(key);
        if (def == null) {
            throw new IllegalArgumentException("Invalid key. " + key);
        }
        PropertyClass t = def.getPropertyClass();
        return t.retrieveProperty(key);
    }

    /**
     * Get a property as an integer. The value will be retrieved as a string
     * then converted to a primitive int.
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.