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

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


      super("ADD_KEY");
    }

    protected KeyResourceDTO execute(SSHKeyType type, String name, String content) throws OpenShiftException {
      return super.execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_TYPE, type.getTypeId()),
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, name),
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_CONTENT, content));
    }
View Full Code Here


    private AddDomainRequest() throws OpenShiftException {
      super("ADD_DOMAIN");
    }

    private DomainResourceDTO execute(String namespace) throws OpenShiftException {
      return execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_ID, namespace));
    }
View Full Code Here

    protected Parameters scale(ApplicationScale scale) {
      if (scale == null) {
        return this;
      }
      return add(new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, scale.getValue()));
    }
View Full Code Here

    protected Parameters gearProfile(IGearProfile gearProfile) {
      if (gearProfile == null) {
        return this;
      }
      return add(new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, gearProfile.getName()));
    }
View Full Code Here

   
    protected Parameters add(String name, String value) {
      if (StringUtils.isEmpty(value)) {
        return this;
      }
      return add(new StringParameter(name, value));
    }
View Full Code Here

    private UpdateDomainRequest() throws OpenShiftException {
      super(LINK_UPDATE);
    }

    protected DomainResourceDTO execute(String namespace) throws OpenShiftException {
      return super.execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_ID, namespace));
    }
View Full Code Here

    private DeleteDomainRequest() throws OpenShiftException {
      super(LINK_DELETE);
    }

    protected void execute(boolean force) throws OpenShiftException {
      super.execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_FORCE, String.valueOf(force)));
    }
View Full Code Here

      super("UPDATE");
    }
   
    protected KeyResourceDTO execute(SSHKeyType type, String publicKey) throws OpenShiftException {
      return execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_CONTENT, publicKey),
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_TYPE, type.getTypeId()));
    }
View Full Code Here

      super(LINK_START_APPLICATION);
    }

    protected <DTO> DTO execute() throws OpenShiftException {
      return super.execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_START));
    }
View Full Code Here

      super(LINK_STOP_APPLICATION);
    }

    protected <DTO> DTO execute() throws OpenShiftException {
      return super.execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_STOP));
    }
View Full Code Here

TOP

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

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.