Search in sources :

Example 1 with GetRequest

use of org.sonarsource.sonarlint.core.util.ws.GetRequest in project sonarlint-core by SonarSource.

the class SonarLintWsClient method rawGet.

/**
 * Execute GET and don't check response
 */
public WsResponse rawGet(String path) {
    long startTime = System2.INSTANCE.now();
    GetRequest request = new GetRequest(path);
    WsResponse response = client.call(request);
    long duration = System2.INSTANCE.now() - startTime;
    if (LOG.isDebugEnabled()) {
        LOG.debug("{} {} {} | time={}ms", request.getMethod(), response.code(), response.requestUrl(), duration);
    }
    return response;
}
Also used : GetRequest(org.sonarsource.sonarlint.core.util.ws.GetRequest) WsResponse(org.sonarsource.sonarlint.core.util.ws.WsResponse)

Aggregations

GetRequest (org.sonarsource.sonarlint.core.util.ws.GetRequest)1 WsResponse (org.sonarsource.sonarlint.core.util.ws.WsResponse)1