Package com.eviware.soapui.impl.wsdl.submit.transports.http

Examples of com.eviware.soapui.impl.wsdl.submit.transports.http.HttpResponse


    return new MessagePart[0];
  }

  public String getResponseContentAsXml()
  {
    HttpResponse response = getResponse();
    if( response == null )
      return null;

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


      return modelItem.getResponseContentAsXml();
    }

    public void setXml( String xml )
    {
      HttpResponse response = getRequest().getResponse();
      if( response != null )
        response.setResponseContent( xml );
    }
View Full Code Here

    notifyPropertyChanged( "path", old, fullPath );
  }

  public String getResponseContentAsXml()
  {
    HttpResponse response = getResponse();
    if( response == null )
      return null;

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

  {
    if( submit.getRequest() != request )
      return;

    Status status = submit.getStatus();
    HttpResponse response = ( HttpResponse )submit.getResponse();
    if( status == Status.FINISHED || status == Status.ERROR )
    {
      request.setResponse( response, context );
    }

    if( hasClosed )
    {
      request.removeSubmitListener( this );
      return;
    }

    cancelButton.setEnabled( false );
    setEnabled( true );

    String message = null;
    String infoMessage = null;
    String requestName = request.getOperation() == null ? request.getName() : request.getOperation().getInterface()
        .getName()
        + "." + request.getOperation().getName() + ":" + request.getName();

    if( status == Status.CANCELED )
    {
      message = "CANCELED";
      infoMessage = "[" + requestName + "] - CANCELED";
    }
    else
    {
      if( status == Status.ERROR || response == null )
      {
        message = "Error getting response; " + submit.getError();
        infoMessage = "Error getting response for [" + requestName + "]; " + submit.getError();
      }
      else
      {
        long attchmentsSize = 0;
        if( response.getAttachments().length > 0 )
        {
          for( Attachment att : response.getAttachments() )
          {
            attchmentsSize += att.getSize();
          }
        }
        message = "response time: " + response.getTimeTaken() + "ms ("
            + ( response.getContentLength() + attchmentsSize ) + " bytes)";
        infoMessage = "Got response for [" + requestName + "] in " + response.getTimeTaken() + "ms ("
            + ( response.getContentLength() + attchmentsSize ) + " bytes)";

        if( !splitButton.isEnabled() )
          requestTabs.setSelectedIndex( 1 );

        responseEditor.requestFocus();
View Full Code Here

        Component component = browser.getComponent();
        component.setMinimumSize( new Dimension( 100, 100 ) );
        panel.add( buildToolbar(), BorderLayout.NORTH );
        panel.add( component, BorderLayout.CENTER );

        HttpResponse response = httpRequest.getResponse();
        if( response != null )
          setEditorContent( response );
      }
    }
View Full Code Here

    return response;
  }

  public void setResponse( HttpResponse response, SubmitContext context )
  {
    HttpResponse oldResponse = getResponse();
    this.response = response;

    notifyPropertyChanged( RESPONSE_PROPERTY, oldResponse, response );
  }
View Full Code Here

    return response == null ? null : response.getContentAsString();
  }

  public void setXml( String xml )
  {
    HttpResponse response = ( HttpResponse )request.getResponse();
    if( response != null )
    {
      try
      {
        settingResponse = true;
        String oldXml = response.getContentAsString();
        response.setResponseContent( xml );
        fireXmlChanged( oldXml, xml );
      }
      finally
      {
        settingResponse = false;
View Full Code Here

    setTitle( sslInfoTabTitle );
  }

  public void propertyChange( PropertyChangeEvent evt )
  {
    HttpResponse response = request.getResponse();
    updateSSLInfo( response == null ? null : response.getSSLInfo() );
    setEnabled( response != null && response.getSSLInfo() != null );
  }
View Full Code Here

    return true;
  }

  public void afterSubmit( Submit submit, SubmitContext context )
  {
    HttpResponse response = ( HttpResponse )submit.getResponse();
    if( response != null && enableRecordingCheckBox.isSelected() )
    {
      if( HttpUtils.isErrorStatus( response.getStatusCode() ) )
      {
        extractRepresentation( response, RestRepresentation.Type.FAULT );
      }
      else
      {
View Full Code Here

    return true;
  }

  public void afterSubmit( Submit submit, SubmitContext context )
  {
    HttpResponse response = ( HttpResponse )submit.getResponse();
    if( response != null && enableRecordingCheckBox.isSelected() )
    {
      extractRepresentation( response );
    }
  }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.submit.transports.http.HttpResponse

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.