Example usage for org.springframework.web.util UriComponentsBuilder fromHttpUrl

List of usage examples for org.springframework.web.util UriComponentsBuilder fromHttpUrl

Introduction

In this page you can find the example usage for org.springframework.web.util UriComponentsBuilder fromHttpUrl.

Prototype

public static UriComponentsBuilder fromHttpUrl(String httpUrl) 

Source Link

Document

Create a URI components builder from the given HTTP URL String.

Usage

From source file:org.rippleosi.common.service.AbstractEtherCISService.java

private String getEhrSessionIdUri() {
    return UriComponentsBuilder.fromHttpUrl(etherCISAddress + "/session").queryParam("username", etherCISUser)
            .queryParam("password", etherCISPassword).build().toUriString();
}

From source file:org.rippleosi.common.service.AbstractEtherCISService.java

private String killEhrSessionUri() {
    return UriComponentsBuilder.fromHttpUrl(etherCISAddress + "/session").build().toUriString();
}

From source file:org.rippleosi.common.service.AbstractOpenEhrService.java

private String getQueryByGetUri(String query) {
    UriComponents components = UriComponentsBuilder.fromHttpUrl(openEhrAddress + "/query")
            .queryParam("aql", query).build();

    return components.toUriString();
}

From source file:org.rippleosi.common.service.AbstractOpenEhrService.java

private String getQueryByPostUri() {
    UriComponents components = UriComponentsBuilder.fromHttpUrl(openEhrAddress + "/query").build();

    return components.toUriString();
}

From source file:org.rippleosi.common.service.AbstractOpenEhrService.java

private String getCreateUri(String template, String ehrId) {
    UriComponents components = UriComponentsBuilder.fromHttpUrl(openEhrAddress + "/composition")
            .queryParam("templateId", template).queryParam("ehrId", ehrId).queryParam("format", "FLAT").build();

    return components.toUriString();
}

From source file:org.rippleosi.common.service.AbstractOpenEhrService.java

private String getUpdateUri(String compositionId, String template, String ehrId) {
    UriComponents components = UriComponentsBuilder
            .fromHttpUrl(openEhrAddress + "/composition/" + compositionId).queryParam("templateId", template)
            .queryParam("ehrId", ehrId).queryParam("format", "FLAT").build();

    return components.toUriString();
}

From source file:org.rippleosi.common.service.AbstractSCCISService.java

private String getQueryByGetUri(String query) {
    UriComponents components = UriComponentsBuilder.fromHttpUrl(scCISAddress).queryParam("NHS", query).build();

    return components.toUriString();
}

From source file:org.rippleosi.common.service.AbstractSCCISService.java

private String getQueryByPostUri() {
    UriComponents components = UriComponentsBuilder.fromHttpUrl(scCISAddress + "/query").build();

    return components.toUriString();
}

From source file:org.rippleosi.search.patient.stats.search.PatientStatsQueryStrategy.java

@Override
public UriComponents getQueryUriComponents() {
    Integer pageNumber = Integer.valueOf(tableQuery.getPageNumber()) - 1;
    Integer pageSize = 15;/* w w  w  .j a va  2 s  . c  o m*/

    return UriComponentsBuilder.fromHttpUrl(c4hOpenEHRAddress + "/view/rippleDash")
            .queryParam("orderBy", "NHSNumber")
            .queryParam("descending", tableQuery.getOrderType().equals("DESC"))
            .queryParam("offset", pageNumber * pageSize).queryParam("limit", pageSize).build();
}

From source file:org.rippleosi.search.reports.graph.search.ReportGraphQueryStrategy.java

@Override
public UriComponents getQueryUriComponents() {
    // TODO - use graphQuery and remove hard coded ehrID, and introduce template lookup
    return UriComponentsBuilder.fromHttpUrl(c4hOpenEHRAddress + "/view")
            .path("/4ee4bad9-2f9e-4e33-b1d6-6572709cabee" + "/ProblemAgeBands")
            .queryParam("targetCompositions", "Problem list")
            .queryParam("targetTextValues", StringUtils.strip(graphQuery.getSearchString())).build();
}