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:
commit
2d1a458f5d
1 changed files with 5 additions and 5 deletions
|
@ -36,23 +36,23 @@ public class Http {
|
||||||
}
|
}
|
||||||
|
|
||||||
public <R> HttpMethod<R> get(String path) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
private <R> HttpMethod<R> method(RequestBuilder builder) {
|
||||||
|
|
Loading…
Reference in a new issue