Package com.eviware.soapui.support.types

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


        public void actionPerformed(ActionEvent e) {
            if (optionsDialog == null) {
                optionsDialog = ADialogBuilder.buildDialog(OptionsForm.class);
            }

            StringList endpoints = new StringList();
            endpoints.add(null);

            for (WsdlInterface iface : ModelSupport.getChildren(getProject(), WsdlInterface.class)) {
                endpoints.addAll(iface.getEndpoints());
            }

            optionsDialog.setIntValue(OptionsForm.PORT, listenPort);
            optionsDialog.setIntValue(OptionsForm.MAXROWS, maxRows);
View Full Code Here


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

        WsdlProject project = mockResponse.getMockOperation().getMockService().getProject();
        StringList outgoingNames = new StringList(project.getWssContainer().getOutgoingWssNames());
        outgoingNames.add("");
        table.addProperty("Outgoing WSS", "outgoingWss", outgoingNames.toStringArray());

        // attachments
        table.addProperty("Enable MTOM", "mtomEnabled", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Force MTOM", "forceMtom", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Enable multiparts", "multipartEnabled", JPropertiesTable.BOOLEAN_OPTIONS);
View Full Code Here

                WsdlTestSuite testSuite = project.getTestSuiteByName(optionsDialog.getValue(OptionsForm.TESTSUITE));
                getModelItem().setTargetTestCase(
                        testSuite == null ? null
                                : testSuite.getTestCaseByName(optionsDialog.getValue(OptionsForm.TESTCASE)));
                getModelItem().setReturnProperties(
                        new StringList(
                                ((XFormMultiSelectList) optionsDialog.getFormField(OptionsForm.RETURN_PROPERTIES))
                                        .getSelectedOptions()));

                switch (optionsDialog.getValueIndex(OptionsForm.RUN_MODE)) {
                    case 0:
View Full Code Here

                "Matches incoming SOAP Version against corresponding Interface");
        table.addProperty("Require SOAP Action", "requireSoapAction", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Dispatch Responses", "dispatchResponseMessages", JPropertiesTable.BOOLEAN_OPTIONS);

        WsdlProject project = mockService.getProject();
        StringList incomingNames = new StringList(project.getWssContainer().getIncomingWssNames());
        incomingNames.add("");
        table.addProperty("Incoming WSS", "incomingWss", incomingNames.toStringArray());
        StringList outgoingNames = new StringList(project.getWssContainer().getOutgoingWssNames());
        outgoingNames.add("");
        table.addProperty("Default Outgoing WSS", "outgoingWss", outgoingNames.toStringArray());
        table.setPropertyObject(mockService);

        return table;
    }
View Full Code Here

        }

        this.settingsFile = settingsFile.getAbsolutePath();

        if (!settings.isSet(WsdlSettings.EXCLUDED_TYPES)) {
            StringList list = new StringList();
            list.add("schema@http://www.w3.org/2001/XMLSchema");
            settings.setString(WsdlSettings.EXCLUDED_TYPES, list.toXml());
        }

        if (settings.getString(HttpSettings.HTTP_VERSION, HttpSettings.HTTP_VERSION_1_1).equals(
                HttpSettings.HTTP_VERSION_0_9)) {
            settings.setString(HttpSettings.HTTP_VERSION, HttpSettings.HTTP_VERSION_1_1);
View Full Code Here

        return null;
    }

    public static String promptForUniqueName(String typeName, ModelItem parent, String def) {
        String name = UISupport.prompt("Specify name for new " + typeName, "New " + typeName, def);
        StringList names = new StringList();
        for (ModelItem item : parent.getChildren()) {
            names.add(item.getName());
        }

        while (name != null && names.contains(name)) {
            name = UISupport.prompt("Specify unique name for new " + typeName, "New " + typeName, def);
        }

        return name;
    }
View Full Code Here

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

        WsdlProject project = mockResponse.getMockOperation().getMockService().getProject();
        StringList outgoingNames = new StringList(project.getWssContainer().getOutgoingWssNames());
        outgoingNames.add("");
        table.addProperty("Outgoing WSS", "outgoingWss", outgoingNames.toStringArray());

        // attachments
        table.addProperty("Enable MTOM", "mtomEnabled", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Force MTOM", "forceMtom", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Enable multiparts", "multipartEnabled", JPropertiesTable.BOOLEAN_OPTIONS);
View Full Code Here

    public static String[] extractTemplateParams(String path) {
        if (StringUtils.isNullOrEmpty(path)) {
            return new String[0];
        }

        StringList result = new StringList();

        int ix = path.indexOf('{');
        while (ix != -1) {
            int endIx = path.indexOf('}', ix);
            if (endIx == -1) {
                break;
            }

            if (endIx > ix + 1 && (ix > 0 && path.charAt(ix - 1) != '$')) {
                result.add(path.substring(ix + 1, endIx));
            }

            ix = path.indexOf('{', ix + 1);
        }

        return result.toStringArray();

    }
View Full Code Here

                || "multipart/mixed".equals(request.getMediaType());
    }


    public static List<String> splitMultipleParameters(String paramStr, String delimiter) {
        StringList result = new StringList();

        if (StringUtils.hasContent(paramStr)) {
            if (!StringUtils.hasContent(delimiter)) {
                result.add(paramStr);
            } else {
                result.addAll(paramStr.split(delimiter));
            }
        }

        return result;
View Full Code Here

     * @param paramStr
     * @param delimiter
     * @return
     */
    public static List<String> splitMultipleParametersEmptyIncluded(String paramStr, String delimiter) {
        StringList result = new StringList();

        if (!StringUtils.hasContent(delimiter)) {
            result.add(paramStr);
        } else {
            result.addAll(paramStr.split(delimiter));
        }

        return result;
    }
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.