Package no.polaric.core.httpd
Class RestClient
java.lang.Object
no.polaric.core.httpd.RestClient
-
Constructor Summary
ConstructorsConstructorDescriptionRestClient
(ServerConfig conf, String url) RestClient
(ServerConfig conf, String url, String userid) RestClient
(ServerConfig conf, String url, Authenticator auth) RestClient
(ServerConfig conf, String url, HmacAuthenticator hm, String userid) -
Method Summary
-
Constructor Details
-
RestClient
-
RestClient
-
RestClient
-
RestClient
-
-
Method Details
-
getUrl
-
GET
public HttpResponse GET(String resource, boolean stream) throws URISyntaxException, IOException, InterruptedException -
GET
public HttpResponse GET(String resource) throws URISyntaxException, IOException, InterruptedException -
POST
public HttpResponse POST(String resource, String body) throws URISyntaxException, IOException, InterruptedException -
PUT
public HttpResponse PUT(String resource, String body) throws URISyntaxException, IOException, InterruptedException -
DELETE
public HttpResponse DELETE(String resource) throws URISyntaxException, IOException, InterruptedException
-