Package org.mycore.pi.urn.rest
Class MCRHttpsClient
java.lang.Object
org.mycore.pi.urn.rest.MCRHttpsClient
Convinience class for sending http requests to the DNB urn service api.
Created by chi on 08.05.17.
- Author:
- Huu Chi Vu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.http.client.methods.CloseableHttpResponse
static org.apache.http.impl.client.CloseableHttpClient
static org.apache.http.client.methods.CloseableHttpResponse
static org.apache.http.client.methods.CloseableHttpResponse
static org.apache.http.client.methods.CloseableHttpResponse
static org.apache.http.client.methods.CloseableHttpResponse
patch
(String url, String contentType, String data, Optional<org.apache.http.auth.UsernamePasswordCredentials> credentials) static org.apache.http.client.methods.CloseableHttpResponse
static org.apache.http.client.methods.CloseableHttpResponse
post
(String url, String contentType, String data, Optional<org.apache.http.auth.UsernamePasswordCredentials> credentials) static org.apache.http.client.methods.CloseableHttpResponse
static org.apache.http.client.methods.CloseableHttpResponse
put
(String url, String contentType, String data, Optional<org.apache.http.auth.UsernamePasswordCredentials> credentials) static <R extends org.apache.http.client.methods.HttpEntityEnclosingRequestBase>
org.apache.http.client.methods.CloseableHttpResponsestatic <R extends org.apache.http.client.methods.HttpEntityEnclosingRequestBase>
org.apache.http.client.methods.CloseableHttpResponserequest
(Supplier<R> requestSupp, String url, String contentType, org.apache.http.HttpEntity entity, Optional<org.apache.http.auth.UsernamePasswordCredentials> credentials)
-
Constructor Details
-
MCRHttpsClient
public MCRHttpsClient()
-
-
Method Details
-
getHttpsClient
public static org.apache.http.impl.client.CloseableHttpClient getHttpsClient() -
head
-
head
-
get
-
put
-
put
-
post
-
post
-
patch
-
patch
-
request
-
request
public static <R extends org.apache.http.client.methods.HttpEntityEnclosingRequestBase> org.apache.http.client.methods.CloseableHttpResponse request(Supplier<R> requestSupp, String url, String contentType, org.apache.http.HttpEntity entity, Optional<org.apache.http.auth.UsernamePasswordCredentials> credentials)
-