Package com.netflix.client.http

Examples of com.netflix.client.http.HttpRequest


        }
        if (configs == null || configs.isEmpty()) {
            throw new GeniePreconditionException("Missing required parameter: configs");
        }

        final HttpRequest request = BaseGenieClient.buildRequest(
                Verb.POST,
                StringUtils.join(
                        new String[]{BASE_CONFIG_CLUSTER_REST_URL, id, "configs"},
                        SLASH),
                null,
View Full Code Here


    public Set<String> getConfigsForCluster(final String id) throws GenieException {
        if (StringUtils.isBlank(id)) {
            throw new GeniePreconditionException("Missing required parameter: id");
        }

        final HttpRequest request = BaseGenieClient.buildRequest(
                Verb.GET,
                StringUtils.join(
                        new String[]{BASE_CONFIG_CLUSTER_REST_URL, id, "configs"},
                        SLASH),
                null,
View Full Code Here

        }
        if (configs == null) {
            throw new GeniePreconditionException("Missing required parameter: configs");
        }

        final HttpRequest request = BaseGenieClient.buildRequest(
                Verb.PUT,
                StringUtils.join(
                        new String[]{BASE_CONFIG_CLUSTER_REST_URL, id, "configs"},
                        SLASH),
                null,
View Full Code Here

        }
        if (commands == null || commands.isEmpty()) {
            throw new GeniePreconditionException("Missing required parameter: commands");
        }

        final HttpRequest request = BaseGenieClient.buildRequest(
                Verb.POST,
                StringUtils.join(
                        new String[]{BASE_CONFIG_CLUSTER_REST_URL, id, "commands"},
                        SLASH),
                null,
View Full Code Here

    public List<Command> getCommandsForCluster(final String id) throws GenieException {
        if (StringUtils.isBlank(id)) {
            throw new GeniePreconditionException("Missing required parameter: id");
        }

        final HttpRequest request = BaseGenieClient.buildRequest(
                Verb.GET,
                StringUtils.join(
                        new String[]{BASE_CONFIG_CLUSTER_REST_URL, id, "commands"},
                        SLASH),
                null,
View Full Code Here

        }
        if (commands == null) {
            throw new GeniePreconditionException("Missing required parameter: commands");
        }

        final HttpRequest request = BaseGenieClient.buildRequest(
                Verb.PUT,
                StringUtils.join(
                        new String[]{BASE_CONFIG_CLUSTER_REST_URL, id, "commands"},
                        SLASH),
                null,
View Full Code Here

            final String id) throws GenieException {
        if (StringUtils.isBlank(id)) {
            throw new GeniePreconditionException("Missing required parameter: id");
        }

        final HttpRequest request = BaseGenieClient.buildRequest(
                Verb.DELETE,
                StringUtils.join(
                        new String[]{BASE_CONFIG_CLUSTER_REST_URL, id, "commands"},
                        SLASH),
                null,
View Full Code Here

        }
        if (StringUtils.isBlank(cmdId)) {
            throw new GeniePreconditionException("Missing required parameter: cmdId");
        }

        final HttpRequest request = BaseGenieClient.buildRequest(
                Verb.DELETE,
                StringUtils.join(
                        new String[]{BASE_CONFIG_CLUSTER_REST_URL, id, "commands", cmdId},
                        SLASH),
                null,
View Full Code Here

        }
        if (tags == null || tags.isEmpty()) {
            throw new GeniePreconditionException("Missing required parameter: tags");
        }

        final HttpRequest request = BaseGenieClient.buildRequest(
                Verb.POST,
                StringUtils.join(
                        new String[]{BASE_CONFIG_CLUSTER_REST_URL, id, "tags"},
                        SLASH),
                null,
View Full Code Here

    public Set<String> getTagsForCluster(final String id) throws GenieException {
        if (StringUtils.isBlank(id)) {
            throw new GeniePreconditionException("Missing required parameter: id");
        }

        final HttpRequest request = BaseGenieClient.buildRequest(
                Verb.GET,
                StringUtils.join(
                        new String[]{BASE_CONFIG_CLUSTER_REST_URL, id, "tags"},
                        SLASH),
                null,
View Full Code Here

TOP

Related Classes of com.netflix.client.http.HttpRequest

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.