Examples of StringToStringMap


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

    {
      JMSPropertiesConfig jmsPropertyConfig = ( ( AbstractHttpRequest<?> )request ).getJMSPropertiesConfig();
      try
      {
        List<JMSPropertyConfig> propertyList = jmsPropertyConfig.getJMSProperties();
        StringToStringMap stringToStringMap = new StringToStringMap( propertyList.size() );
        for( JMSPropertyConfig jmsProperty : propertyList )
        {
          stringToStringMap.put( jmsProperty.getName(), jmsProperty.getValue() );
        }

        // CUSTOM PROPERTIES
        String keys[] = stringToStringMap.getKeys();
        for( String key : keys )
        {
          if( !key.equals( JMSCORRELATIONID ) && !key.equals( JMSREPLYTO ) && !key.equals( TIMETOLIVE )
              && !key.equals( JMSTYPE ) && !key.equals( JMSPRIORITY ) && !key.equals( JMSDELIVERYMODE ) )
          {
            message.setStringProperty( key,
                PropertyExpander.expandProperties( submitContext, stringToStringMap.get( key ) ) );
          }
        }
      }

      catch( Exception e )
View Full Code Here

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

    {
      ArrayList<?> errorList = schemaException.getErrorList();

      if( errorList != null )
      {
        StringToStringMap doubles = new StringToStringMap();
        boolean appended = false;

        for( int c = 0; c < errorList.size(); c++ )
        {
          Object error = errorList.get( c );
          if( error instanceof XmlError )
          {
            XmlError xmlError = ( XmlError )error;
            String sourceName = xmlError.getSourceName();
            String message = xmlError.getMessage();

            if( !doubles.containsKey( message ) || !doubles.get( message ).equalsIgnoreCase( sourceName ) )
            {
              if( appended )
                result.append( "<hr>" );

              result.append( "<b>Source:</b> " ).append( sourceName ).append( "<br>" );
              result.append( "<b>Error:</b> " ).append( message ).append( "<br>" );
              appended = true;

              doubles.put( message, sourceName );
            }
          }
          else
          {
            if( appended )
View Full Code Here

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

      if( responseContent == null )
      {
        if( responseContentType != null && responseContentType.toUpperCase().startsWith( "MULTIPART" ) )
        {
          StringToStringMap values = StringToStringMap.fromHttpHeader( responseContentType );
          responseMmSupport = new MultipartMessageSupport( new MonitorMessageExchangeDataSource(
              "monitor response", in, responseContentType ), values.get( "start" ), null, true, false );
          responseContentType = responseMmSupport.getRootPart().getContentType();
        }
        else
        {
          String charset = getCharset( responseHeaders );
View Full Code Here

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

    try
    {
      requestContentType = requestHeaders.get( "Content-Type", "" );
      if( requestContentType != null && requestContentType.toUpperCase().startsWith( "MULTIPART" ) )
      {
        StringToStringMap values = StringToStringMap.fromHttpHeader( requestContentType );
        requestMmSupport = new MultipartMessageSupport( new MonitorMessageExchangeDataSource( "monitor request",
            in, requestContentType ), values.get( "start" ), null, true, false );
        requestContentType = requestMmSupport.getRootPart() != null ? requestMmSupport.getRootPart()
            .getContentType() : null;
      }
      else
      {
View Full Code Here

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

  private static String getCharset( StringToStringsMap headers )
  {
    String requestContentType = headers.get( "Content-Type", "" );
    if( requestContentType != null )
    {
      StringToStringMap values = StringToStringMap.fromHttpHeader( requestContentType );
      if( values.containsKey( "charset" ) )
        return values.get( "charset" );
    }

    String contentEncodingHeader = headers.get( "Content-Encoding", "" );
    if( contentEncodingHeader != null )
    {
View Full Code Here

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

    this.method = method;

    if( requestConfig.getParameters() == null )
      requestConfig.addNewParameters();

    StringToStringMap paramValues = StringToStringMap.fromXml( requestConfig.getParameters() );
    params = new RestRequestParamsPropertyHolder( method.getOverlayParams(), this, paramValues );
    paramUpdater = new ParamUpdater( paramValues );
    params.addTestPropertyListener( paramUpdater );

    if( method != null )
View Full Code Here

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

    }
  }

  protected void updateParams()
  {
    StringToStringMap paramValues = StringToStringMap.fromXml( getConfig().getParameters() );
    params.reset( getRestMethod().getOverlayParams(), paramValues );
    paramUpdater.setValues( paramValues );
  }
View Full Code Here

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

    else if( mainForm != null )
    {
      mainForm.setOptions( ENDPOINT, new String[] { null } );
    }

    StringToStringMap values = super.initValues( modelItem, param );
    if( !values.isEmpty() )
      return values;

    values.put( ENDPOINT, getDefinition( modelItem ) );
    values.put( PORT, "8080" );

    return values;
  }
View Full Code Here

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

  private ArgumentBuilder buildArgs( WsdlInterface modelItem ) throws IOException
  {
    XFormDialog dialog = getDialog();
    if( dialog == null )
    {
      ArgumentBuilder builder = new ArgumentBuilder( new StringToStringMap() );
      builder.startScript( "tcpmon", ".bat", ".sh" );
      return builder;
    }

    StringToStringMap values = dialog.getValues();

    ArgumentBuilder builder = new ArgumentBuilder( values );
    builder.startScript( "tcpmon", ".bat", ".sh" );

    builder.addArgs( values.get( PORT ) );
    String endpoint = values.get( ENDPOINT );
    if( endpoint != null && !endpoint.equals( "- none available -" ) )
    {
      URL url = new URL( endpoint );
      builder.addArgs( url.getHost() );
      builder.addArgs( ( url.getPort() == -1 ) ? "80" : "" + url.getPort() );

      if( values.getBoolean( ADD_ENDPOINT ) )
      {
        modelItem.addEndpoint( "http://localhost:" + values.get( PORT ) + url.getPath() );
      }
    }

    addToolArgs( values, builder );
    return builder;
View Full Code Here

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

    File file = File.createTempFile( "wsi-analyzer-config", ".xml" );

    configDoc.save( file );

    ArgumentBuilder builder = new ArgumentBuilder( new StringToStringMap() );
    builder.startScript( wsiToolDir.getAbsolutePath() + File.separator + "Analyzer", ".bat", ".sh" );

    builder.addArgs( "-config", file.getAbsolutePath() );

    // add this to command-line due to bug in wsi-tools (?)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.