Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.RestMethodConfig


    return null;
  }

  public RestMethod addNewMethod( String name )
  {
    RestMethodConfig methodConfig = getConfig().addNewMethod();
    methodConfig.setName( name );

    RestMethod method = new RestMethod( this, methodConfig );
    /*
     * for (RestParamProperty prop : getDefaultParams()) { if
     * (!method.hasProperty(prop.getName()))
 
View Full Code Here


    return newResource;
  }

  public RestMethod cloneMethod( RestMethod method, String name )
  {
    RestMethodConfig methodConfig = ( RestMethodConfig )getConfig().addNewMethod().set( method.getConfig() );
    methodConfig.setName( name );

    RestMethod newMethod = new RestMethod( this, methodConfig );
    methods.add( newMethod );

    notifyPropertyChanged( "childMethods", null, newMethod );
View Full Code Here

    private RestMethod makeRestMethod(RestResource restResource) {
        return new RestMethod(restResource, RestMethodConfig.Factory.newInstance());
    }

    public RestMethod makeRestMethod() throws SoapUIException {
        RestMethodConfig methodConfig = RestMethodConfig.Factory.newInstance();
        methodConfig.setName("Get");
        methodConfig.setMethod("GET");
        final RestResource restResource = makeRestResource();
        RestMethod restMethod = new RestMethod(restResource, methodConfig) {
            @Override
            public RestRequestInterface.HttpMethod getMethod() {
                return RestRequestInterface.HttpMethod.GET;
View Full Code Here

        }
        return null;
    }

    public RestMethod addNewMethod(String name) {
        RestMethodConfig methodConfig = getConfig().addNewMethod();
        methodConfig.setName(name);

        RestMethod method = new RestMethod(this, methodConfig);
        /*
     * for (RestParamProperty prop : getDefaultParams()) { if
     * (!method.hasProperty(prop.getName()))
 
View Full Code Here

        getInterface().fireOperationAdded(newResource);
        return newResource;
    }

    public RestMethod cloneMethod(RestMethod method, String name) {
        RestMethodConfig methodConfig = (RestMethodConfig) getConfig().addNewMethod().set(method.getConfig());
        methodConfig.setName(name);

        RestMethod newMethod = new RestMethod(this, methodConfig);
        methods.add(newMethod);

        notifyPropertyChanged("childMethods", null, newMethod);
View Full Code Here

        restRequest = modelItemFactory.makeRestRequest();
        restRequest.setMethod(RestRequestInterface.HttpMethod.GET);
        RestResource restResource = restRequest.getResource();
        restResource.getParams().addProperty(PARAMETER_NAME);
        restResource.addNewMethod(restRequest.getRestMethod().getName());
        RestMethodConfig restMethodConfig = restResource.getRestMethodList().get(0).getConfig();
        restMethodConfig.setMethod("GET");

        restService().addEndpoint(ENDPOINT);
        RestParamProperty restParamProperty = restRequest.getParams().getProperty(PARAMETER_NAME);
        restParamProperty.setValue(PARAMETER_VALUE);
        return restResource;
View Full Code Here

TOP

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

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.