Package com.eviware.soapui.support.types

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


    out.print( "<h4>Details for MockResult at " + new java.util.Date( result.getTimestamp() ) + " ("
        + result.getTimeTaken() + "ms)</h4>" );

    out.println( "<hr/><p><b>Request Headers</b>:</p>" );
    out.print( "<table border=\"1\"><tr><td>Header</td><td>Value</td></tr>" );
    StringToStringsMap headers = result.getMockRequest().getRequestHeaders();
    for( String name : headers.getKeys() )
    {
      for( String value : headers.get( name ) )
        out.println( "<tr><td>" + name + "</td><td>" + value + "</td></tr>" );
    }
    out.println( "</table>" );

    out.println( "<hr/><b>Incoming Request</b>:<br/><pre>"
        + XmlUtils.entitize( result.getMockRequest().getRequestContent() ) + "</pre>" );

    out.println( "<hr/><p><b>Response Headers</b>:</p>" );
    out.print( "<table border\"1\"><tr><td>Header</td><td>Value</td></tr>" );
    headers = result.getResponseHeaders();
    for( String name : headers.getKeys() )
    {
      for( String value : headers.get( name ) )
        out.println( "<tr><td>" + name + "</td><td>" + value + "</td></tr>" );
    }
    out.println( "</table>" );

    out.println( "<hr/><b>Returned Response</b>:<pre>" + XmlUtils.entitize( result.getResponseContent() ) + "</pre>" );
View Full Code Here


                      }
                    }
                  }
                }

                final StringToStringsMap headersMap = new StringToStringsMap();
                httpChannel.visitRequestHeaders( new nsIHttpHeaderVisitor()
                {

                  public void visitHeader( String header, String value )
                  {
                    if( !isHeaderExcluded( header ) )
                    {
                      headersMap.put( header, value );
                    }
                  }

                  public nsISupports queryInterface( String sIID )
                  {
View Full Code Here

   * @param map
   */

  public void setRequestHeaders( StringToStringMap map )
  {
    setRequestHeaders( new StringToStringsMap( map ) );
  }
View Full Code Here

    setRequestHeaders( new StringToStringsMap( map ) );
  }

  public void setRequestHeaders( StringToStringsMap map )
  {
    StringToStringsMap old = getRequestHeaders();
    getSettings().setString( REQUEST_HEADERS_PROPERTY, map.toXml() );
    notifyPropertyChanged( REQUEST_HEADERS_PROPERTY, old, map );
  }
View Full Code Here

    result.addAll( PropertyExpansionUtils.extractPropertyExpansions( this, this, "endpoint" ) );
    result.addAll( PropertyExpansionUtils.extractPropertyExpansions( this, this, "username" ) );
    result.addAll( PropertyExpansionUtils.extractPropertyExpansions( this, this, "password" ) );
    result.addAll( PropertyExpansionUtils.extractPropertyExpansions( this, this, "domain" ) );

    StringToStringsMap requestHeaders = getRequestHeaders();
    for( String key : requestHeaders.keySet() )
    {
      for( String value : requestHeaders.get( key ) )
        result.extractAndAddAll( new RequestHeaderHolder( key, value, this ), "value" );
    }

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

    return null;
  }

  public StringToStringsMap getRequestHeaders()
  {
    return new StringToStringsMap();
  }
View Full Code Here

    return getResponseContent();
  }

  public StringToStringsMap getResponseHeaders()
  {
    return new StringToStringsMap();
  }
View Full Code Here

    fireTableRowsDeleted( row, row );
  }

  public StringToStringsMap getData()
  {
    return new StringToStringsMap( data );
  }
View Full Code Here

    return new StringToStringsMap( data );
  }

  public synchronized void setData( StringToStringsMap newData )
  {
    data = newData == null ? new StringToStringsMap() : new StringToStringsMap( newData );

    keyList.clear();
    for( String key : data.keySet() )
    {
      for( String value : data.get( key ) )
View Full Code Here

    return XmlUtils.seemsToBeXml( responseContent ) ? responseContent : null;
  }

  public StringToStringsMap getResponseHeaders()
  {
    return getResponse() == null ? new StringToStringsMap() : getResponse().getResponseHeaders();
  }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.types.StringToStringsMap

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.