Package com.eviware.soapui.support.types

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


      return oldValue;
    }

    public void setValue( String value )
    {
      StringToStringsMap valueMap = mockResponse.getResponseHeaders();
      valueMap.replace( key, oldValue, value );
      mockResponse.setResponseHeaders( valueMap );
    }
View Full Code Here


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

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

    StringToStringsMap responseHeaders = mockResponse.getResponseHeaders();
    for( String key : responseHeaders.keySet() )
    {
      for( String value : responseHeaders.get( key ) )
        result.addAll( PropertyExpansionUtils.extractPropertyExpansions( this, new ResponseHeaderHolder( key,
            value, mockResponse ), "value" ) );
    }
    mockResponse.addWsaPropertyExpansions( result, mockResponse.getWsaConfig(), this );
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" );
    }

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

     *
     * @param map
     */

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

    public void setRequestHeaders(StringToStringMap map) {
        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

    private Vector responseWssResult;

    public TcpMonWsdlMonitorMessageExchange(WsdlProject project) {
        super(null);
        this.project = project;
        responseHeaders = new StringToStringsMap();
        requestHeaders = new StringToStringsMap();
        timestamp = System.currentTimeMillis();
    }
View Full Code Here

    private String responseStatusLine;
    private String queryParameters;

    public JProxyServletWsdlMonitorMessageExchange(WsdlProject project) {
        super(null);
        responseHeaders = new StringToStringsMap();
        requestHeaders = new StringToStringsMap();
        timestampStart = System.currentTimeMillis();
        this.project = project;
        capture = true;
    }
View Full Code Here

                }
            }

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

            requestHeaders = new StringToStringsMap();
            Header[] headers = httpMethod.getAllHeaders();

            for (Header header : headers) {
                requestHeaders.put(header.getName(), header.getValue());
                rawRequest.write(toExternalForm(header).getBytes());
            }

            responseHeaders = new StringToStringsMap();

            if (!httpMethod.isFailed() && httpMethod.hasHttpResponse()) {
                headers = httpMethod.getAllResponseHeaders();
                for (Header header : headers) {
                    responseHeaders.put(header.getName(), header.getValue());
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.