Package javax.ws.rs.core

Examples of javax.ws.rs.core.MultivaluedMap


    public ApplicationDescription getApplicationDescriptors(String serviceName,
                                                                      String hostname) {
        webResource = getDescriptorRegistryBaseResource().path(
                ResourcePathConstants.DecResourcePathConstants.APP_DESC_PER_HOST_SERVICE);
        MultivaluedMap queryParams = new MultivaluedMapImpl();
        queryParams.add("serviceName", serviceName);
        queryParams.add("hostName", hostname);

        builder = BasicAuthHeaderUtil.getBuilder(
                webResource, queryParams, userName, null, cookie, gateway);
        ClientResponse response = builder.accept(
                MediaType.APPLICATION_JSON).get(ClientResponse.class);
View Full Code Here


    public Map<String, ApplicationDescription> getApplicationDescriptors(String serviceName) {
        webResource = getDescriptorRegistryBaseResource().path(
                ResourcePathConstants.DecResourcePathConstants.APP_DESC_ALL_DESCS_SERVICE);
        Map<String, ApplicationDescription> applicationDeploymentDescriptionMap = new HashMap<String, ApplicationDescription>();
        MultivaluedMap queryParams = new MultivaluedMapImpl();
        queryParams.add("serviceName", serviceName);
        builder = BasicAuthHeaderUtil.getBuilder(
                webResource, queryParams, userName, null, cookie, gateway);

        ClientResponse response = builder.accept(
                MediaType.APPLICATION_JSON).get(ClientResponse.class);
View Full Code Here

    public void removeApplicationDescriptor(String serviceName,
                                            String hostName,
                                            String applicationName) {
        webResource = getDescriptorRegistryBaseResource().path(
                ResourcePathConstants.DecResourcePathConstants.APP_DESC_DELETE);
        MultivaluedMap queryParams = new MultivaluedMapImpl();
        queryParams.add("serviceName", serviceName);
        queryParams.add("hostName", hostName);
        queryParams.add("appName", applicationName);
        builder = BasicAuthHeaderUtil.getBuilder(
                webResource, queryParams, userName, null, cookie, gateway);

        ClientResponse response = builder.accept(
                MediaType.TEXT_PLAIN).delete(ClientResponse.class);
View Full Code Here

    }

    public boolean isPublishedWorkflowExists(String workflowName) {
        webResource = getPublishedWFRegistryBaseResource().path(
                ResourcePathConstants.PublishedWFConstants.PUBLISHWF_EXIST);
        MultivaluedMap queryParams = new MultivaluedMapImpl();
        queryParams.add("workflowName", workflowName);
        builder = BasicAuthHeaderUtil.getBuilder(
                webResource, queryParams, userName, null, cookie, gateway);

        ClientResponse response = builder.accept(
                MediaType.TEXT_PLAIN).get(ClientResponse.class);
View Full Code Here

    }

    public void publishWorkflow(String workflowName, String publishWorkflowName) {
        webResource = getPublishedWFRegistryBaseResource().path(
                ResourcePathConstants.PublishedWFConstants.PUBLISH_WORKFLOW);
        MultivaluedMap formParams = new MultivaluedMapImpl();
        formParams.add("workflowName", workflowName);
        formParams.add("publishWorkflowName", publishWorkflowName);
        builder = BasicAuthHeaderUtil.getBuilder(
                webResource, null, userName, null, cookie, gateway);

        ClientResponse response = builder.accept(
                MediaType.TEXT_PLAIN).post(ClientResponse.class, formParams);
View Full Code Here

    }

    public void publishWorkflow(String workflowName) {
        webResource = getPublishedWFRegistryBaseResource().path(
                ResourcePathConstants.PublishedWFConstants.PUBLISH_DEFAULT_WORKFLOW);
        MultivaluedMap formParams = new MultivaluedMapImpl();
        formParams.add("workflowName", workflowName);
        builder = BasicAuthHeaderUtil.getBuilder(
                webResource, null, userName, null, cookie, gateway);

        ClientResponse response = builder.accept(
                MediaType.TEXT_PLAIN).post(ClientResponse.class, formParams);
View Full Code Here

    }

    public String getPublishedWorkflowGraphXML(String workflowName) {
        webResource = getPublishedWFRegistryBaseResource().path(
                ResourcePathConstants.PublishedWFConstants.GET_PUBLISHWORKFLOWGRAPH);
        MultivaluedMap queryParams = new MultivaluedMapImpl();
        queryParams.add("workflowName", workflowName);
        builder = BasicAuthHeaderUtil.getBuilder(
                webResource, queryParams, userName, null, cookie, gateway);

        ClientResponse response = builder.accept(
                MediaType.APPLICATION_FORM_URLENCODED).get(ClientResponse.class);
View Full Code Here

    }

    public void removePublishedWorkflow(String workflowName) {
        webResource = getPublishedWFRegistryBaseResource().path(
                ResourcePathConstants.PublishedWFConstants.REMOVE_PUBLISHWORKFLOW);
        MultivaluedMap queryParams = new MultivaluedMapImpl();
        queryParams.add("workflowName", workflowName);
        builder = BasicAuthHeaderUtil.getBuilder(
                webResource, queryParams, userName, null, cookie, gateway);

        ClientResponse response = builder.accept(
                MediaType.TEXT_PLAIN).delete(ClientResponse.class);
View Full Code Here

    }

    public void updateExperimentExecutionUser(String experimentId, String user) {
        webResource = getProvenanceRegistryBaseResource().path(
                ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_EXPERIMENT_EXECUTIONUSER);
        MultivaluedMap formParams = new MultivaluedMapImpl();
        formParams.add("experimentId", experimentId);
        formParams.add("user", user);
        builder = BasicAuthHeaderUtil.getBuilder(
                webResource, null, userName, null, cookie, gateway);
        ClientResponse response = builder.accept(
                MediaType.TEXT_PLAIN).post(ClientResponse.class, formParams);
        int status = response.getStatus();
View Full Code Here

    }

    public String getExperimentExecutionUser(String experimentId) {
        webResource = getProvenanceRegistryBaseResource().path(
                ResourcePathConstants.ProvenanceResourcePathConstants.GET_EXPERIMENT_EXECUTIONUSER);
        MultivaluedMap queryParams = new MultivaluedMapImpl();
        queryParams.add("experimentId", experimentId);
        builder = BasicAuthHeaderUtil.getBuilder(
                webResource, queryParams, userName, null, cookie, gateway);
        ClientResponse response = builder.accept(
                MediaType.TEXT_PLAIN).get(ClientResponse.class);
        int status = response.getStatus();
View Full Code Here

TOP

Related Classes of javax.ws.rs.core.MultivaluedMap

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.