Package com.eviware.soapui.support.types

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


  public PropertyExpansion[] getPropertyExpansions()
  {
    PropertyExpansionsResult result = new PropertyExpansionsResult( this, this );
    result.addAll( super.getPropertyExpansions() );

    StringToStringsMap requestHeaders = getRequestHeaders();
    for( String key : requestHeaders.keySet() )
    {
      for( String value : requestHeaders.get( key ) )
        result.addAll( PropertyExpansionUtils.extractPropertyExpansions( this,
            new HttpTestRequestStep.RequestHeaderHolder( key, value, this ), "value" ) );
    }
    addWsaPropertyExpansions( result, getWsaConfig(), this );
    addJMSHeaderExpansions( result, getJMSHeaderConfig(), this );
View Full Code Here


  public StringToStringsMap getResponseHeaders()
  {
    if( response == null )
      response = getModelItem().getResponse();

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

    }

    writer.println( "\r\n---------------- Request ---------------------------" );
    if( response != null )
    {
      StringToStringsMap headers = response.getRequestHeaders();
      for( String key : headers.keySet() )
      {
        if( headers.get( key ) != null )
          writer.println( key + ": " + headers.get( key ) );
      }
    }

    if( StringUtils.hasContent( requestContent ) )
      writer.println( "\r\n" + requestContent );
    else
      writer.println( "\r\n- missing request / garbage collected -" );

    writer.println( "\r\n---------------- Response --------------------------" );
    if( response != null )
    {
      StringToStringsMap headers = response.getResponseHeaders();
      for( String key : headers.keySet() )
      {
        if( headers.get( key ) != null )
          writer.println( key + ": " + headers.get( key ) );
      }

      String respContent = response.getContentAsString();
      if( respContent != null )
        writer.println( "\r\n" + respContent );
View Full Code Here

  }

  public StringToStringsMap getResponseHeaders()
  {
    if( response == null )
      return new StringToStringsMap();

    return response.getResponseHeaders();
  }
View Full Code Here

  public StringToStringsMap getResponseHeaders()
  {
    if( response == null )
      response = getModelItem().getResponse();

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

    return getRequest().requestAsXML();
  }

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

    return softResponse != null && softResponse.get() != null ? softResponse.get().getResponseContentXML() : null;
  }

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

    return responseContentXML;
  }

  protected void initHeaders( ExtendedPostMethod postMethod )
  {
    requestHeaders = new StringToStringsMap();
    responseHeaders = new StringToStringsMap();

    if( postMethod == null )
      return;

    try
View Full Code Here

    try
    {
      Settings settings = httpRequest.getSettings();

      // custom http headers last so they can be overridden
      StringToStringsMap headers = httpRequest.getRequestHeaders();

      // first remove so we don't get any unwanted duplicates
      for( String header : headers.keySet() )
      {
        httpMethod.removeRequestHeader( header );
      }

      // now add
      for( String header : headers.keySet() )
      {
        for( String headerValue : headers.get( header ) )
        {
          headerValue = PropertyExpander.expandProperties( submitContext, headerValue );
          httpMethod.addRequestHeader( header, headerValue );
        }
      }
View Full Code Here

        }
      }

      rawRequest.write( ( method + " " + String.valueOf( url ) + " " + version + "\r\n" ).getBytes() );

      requestHeaders = new StringToStringsMap();
      Header[] headers = httpMethod.getRequestHeaders();
      for( Header header : headers )
      {
        requestHeaders.put( header.getName(), header.getValue() );
        rawRequest.write( header.toExternalForm().getBytes() );
      }

      responseHeaders = new StringToStringsMap();

      if( !httpMethod.isFailed() )
      {
        headers = httpMethod.getResponseHeaders();
        for( Header header : headers )
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.