public class RedLinkClient extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static Map<String,org.apache.http.client.entity.InputStreamFactory> |
decoderRegistry |
static org.apache.http.client.entity.InputStreamFactory |
DEFLATE |
static org.apache.http.client.entity.InputStreamFactory |
GZIP |
static String |
HTTP_HEADER_ACCEPT |
static String |
HTTP_HEADER_CONTENT_TYPE |
static org.apache.http.client.entity.InputStreamFactory |
IDENTITY |
static int |
REQUEST_TIMEOUT |
| Constructor and Description |
|---|
RedLinkClient() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.methods.CloseableHttpResponse |
delete(URI target) |
String |
get(URI target) |
<T> T |
get(URI target,
Class<T> clazz) |
<T> T |
get(URI target,
Class<T> clazz,
String accept) |
String |
get(URI target,
String accept) |
org.apache.http.client.methods.CloseableHttpResponse |
post(URI target) |
org.apache.http.client.methods.CloseableHttpResponse |
post(URI target,
InputStream in,
org.openrdf.rio.RDFFormat format) |
org.apache.http.client.methods.CloseableHttpResponse |
post(URI target,
InputStream in,
String accept,
String contentType) |
org.apache.http.client.methods.CloseableHttpResponse |
post(URI target,
String accept) |
org.apache.http.client.methods.CloseableHttpResponse |
post(URI target,
String body,
String accept) |
org.apache.http.client.methods.CloseableHttpResponse |
post(URI target,
String body,
String accept,
String contentType) |
org.apache.http.client.methods.CloseableHttpResponse |
put(URI target,
InputStream in,
org.openrdf.rio.RDFFormat format) |
public static final int REQUEST_TIMEOUT
public static final String HTTP_HEADER_ACCEPT
public static final String HTTP_HEADER_CONTENT_TYPE
public static final Map<String,org.apache.http.client.entity.InputStreamFactory> decoderRegistry
public static final org.apache.http.client.entity.InputStreamFactory GZIP
public static final org.apache.http.client.entity.InputStreamFactory DEFLATE
public static final org.apache.http.client.entity.InputStreamFactory IDENTITY
public String get(URI target) throws IOException
IOExceptionpublic String get(URI target, String accept) throws IOException
IOExceptionpublic <T> T get(URI target, Class<T> clazz) throws IOException
IOExceptionpublic <T> T get(URI target, Class<T> clazz, String accept) throws IOException
IOExceptionpublic org.apache.http.client.methods.CloseableHttpResponse put(URI target, InputStream in, org.openrdf.rio.RDFFormat format) throws IOException
IOExceptionpublic org.apache.http.client.methods.CloseableHttpResponse post(URI target, InputStream in, org.openrdf.rio.RDFFormat format) throws IOException
IOExceptionpublic org.apache.http.client.methods.CloseableHttpResponse post(URI target) throws IOException
IOExceptionpublic org.apache.http.client.methods.CloseableHttpResponse post(URI target, String accept) throws IOException
IOExceptionpublic org.apache.http.client.methods.CloseableHttpResponse post(URI target, String body, String accept) throws IOException
IOExceptionpublic org.apache.http.client.methods.CloseableHttpResponse post(URI target, String body, String accept, String contentType) throws IOException
IOExceptionpublic org.apache.http.client.methods.CloseableHttpResponse post(URI target, InputStream in, String accept, String contentType) throws IOException
IOExceptionpublic org.apache.http.client.methods.CloseableHttpResponse delete(URI target) throws IOException
IOExceptionCopyright © 2018 Redlink GmbH. All rights reserved.