Package com.eviware.soapui.impl.settings

Examples of com.eviware.soapui.impl.settings.XmlBeansSettingsImpl$InternalSettingsListener


      Header responseContentTypeHeader, String requestContent )
  {
    if( context.hasProperty( "PreWssProcessedDocument" ) )
      requestContent = String.valueOf( context.getProperty( "PreWssProcessedDocument" ) );

    XmlBeansSettingsImpl settings = request.getSettings();
    if( !settings.getBoolean( WsdlRequest.INLINE_RESPONSE_ATTACHMENTS ) && responseContentTypeHeader != null
        && responseContentTypeHeader.getValue().toUpperCase().startsWith( "MULTIPART" ) )
    {
      return new WsdlMimeMessageResponse( request, httpMethod, requestContent, context );
    }
    else
View Full Code Here


      // no caching -> create copy and remove definition cachings
      removeDefinitionCaches( projectDocument );
    }

    // remove project root
    XmlBeansSettingsImpl tempSettings = new XmlBeansSettingsImpl( this, null, projectDocument.getSoapuiProject()
        .getSettings() );
    tempSettings.clearSetting( ProjectSettings.PROJECT_ROOT );

    // check for encryption
    String passwordForEncryption = getSettings().getString( ProjectSettings.SHADOW_PASSWORD, null );

    // if it has encryptedContend that means it is not decrypted corectly( bad
View Full Code Here

      settings.release();

    if( !config.isSetSettings() )
      config.addNewSettings();

    settings = new XmlBeansSettingsImpl( this, parent == null ? SoapUI.getSettings() : parent.getSettings(),
        this.config.getSettings() );
  }
View Full Code Here

    }

    if( settingsDocument.getSoapuiSettings() == null )
    {
      settingsDocument.addNewSoapuiSettings();
      settings = new XmlBeansSettingsImpl( null, null, settingsDocument.getSoapuiSettings() );

      initDefaultSettings( settings );
    }
    else
    {
      settings = new XmlBeansSettingsImpl( null, null, settingsDocument.getSoapuiSettings() );
    }

    this.settingsFile = settingsFile.getAbsolutePath();

    if( !settings.isSet( WsdlSettings.EXCLUDED_TYPES ) )
View Full Code Here

      log.info( messages.get( "FailedToLoadWorkspaceFrom", file.getAbsolutePath() ) );
      workspaceConfig = SoapuiWorkspaceDocumentConfig.Factory.parse( file );
      if( workspaceConfig.getSoapuiWorkspace().getSettings() == null )
        workspaceConfig.getSoapuiWorkspace().addNewSettings();
      setPath( file.getAbsolutePath() );
      settings = new XmlBeansSettingsImpl( this, SoapUI.getSettings(), workspaceConfig.getSoapuiWorkspace()
          .getSettings() );

      boolean closeOnStartup = getSettings().getBoolean( UISettings.CLOSE_PROJECTS );
      List<WorkspaceProjectConfig> projects = workspaceConfig.getSoapuiWorkspace().getProjectList();
      for( int i = 0; i < projects.size(); i++ )
      {
        WorkspaceProjectConfig wsc = projects.get( i );
        String str = PathUtils.denormalizePath( wsc.getStringValue() );

        str = PathUtils.adjustRelativePath( str, getProjectRoot(), this );

        try
        {
          // WsdlProject project = new WsdlProject( str, this, false,
          // !closeOnStartup &&
          // wsc.getStatus() != Status.CLOSED && wsc.getType() !=
          // Type.REMOTE, wsc.getName(), null);
          WsdlProject project = ( WsdlProject )ProjectFactoryRegistry.getProjectFactory( "wsdl" ).createNew( str,
              this, false, !closeOnStartup && wsc.getStatus() != Status.CLOSED && wsc.getType() != Type.REMOTE,
              wsc.getName(), null );

          projectList.add( project );
        }
        catch( Exception e )
        {
          UISupport.showErrorMessage( messages.get( "FailedToLoadProjectInWorkspace", str ) + e.getMessage() );

          SoapUI.logError( e );
        }
      }
    }
    else
    {
      workspaceConfig = SoapuiWorkspaceDocumentConfig.Factory.newInstance();
      workspaceConfig.addNewSoapuiWorkspace().setName( messages.get( "DefaultWorkspaceName" ) );
      workspaceConfig.getSoapuiWorkspace().addNewSettings();

      settings = new XmlBeansSettingsImpl( this, SoapUI.getSettings(), workspaceConfig.getSoapuiWorkspace()
          .getSettings() );
    }
  }
View Full Code Here

  protected HttpTestRequest( HttpRequestConfig config, HttpTestRequestStep testStep, boolean forLoadTest )
  {
    super( config, forLoadTest );
    this.forLoadTest = forLoadTest;

    setSettings( new XmlBeansSettingsImpl( this, testStep.getSettings(), config.getSettings() ) );

    this.testStep = testStep;

    initAssertions();
    if( !forLoadTest )
View Full Code Here

    enableRecordingCheckBox = new JCheckBox( "Auto-Create" );
    enableRecordingCheckBox.setToolTipText( "Automatically create Representations from received Responses" );
    enableRecordingCheckBox.setOpaque( false );
    UISupport.setFixedSize( enableRecordingCheckBox, 150, 20 );
    toolbar.addFixed( enableRecordingCheckBox );
    XmlBeansSettingsImpl settings = getMethod().getSettings();
    if( settings.isSet( RECORD_RESPONSE_REPRESENTATIONS ) )
    {
      enableRecordingCheckBox.setSelected( settings.getBoolean( RECORD_RESPONSE_REPRESENTATIONS ) );
    }
    else
    {
      enableRecordingCheckBox.setSelected( getMethod().getResource() == null
          || getMethod().getResource().getService().isGenerated() );
View Full Code Here

    enableRecordingCheckBox = new JCheckBox( "Auto-Create" );
    enableRecordingCheckBox.setToolTipText( "Automatically create Representations from sent Requests" );
    enableRecordingCheckBox.setOpaque( false );
    UISupport.setFixedSize( enableRecordingCheckBox, 100, 20 );
    toolbar.addFixed( enableRecordingCheckBox );
    XmlBeansSettingsImpl settings = request.getSettings();
    if( settings.isSet( RECORD_REQUEST_REPRESENTATIONS ) )
    {
      enableRecordingCheckBox.setSelected( settings.getBoolean( RECORD_REQUEST_REPRESENTATIONS ) );
    }
    else
    {
      enableRecordingCheckBox.setSelected( getMethod().getResource() == null
          || getMethod().getResource().getService().isGenerated() );
View Full Code Here

      conflicts.setLayout( new BorderLayout() );
      auto = new JCheckBox( "Auto-Resolve" );
      auto.setToolTipText( "Automatically modify inferred schema from received Responses" );
      auto.setOpaque( false );
      UISupport.setFixedSize( auto, 120, 20 );
      XmlBeansSettingsImpl settings = getRequest().getSettings();
      if( settings.isSet( AUTO_INFER_SCHEMAS ) )
      {
        auto.setSelected( settings.getBoolean( AUTO_INFER_SCHEMAS ) );
      }
      auto.addItemListener( new ItemListener()
      {
        public void itemStateChanged( ItemEvent e )
        {
View Full Code Here

      boolean forLoadTest )
  {
    super( operation, callConfig, forLoadTest );
    this.forLoadTest = forLoadTest;

    setSettings( new XmlBeansSettingsImpl( this, testStep.getSettings(), callConfig.getSettings() ) );

    this.testStep = testStep;

    initAssertions();
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.settings.XmlBeansSettingsImpl$InternalSettingsListener

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.