Package com.eviware.soapui.support.types

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


        long[][] clone = data.clone();

        StringList[] result = new StringList[getRowCount()];

        for (int c = 0; c < clone.length; c++) {
            StringList values = new StringList();

            for (int columnIndex = 2; columnIndex < getColumnCount(); columnIndex++) {
                switch (columnIndex) {
                    case 4:
                    case 7:
                        values.add(String.valueOf((float) data[c][columnIndex - 2] / 100));
                        break;
                    default:
                        values.add(String.valueOf(data[c][columnIndex - 2]));
                }
            }

            result[c] = values;
        }
View Full Code Here


        return result.toArray(new RestRepresentation[result.size()]);
    }

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

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

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

        table.addProperty("WSS-Password Type", "wssPasswordType", new String[]{null, WsdlRequest.PW_TYPE_NONE,
                WsdlRequest.PW_TYPE_TEXT, WsdlRequest.PW_TYPE_DIGEST});
        table.addProperty("WSS TimeToLive", "wssTimeToLive", true);

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

        table.addProperty("Skip SOAP Action", "skipSoapAction", JPropertiesTable.BOOLEAN_OPTIONS);

        // mtom / attachments
        table.addProperty("Enable MTOM", "mtomEnabled", JPropertiesTable.BOOLEAN_OPTIONS);
View Full Code Here

    public void transferEndpoints(Port port) {
        if (port != null) {
            String endpoint = WsdlUtils.getSoapEndpoint(port);
            if (endpoint != null) {
                StringList list = new StringList(getEndpoints());

                // expand properties..
                for (int c = 0; c < list.size(); c++) {
                    list.set(c, PropertyExpander.expandProperties(this, list.get(c)));
                }

                if (!list.contains(endpoint)) {
                    if (UISupport.confirm("Update existing requests with new endpoint\n[" + endpoint + "]",
                            "Update Definition")) {
                        for (int c = 0; c < getOperationCount(); c++) {
                            Operation operation = getOperationAt(c);
View Full Code Here

        table.addProperty("WSS-Password Type", "wssPasswordType", new String[]{WsdlRequest.PW_TYPE_NONE,
                WsdlRequest.PW_TYPE_TEXT, WsdlRequest.PW_TYPE_DIGEST});
        table.addProperty("WSS TimeToLive", "wssTimeToLive", true);

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

        table.addProperty("Skip SOAP Action", "skipSoapAction", JPropertiesTable.BOOLEAN_OPTIONS);

        // mtom / attachments
        table.addProperty("Enable MTOM", "mtomEnabled", JPropertiesTable.BOOLEAN_OPTIONS);
View Full Code Here

        table.addProperty("Name", "name", true);
        table.addProperty("Description", "description", true);
        table.addProperty("Message Size", "contentLength", false);
        table.addProperty("Encoding", "encoding", new String[]{null, "UTF-8", "iso-8859-1"});

        StringList outgoingNames = new StringList(mockResponseStep.getTestCase().getTestSuite().getProject()
                .getWssContainer().getOutgoingWssNames());
        outgoingNames.add("");
        table.addProperty("Outgoing WSS", "outgoingWss", outgoingNames.toStringArray());

        // attachments
        table.addProperty("Enable MTOM", "mtomEnabled", JPropertiesTable.BOOLEAN_OPTIONS);

        // preprocessing
View Full Code Here

            notifyPropertyChanged("method", evt.getOldValue(), evt.getNewValue());
        }
    }

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

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

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

                PrintWriter writer = writers.get(c);
                if (writer == null) {
                    continue;
                }

                StringList values = snapshot[c];
                writer.append(dateString).append(',');
                writer.append(threadCountString).append(',');
                writer.append(elapsedString);

                for (String value : values) {
View Full Code Here

    public TestProperty getProperty(String name) {
        return propertyMap.get(name.toUpperCase());
    }

    public String[] getPropertyNames() {
        StringList result = new StringList();
        for (String name : propertyMap.keySet()) {
            result.add(propertyMap.get(name).getName());
        }

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

        for (Interface iface : project.getInterfaceList()) {
            endpoints.addAll(Arrays.asList(iface.getEndpoints()));
        }

        StringList keys = new StringList();

        synchronized (defaults) {
            for (String key : defaults.keySet()) {
                if (!endpoints.contains(key)) {
                    keys.add(key);
                }
            }

            for (String key : keys) {
                EndpointDefaults def = defaults.remove(key);
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.