Package com.eviware.soapui.support.types

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


    table.addProperty( "Domain", "domain", true );
    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


      dialog.setSize( 650, 500 );
    }

    Settings settings = project.getSettings();

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

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

    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "Launch LoadTestRunner" );
    generalForm = builder.createForm( "General" );
View Full Code Here

    return writer;
  }

  public static StringList readSeparatedRow( String row, char separator, char quote )
  {
    StringList result = new StringList();

    while( row != null && row.length() > 0 )
    {
      if( row.startsWith( String.valueOf( quote ) ) )
      {
        StringBuffer buf = new StringBuffer();
        char last = row.charAt( 0 );
        int ix = 1;
        while( ix < row.length() )
        {
          char ch = row.charAt( ix );
          if( ch == quote && last != '\\' )
          {
            result.add( buf.toString() );
            row = row.length() > ix + 1 ? row.substring( ix + 1 ) : null;
            if( row != null && row.length() > 1 && row.charAt( 0 ) == separator )
            {
              row = row.substring( 1 );
              ix = -1;
            }
            break;
          }
          else if( ch != '\\' || last == '\\' )
          {
            buf.append( ch );
          }

          last = ch;
          ix++ ;
        }

        if( row != null && ix == row.length() )
        {
          result.add( row );
          row = null;
        }
      }
      else
      {
        int ix = row.indexOf( separator );
        if( ix == -1 )
        {
          result.add( row );
          row = null;
        }
        else
        {
          result.add( row.substring( 0, ix ) );
          row = row.substring( ix + 1 );
        }
      }
    }
View Full Code Here

    return str;
  }

  public static String[] merge( String[] incomingNames, String string )
  {
    StringList result = new StringList( incomingNames );
    result.add( string );
    return result.toStringArray();
  }
View Full Code Here

    return result;
  }

  public static List<String> toStringList( Object[] selectedOptions )
  {
    StringList result = new StringList();

    for( Object o : selectedOptions )
    {
      result.add( o.toString() );
    }

    return result;
  }
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.isSet( WebRecordingSettings.EXCLUDED_HEADERS ) )
    {
      StringList list = new StringList();
      list.add( "Cookie" );
      list.add( "Set-Cookie" );
      list.add( "Referer" );
      list.add( "Keep-Alive" );
      list.add( "Connection" );
      list.add( "Proxy-Connection" );
      list.add( "Pragma" );
      list.add( "Cache-Control" );
      list.add( "Transfer-Encoding" );
      list.add( "Date" );
      settings.setString( WebRecordingSettings.EXCLUDED_HEADERS, list.toXml() );
    }

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

  }

  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

    List<String> result = new ArrayList<String>();
    if( excluded != null && excluded.trim().length() > 0 )
    {
      try
      {
        StringList names = StringList.fromXml( excluded );
        for( String name : names )
        {
          result.add( name );
        }
      }
View Full Code Here

    String[] oldData = getData();
    listModel.clear();

    try
    {
      StringList stringList = StringList.fromXml( value );

      String[] files = stringList.toStringArray();
      for( String file : files )
        if( file.trim().length() > 0 )
          listModel.addElement( file );

      firePropertyChange( "data", oldData, getData() );
View Full Code Here

    }
  }

  public String getValue()
  {
    StringList result = new StringList( listModel.toArray() );
    return result.toXml();
  }
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.