Package com.volantis.xml.pipeline.sax.proxy

Examples of com.volantis.xml.pipeline.sax.proxy.Proxy


        return filter;
    }

    // javadoc inherited
    public Proxy putProxy(final Proxy proxy) {
        Proxy replaced = null;
        if (proxy != null) {
            replaced = (Proxy)proxies.put(proxy.getId(), proxy);

            // Create a ProxyManagerAdapter around an old style Proxy.
            ProxyManager manager = new ProxyManagerAdapter(proxy);
View Full Code Here


        String result = null;
        if (!(actual instanceof Proxy)) {
            result = "Objects do not match. Expected: " + expected +
                " vs actual: " + actual;
        } else {
            Proxy eProxy = (Proxy) expected;
            Proxy aProxy = (Proxy) actual;
            if (!eProxy.getId().equals(aProxy.getId())) {
                result = "Proxy id value does not match";
            } else if (!(eProxy.getPort() == aProxy.getPort())) {
                result = "Proxy port value does not match";
            } else if ((eProxy.getHost() != null) &&
                (aProxy.getHost() != null) &&
                !eProxy.getHost().equals(aProxy.getHost())) {
                result = "Proxy host value does not match";
            } else if (((aProxy.getHost() == null) ||
                (eProxy.getHost() == null))) {
                if (aProxy.getHost() != eProxy.getHost()) {
                    result = "Proxy host value does not match " +
                        "(one value is null) expected: " +
                        eProxy.getHost() + " actual: " +
                        aProxy.getHost();
                }
            }
        }
        return result;
    }
View Full Code Here

            StringBuffer result = new StringBuffer();
            Map proxies = (Map)getPrivateObject(this, "proxies");
            if (proxies != null && proxies.size() > 0) {
                Set keys = proxies.keySet();
                for (Iterator iterator = keys.iterator(); iterator.hasNext();) {
                    Proxy proxy = (Proxy) proxies.get(iterator.next());
                    if (proxy != null) {
                        result.append("<proxy ");
                        String value;
                        if ((value = proxy.getId()) != null) {
                            result.append(" id=\"" + value + "\"");
                        }
                        result.append(" port=\"" + proxy.getPort() + "\"");

                        if ((value = proxy.getHost()) != null) {
                            result.append(" host=\"" + value + "\"");
                        }
                        result.append("></proxy>");
                    }
                }
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.proxy.Proxy

Copyright © 2018 www.massapicom. 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.