Package com.openshift.internal.client.httpclient.request

Examples of com.openshift.internal.client.httpclient.request.ParameterValueArray


      ParameterValueMap parameter = createCartridgeParameter(embeddable);
      return add(new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGE, parameter));
    }

    protected Parameters addCartridges(IStandaloneCartridge standalone, IEmbeddableCartridge[] embeddables) {
      ParameterValueArray parameters = new ParameterValueArray();
      if (standalone != null) {
        parameters.add(createCartridgeParameter(standalone));
      }
      if (embeddables != null
          && embeddables.length > 0) {
        parameters.addAll(createCartridgeParameters(embeddables));
      }

      return add(new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES, parameters));
    }
View Full Code Here


      if (environmentVariables == null
          || environmentVariables.isEmpty()) {
        return this;
      }
     
      ParameterValueArray parameters = new ParameterValueArray()
          .addAll(createEnvironmentVariableParameters(environmentVariables));
      return add(new Parameter(IOpenShiftJsonConstants.PROPERTY_ENVIRONMENT_VARIABLES, parameters));
    }
View Full Code Here

        // verifications
        mockDirector.verifyCreateApplication("foobarz", IHttpClient.NO_TIMEOUT,
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "downloadablecart"),
        new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES,
            new ParameterValueArray()
                .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_URL, CartridgeTestUtils.GO_URL))
                .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_URL, CartridgeTestUtils.FOREMAN_URL))
                .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, CartridgeTestUtils.mysql51().getName()))));
    }
View Full Code Here

    mockDirector.verifyCreateApplication(
        "foobarz",
        IHttpClient.NO_TIMEOUT,
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "foo"),
        new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES,
            new ParameterValueArray()
                .add(new ParameterValueMap().add(
                    IOpenShiftJsonConstants.PROPERTY_NAME, CartridgeTestUtils.JBOSSAS_7_NAME))));
  }
View Full Code Here

   
    // verification
    mockDirector.verifyCreateApplication("foobarz", IHttpClient.NO_TIMEOUT, 
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "foo"),
        new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES,
            new ParameterValueArray()
                .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, JBOSSAS_7_NAME))),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, ApplicationScale.SCALE.getValue()));
  }
View Full Code Here

   
    // verification
    mockDirector.verifyCreateApplication("foobarz", IHttpClient.NO_TIMEOUT, 
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "foo"),
        new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES,
            new ParameterValueArray()
                .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, JBOSSAS_7_NAME))),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, ApplicationScale.SCALE.getValue()),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, GearProfileTestUtils.getFirstAvailableGearProfile(domain).getName())
    );
  }
View Full Code Here

   
    // verification
    mockDirector.verifyCreateApplication("foobarz", IHttpClient.NO_TIMEOUT, 
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "foo"),
        new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES,
            new ParameterValueArray()
                .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, JBOSSAS_7_NAME))),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, ApplicationScale.SCALE.getValue()),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, GearProfileTestUtils.getFirstAvailableGearProfile(domain).getName()),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_INITIAL_GIT_URL, "git://github.com/adietish/openshift-java-client.git")
    );
View Full Code Here

        new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "jekyll"),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, ApplicationScale.SCALE.getValue()),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, GearProfileTestUtils.getFirstAvailableGearProfile(domain).getName()),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_INITIAL_GIT_URL, "git://github.com/adietish/openshift-java-client.git"),
        new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES,
            new ParameterValueArray()
                .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME,
                    JENKINS_14_NAME))
                .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME,
                    MONGODB_22_NAME))
                .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME,
View Full Code Here

    // verifications
    mockDirector.verifyCreateApplication("foobarz", timeout,
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, String.valueOf(Boolean.FALSE)),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, GearProfileTestUtils.getFirstAvailableGearProfile(domain).getName()),
        new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES,
            new ParameterValueArray().add(
                new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, JBOSSAS_7_NAME))),
        new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "scalable"));
  }
View Full Code Here

      ParameterValueMap parameter = createCartridgeParameter(embeddable);
      return add(new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGE, parameter));
    }
   
    protected Parameters addCartridges(Collection<ICartridge> cartridges) {
      ParameterValueArray parameters = new ParameterValueArray();
      if (cartridges != null
          && cartridges.size() > 0) {
        parameters.addAll(createCartridgeParameters(cartridges));
      }

      return add(new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES, parameters));
    }
View Full Code Here

TOP

Related Classes of com.openshift.internal.client.httpclient.request.ParameterValueArray

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.