Package com.eviware.soapui.support.types

Examples of com.eviware.soapui.support.types.StringList


        super.propertyChange(evt);
    }

    protected Object[] getRequestMediaTypes() {
        StringList result = new StringList(super.getRequestMediaTypes());

        for (RestRepresentation representation : restRequest.getRepresentations(RestRepresentation.Type.REQUEST, null)) {
            if (!result.contains(representation.getMediaType())) {
                result.add(representation.getMediaType());
            }
        }

        return result.toStringArray();
    }
View Full Code Here


        if (!diff.identical()) {
            throw new Exception(diff.toString());
        }

        StringList nodesToRemove = internalDifferenceListener.getNodesToRemove();

        if (!nodesToRemove.isEmpty()) {
            for (String node : nodesToRemove) {
                if (node == null) {
                    continue;
                }
View Full Code Here

            listener.outgoingWssEntryRemoved(entry);
        }
    }

    public String[] getCryptoNames() {
        StringList result = new StringList();

        for (WssCrypto crypto : getCryptoList()) {
            result.add(crypto.getLabel());
        }

        return result.toStringArray();
    }
View Full Code Here

        return result.toStringArray();
    }

    public String[] getIncomingWssNames() {
        StringList result = new StringList();

        for (IncomingWss crypto : getIncomingWssList()) {
            result.add(crypto.getName());
        }

        return result.toStringArray();
    }
View Full Code Here

        return result.toStringArray();
    }

    public String[] getOutgoingWssNames() {
        StringList result = new StringList();

        for (OutgoingWss crypto : getOutgoingWssList()) {
            result.add(crypto.getName());
        }

        return result.toStringArray();
    }
View Full Code Here

        table.addPropertyShadow("Password", "password", true);
        table.addProperty("Domain", "domain", true);
        table.addProperty("Authentication Type", "authType", new String[]{AuthType.GLOBAL_HTTP_SETTINGS.toString(),
                AuthType.PREEMPTIVE.toString(), AuthType.SPNEGO_KERBEROS.toString(), AuthType.NTLM.toString()});

        StringList keystores = new StringList(request.getOperation().getInterface().getProject().getWssContainer()
                .getCryptoNames());
        keystores.add("");
        table.addProperty("SSL Keystore", "sslKeystore", keystores.toStringArray());

        table.addProperty("Strip whitespaces", "stripWhitespaces", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Remove Empty Content", "removeEmptyContent", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Entitize Properties", "entitizeProperties", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Multi-Value Delimiter", "multiValueDelimiter", true);
View Full Code Here

    }

    private int loadProperties(String source, boolean createMissing) throws IOException {
        // override methods so propertynames are returned in readorder
        java.util.Properties props = new java.util.Properties() {
            public StringList names = new StringList();

            @Override
            public synchronized Object put(Object key, Object value) {
                names.add(key.toString());
                return super.put(key, value);
            }

            @Override
            public Enumeration<?> propertyNames() {
                return Collections.enumeration(names);
            }
        };

        InputStream in = getPropertiesInputStream(source);
        props.load(in);
        in.close();

        int cnt = 0;
        Enumeration<?> names = props.propertyNames();
        while (names.hasMoreElements()) {
            String name = names.nextElement().toString();
            TestProperty property = getProperty(name);
            if (property != null) {
                property.setValue(props.get(name).toString());
                cnt++;
            } else if (createMissing) {
View Full Code Here

        table.addPropertyShadow("Password", "password", true);
        table.addProperty("Domain", "domain", true);
        table.addProperty("Authentication Type", "authType", new String[]{AuthType.GLOBAL_HTTP_SETTINGS.toString(),
                AuthType.PREEMPTIVE.toString(), AuthType.SPNEGO_KERBEROS.toString(), AuthType.NTLM.toString()});

        StringList keystores = new StringList(((WsdlProject) request.getTestStep().getTestCase().getTestSuite()
                .getProject()).getWssContainer().getCryptoNames());
        keystores.add("");
        table.addProperty("SSL Keystore", "sslKeystore", keystores.toStringArray());

        table.addProperty("Strip whitespaces", "stripWhitespaces", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Remove Empty Content", "removeEmptyContent", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Entitize Properties", "entitizeProperties", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Multi-Value Delimiter", "multiValueDelimiter", true);
View Full Code Here

        table.addProperty("Timeout", "timeout", true);

        table.addProperty("Bind Address", "bindAddress", true);
        table.addProperty("Follow Redirects", "followRedirects", JPropertiesTable.BOOLEAN_OPTIONS);

        StringList keystores = new StringList(request.getTestStep().getTestCase().getTestSuite().getProject()
                .getWssContainer().getCryptoNames());
        keystores.add("");
        table.addProperty("SSL Keystore", "sslKeystore", keystores.toStringArray());

        table.addProperty("Strip whitespaces", "stripWhitespaces", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Remove Empty Content", "removeEmptyContent", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Entitize Properties", "entitizeProperties", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Multi-Value Delimiter", "multiValueDelimiter", true);
View Full Code Here

    public static String[] getExentsibilityAttributes(AttributeExtensible item, QName qname) {
        if (item == null) {
            return new String[0];
        }

        StringList result = new StringList();

        Map map = item.getExtensionAttributes();

        for (Iterator<?> i = map.keySet().iterator(); i.hasNext(); ) {
            QName name = (QName) i.next();
            if (name.equals(qname)) {
                result.add(map.get(name).toString());
            }
        }

        return result.toStringArray();
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.types.StringList

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.