Merge pull request #3408 from hmlnarik/KEYCLOAK-3793

KEYCLOAK-3793 Replace httpclient 4.4 calls with those available in 4.3
This commit is contained in:
Stian Thorgersen 2016-10-28 06:41:48 +02:00 committed by GitHub
commit 2d1a458f5d

View file

@ -36,23 +36,23 @@ public class Http {
}
public <R> HttpMethod<R> get(String path) {
return method(RequestBuilder.get(this.serverConfiguration.getIssuer() + path));
return method(RequestBuilder.get().setUri(this.serverConfiguration.getIssuer() + path));
}
public <R> HttpMethod<R> get(URI path) {
return method(RequestBuilder.get(path));
return method(RequestBuilder.get().setUri(path));
}
public <R> HttpMethod<R> post(URI path) {
return method(RequestBuilder.post(path));
return method(RequestBuilder.post().setUri(path));
}
public <R> HttpMethod<R> post(String path) {
return method(RequestBuilder.post(this.serverConfiguration.getIssuer() + path));
return method(RequestBuilder.post().setUri(this.serverConfiguration.getIssuer() + path));
}
public <R> HttpMethod<R> delete(String path) {
return method(RequestBuilder.delete(this.serverConfiguration.getIssuer() + path));
return method(RequestBuilder.delete().setUri(this.serverConfiguration.getIssuer() + path));
}
private <R> HttpMethod<R> method(RequestBuilder builder) {