Package com.eviware.soapui.support.types

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


    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() );

    table.addProperty( "Handle Fault", "handleFault", JPropertiesTable.BOOLEAN_OPTIONS );
    table.addProperty( "Handle Response", "handleResponse", JPropertiesTable.BOOLEAN_OPTIONS );

    // attachments
View Full Code Here


    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

        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 ) )
        {
View Full Code Here

    table.addProperty( "Port", "port" );
    table.addProperty( "Match SOAP Version", "requireSoapVersion", JPropertiesTable.BOOLEAN_OPTIONS ).setDescription(
        "Matches incoming SOAP Version against corresponding Interface" );
    table.addProperty( "Require SOAP Action", "requireSoapAction", JPropertiesTable.BOOLEAN_OPTIONS );
    table.addProperty( "Dispatch Responses", "dispatchResponseMessages", JPropertiesTable.BOOLEAN_OPTIONS );
    StringList incomingNames = new StringList( mockService.getProject().getWssContainer().getIncomingWssNames() );
    incomingNames.add( "" );
    table.addProperty( "Incoming WSS", "incomingWss", incomingNames.toStringArray() );
    StringList outgoingNames = new StringList( mockService.getProject().getWssContainer().getOutgoingWssNames() );
    outgoingNames.add( "" );
    table.addProperty( "Default Outgoing WSS", "outgoingWss", outgoingNames.toStringArray() );
    table.setPropertyObject( mockService );

    return table;
  }
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

  // private final static Pattern splitPattern = Pattern.compile( "[^|]\\|[^|]"
  // );

  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 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

      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

    // security / authentication
    table.addProperty( "Username", "username", true );
    table.addPropertyShadow( "Password", "password", true );
    table.addProperty( "Domain", "domain", true );

    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

    }
  }

  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

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.