Package com.eviware.soapui.support.types

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


    capturedData.setRawResponseData( getResponseToBytes( response.toString(), postMethod,
        capturedData.getRawResponseBody() ) );

    monitor.fireAfterProxy( request, response, postMethod, capturedData );

    StringToStringsMap responseHeaders = capturedData.getResponseHeaders();
    // copy headers to response
    HttpServletResponse httpResponse = ( HttpServletResponse )response;
    for( String name : responseHeaders.keySet() )
    {
      for( String header : responseHeaders.get( name ) )
        httpResponse.addHeader( name, header );

    }

    IO.copy( new ByteArrayInputStream( capturedData.getRawResponseBody() ), httpResponse.getOutputStream() );
View Full Code Here


    return null;
  }

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

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

    public String getContent()
    {
      if( request.getMockResult() == null )
        return "<missing response>";

      StringToStringsMap headers = request.getMockResult().getResponseHeaders();
      byte[] data = request.getMockResult().getRawResponseData();

      return buildRawContent( headers, data );
    }
View Full Code Here

    this.timeTolive = timeTolive;
  }

  public static StringToStringsMap getMessageHeadersAndProperties( Message message )
  {
    StringToStringsMap headermap = new StringToStringsMap();
    try
    {
      headermap.put( JMSDELIVERYMODE, String.valueOf( message.getJMSDeliveryMode() ) );
      headermap.put( JMSEXPIRATION, String.valueOf( message.getJMSExpiration() ) );
      headermap.put( JMSPRIORITY, String.valueOf( message.getJMSPriority() ) );
      headermap.put( JMSTIMESTAMP, String.valueOf( message.getJMSTimestamp() ) );
      headermap.put( JMSREDELIVERED, String.valueOf( message.getJMSRedelivered() ) );

      if( message.getJMSDestination() != null )
        headermap.put( JMSDESTINATION, String.valueOf( message.getJMSDestination() ) );

      if( message.getJMSMessageID() != null )
        headermap.put( JMSMESSAGEID, message.getJMSMessageID() );

      if( message.getJMSCorrelationID() != null )
        headermap.put( JMSCORRELATIONID, message.getJMSCorrelationID() );

      if( message.getJMSReplyTo() != null )
        headermap.put( JMSREPLYTO, String.valueOf( message.getJMSReplyTo() ) );

      if( message.getJMSType() != null )
        headermap.put( JMSTYPE, message.getJMSType() );

      Enumeration<?> properties = message.getPropertyNames();
      while( properties.hasMoreElements() )
      {
        String key = ( String )properties.nextElement();
        headermap.put( key, message.getStringProperty( key ) );
      }

    }
    catch( JMSException e )
    {
View Full Code Here

    if( messageSend != null )
    {
      return JMSHeader.getMessageHeadersAndProperties( messageSend );
    }
    else
      return new StringToStringsMap();

  }
View Full Code Here

    if( messageReceive != null )
    {
      return JMSHeader.getMessageHeadersAndProperties( messageReceive );
    }
    else
      return new StringToStringsMap();
  }
View Full Code Here

    return amfRequest.getTestStep().getTestCase().getConfig();
  }

  private void addHttpHeaders( AMFRequest amfRequest, SoapUIAMFConnection amfConnection )
  {
    StringToStringsMap httpHeaders = amfRequest.getHttpHeaders();
    if( httpHeaders != null )
    {
      for( String key : httpHeaders.getKeys() )
      {
        for( String value : httpHeaders.get( key ) )
          amfConnection.addHttpRequestHeader( key, context.expand( value ) );
      }
    }
  }
View Full Code Here

   * @param requestHeaders
   * @return
   */
  private StringToStringsMap excludeHeaders( StringToStringsMap requestHeaders )
  {
    StringToStringsMap stsmap = new StringToStringsMap();
    for( String key : requestHeaders.getKeys() )
    {
      if( !( key.contains( "Proxy" ) || key.contains( "Content" ) ) && !BrowserComponent.isHeaderExcluded( key ) )
      {
        stsmap.add( key, requestHeaders.get( key, "" ) );
      }
    }
    return stsmap;
  }
View Full Code Here

    return mockResult == null ? null : mockResult.getResponseContent();
  }

  public StringToStringsMap getResponseHeaders()
  {
    return mockResult == null ? new StringToStringsMap() : mockResult.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.