Package com.eviware.soapui.support.types

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


  protected void initHeadersForLoadTest( ExtendedHttpMethod httpMethod )
  {
    try
    {
      requestHeaders = new StringToStringsMap();
      Header[] headers = httpMethod.getRequestHeaders();
      for( Header header : headers )
      {
        requestHeaders.put( header.getName(), header.getValue() );
      }

      if( !httpMethod.isFailed() )
      {
        responseHeaders = new StringToStringsMap();
        headers = httpMethod.getResponseHeaders();
        for( Header header : headers )
        {
          responseHeaders.put( header.getName(), header.getValue() );
        }
View Full Code Here


    this.response = response;
    this.context = context;

    requestContext = new WsdlMockRunContext( context.getMockService(), null );

    requestHeaders = new StringToStringsMap();
    for( Enumeration<?> e = request.getHeaderNames(); e.hasMoreElements(); )
    {
      String header = ( String )e.nextElement();
      String lcHeader = header.toLowerCase();
      if( lcHeader.equals( "soapaction" ) )
View Full Code Here

    result.extractAndAddAll( "endpoint" );
    result.extractAndAddAll( "username" );
    result.extractAndAddAll( "password" );
    result.extractAndAddAll( "domain" );

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

    for( String key : testRequest.getParams().getPropertyNames() )
    {
View Full Code Here

      return oldValue;
    }

    public void setValue( String value )
    {
      StringToStringsMap valueMap = testRequest.getRequestHeaders();
      valueMap.replace( key, oldValue, value );
      testRequest.setRequestHeaders( valueMap );
    }
View Full Code Here

    return amfRequest.executeAmfScript( submitContext );
  }

  public void setHttpHeaders( StringToStringsMap httpHeaders )
  {
    StringToStringsMap old = getHttpHeaders();
    getSettings().setString( HTTP_HEADERS_PROPERTY, httpHeaders.toXml() );
    notifyPropertyChanged( HTTP_HEADERS_PROPERTY, old, httpHeaders );
  }
View Full Code Here

    result.extractAndAddAll( "endpoint" );
    result.extractAndAddAll( "username" );
    result.extractAndAddAll( "password" );
    result.extractAndAddAll( "domain" );

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

    return result.toArray( new PropertyExpansion[result.size()] );
  }
View Full Code Here

      context.setMockResponse( this );

      context.putAll( request.getContext() );
      context.putAll( request.getRequestContext() );

      StringToStringsMap responseHeaders = getResponseHeaders();
      for( String name : responseHeaders.keySet() )
      {
        for( String value : responseHeaders.get( name ) )
          result.addHeader( name, PropertyExpander.expandProperties( context, value ) );
      }

      responseContent = PropertyExpander.expandProperties( context, responseContent, isEntitizeProperties() );
View Full Code Here

    }
  }

  public void setResponseHeaders( StringToStringsMap headers )
  {
    StringToStringsMap oldHeaders = getResponseHeaders();

    getConfig().setHeaderArray( new HeaderConfig[0] );

    for( String header : headers.keySet() )
    {
View Full Code Here

    notifyPropertyChanged( HEADERS_PROPERTY, oldHeaders, headers );
  }

  public StringToStringsMap getResponseHeaders()
  {
    StringToStringsMap result = new StringToStringsMap();
    List<HeaderConfig> headerList = getConfig().getHeaderList();
    for( HeaderConfig header : headerList )
    {
      result.add( header.getName(), header.getValue() );
    }

    return result;
  }
View Full Code Here

  {
    List<PropertyExpansion> result = new ArrayList<PropertyExpansion>();

    result.addAll( PropertyExpansionUtils.extractPropertyExpansions( this, this, "responseContent" ) );

    StringToStringsMap responseHeaders = getResponseHeaders();
    for( String key : responseHeaders.keySet() )
    {
      for( String value : responseHeaders.get( key ) )
        result.addAll( PropertyExpansionUtils.extractPropertyExpansions( this, new ResponseHeaderHolder( key,
            value, this ), "value" ) );
    }

    addWsaPropertyExpansions( result, getWsaConfig(), this );
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.