Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.OperationConfig


    {
      wsdlOperation.release();
      getConfig().removeOperation( c );
    }

    OperationConfig newConfig = ( OperationConfig )getConfig().addNewOperation().set( reloadedOperation ).changeType(
        OperationConfig.type );
    WsdlOperation newOperation = new WsdlOperation( this, newConfig );
    operations.add( index, newOperation );
    newOperation.afterLoad();
    fireOperationAdded( newOperation );
View Full Code Here


    }
  }

  public OperationType getOperationType()
  {
    OperationConfig config = getConfig();

    // Backwards compatibility:
    if( !config.isSetType() )
    {
      if( config.getIsOneWay() )
      {
        config.setType( OperationTypesConfig.ONE_WAY );
        return OperationType.ONE_WAY;
      }
      else
      {
        config.setType( OperationTypesConfig.REQUEST_RESPONSE );
        return OperationType.REQUEST_RESPONSE;
      }
    }

    OperationTypesConfig.Enum type = config.getType();
    if( OperationTypesConfig.ONE_WAY.equals( type ) )
    {
      return OperationType.ONE_WAY;
    }
    else if( OperationTypesConfig.NOTIFICATION.equals( type ) )
View Full Code Here

    }
  }

  public void setOperationType( OperationType type )
  {
    OperationConfig config = getConfig();
    if( type == null )
    {
      if( config.isSetType() )
        config.unsetType();
    }
    else
    {
      if( OperationType.ONE_WAY.equals( type ) )
      {
        config.setType( OperationTypesConfig.ONE_WAY );
      }
      else if( OperationType.NOTIFICATION.equals( type ) )
      {
        config.setType( OperationTypesConfig.NOTIFICATION );
      }
      else if( OperationType.SOLICIT_RESPONSE.equals( type ) )
      {
        config.setType( OperationTypesConfig.SOLICIT_RESPONSE );
      }
      else
      {
        config.setType( OperationTypesConfig.REQUEST_RESPONSE );
      }
    }
  }
View Full Code Here

            getConfig().removeCall(ix);
        }
    }

    public OperationType getOperationType() {
        OperationConfig config = getConfig();

        // Backwards compatibility:
        if (!config.isSetType()) {
            if (config.getIsOneWay()) {
                config.setType(OperationTypesConfig.ONE_WAY);
                return OperationType.ONE_WAY;
            } else {
                config.setType(OperationTypesConfig.REQUEST_RESPONSE);
                return OperationType.REQUEST_RESPONSE;
            }
        }

        OperationTypesConfig.Enum type = config.getType();
        if (OperationTypesConfig.ONE_WAY.equals(type)) {
            return OperationType.ONE_WAY;
        } else if (OperationTypesConfig.NOTIFICATION.equals(type)) {
            return OperationType.NOTIFICATION;
        } else if (OperationTypesConfig.SOLICIT_RESPONSE.equals(type)) {
View Full Code Here

            return OperationType.REQUEST_RESPONSE;
        }
    }

    public void setOperationType(OperationType type) {
        OperationConfig config = getConfig();
        if (type == null) {
            if (config.isSetType()) {
                config.unsetType();
            }
        } else {
            if (OperationType.ONE_WAY.equals(type)) {
                config.setType(OperationTypesConfig.ONE_WAY);
            } else if (OperationType.NOTIFICATION.equals(type)) {
                config.setType(OperationTypesConfig.NOTIFICATION);
            } else if (OperationType.SOLICIT_RESPONSE.equals(type)) {
                config.setType(OperationTypesConfig.SOLICIT_RESPONSE);
            } else {
                config.setType(OperationTypesConfig.REQUEST_RESPONSE);
            }
        }
    }
View Full Code Here

        } finally {
            wsdlOperation.release();
            getConfig().removeOperation(c);
        }

        OperationConfig newConfig = (OperationConfig) getConfig().addNewOperation().set(reloadedOperation)
                .changeType(OperationConfig.type);
        WsdlOperation newOperation = new WsdlOperation(this, newConfig);
        operations.add(index, newOperation);
        newOperation.afterLoad();
        fireOperationAdded(newOperation);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.config.OperationConfig

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.