-
- All Known Implementing Classes:
LdpClientImpl
public interface LdpClientLdpClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidasyncPut(IRI identifier, InputStream stream)voiddelete(IRI identifier)Map<String,List<String>>getAcceptDatetime(IRI identifier, String timestamp)StringgetAcl(IRI identifier, String contentType)byte[]getBinary(IRI identifier)PathgetBinary(IRI identifier, Path file)StringgetBinaryDigest(IRI identifier, String algorithm)byte[]getBinaryVersion(IRI identifier, String timestamp)PathgetBinaryVersion(IRI identifier, Path file, String timestamp)byte[]getBytesWithMetadata(IRI identifier, Map<String,String> metadata)Map<String,List<String>>getCORS(IRI identifier, IRI origin)Map<String,List<String>>getCORSSimple(IRI identifier, IRI origin)StringgetDefaultType(IRI identifier)StringgetJson(IRI identifier)StringgetJsonLDF(IRI identifier, String subject, String predicate, String object)StringgetJsonProfile(IRI identifier, String profile)StringgetJsonProfileLDF(IRI identifier, String profile, String subject, String predicate, String object)StringgetPrefer(IRI identifier, String prefer)StringgetPreferMinimal(IRI identifier)StringgetPreferServerManaged(IRI identifier)byte[]getRange(IRI identifier, String byterange)Map<String,Map<String,List<String>>>getResponse(IRI identifier, Map<String,String> metadata)StringgetTimeMapJsonProfile(IRI identifier, String profile)StringgetTimeMapLinkDefaultFormat(IRI identifier)StringgetVersionJson(IRI identifier, String profile, String timestamp)StringgetWithContentType(IRI identifier, String contentType)StringgetWithMetadata(IRI identifier, Map<String,String> metadata)Map<String,List<String>>head(IRI identifier)voidmultipartDelete(IRI identifier, String sessionId)voidmultipartGet(IRI identifier, String sessionId)voidmultipartOptions(IRI identifier)voidmultipartPost(IRI identifier, InputStream stream, String sessionId)voidmultipartPut(IRI identifier, InputStream stream, String sessionId)voidmultipartStart(IRI identifier, InputStream stream)voidnewLdpDc(IRI identifier, String slug, IRI membershipObj)voidnewLdpDcWithAuth(IRI identifier, String slug, IRI membershipObj, String authorization)Map<String,List<String>>options(IRI identifier)voidpatch(IRI identifier, InputStream stream)voidpost(IRI identifier, InputStream stream, String contentType)voidpostBinaryWithDigest(IRI identifier, InputStream stream, String contentType, String digest)voidpostSlug(IRI identifier, String slug, InputStream stream, String contentType)voidpostWithAuth(IRI identifier, InputStream stream, String contentType, String authorization)voidpostWithMetadata(IRI identifier, InputStream stream, Map<String,String> metadata)voidput(IRI identifier, InputStream stream, String contentType)voidputBinaryWithDigest(IRI identifier, InputStream stream, String contentType, String digest)voidputIfMatch(IRI identifier, InputStream stream, String contentType, String etag)voidputIfUnmodified(IRI identifier, InputStream stream, String contentType, String time)voidputWithAuth(IRI identifier, InputStream stream, String contentType, String authorization)voidputWithMetadata(IRI identifier, InputStream stream, Map<String,String> metadata)
-
-
-
Method Detail
-
head
Map<String,List<String>> head(IRI identifier) throws LdpClientException
- Parameters:
identifier- a resource identifier- Returns:
- Map of headers
- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getJson
String getJson(IRI identifier) throws LdpClientException
- Parameters:
identifier- a resource identifier- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getDefaultType
String getDefaultType(IRI identifier) throws LdpClientException
- Parameters:
identifier- a resource identifier- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getWithContentType
String getWithContentType(IRI identifier, String contentType) throws LdpClientException
- Parameters:
identifier- a resource identifiercontentType- a content type (text/turtle, application/n-triples or application/ld+json)- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getAcceptDatetime
Map<String,List<String>> getAcceptDatetime(IRI identifier, String timestamp) throws LdpClientException
- Parameters:
identifier- a resource identifiertimestamp- an epoch millisecond- Returns:
- headers as a
Map - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getTimeMapLinkDefaultFormat
String getTimeMapLinkDefaultFormat(IRI identifier) throws LdpClientException
- Parameters:
identifier- a resource identifier- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getTimeMapJsonProfile
String getTimeMapJsonProfile(IRI identifier, String profile) throws LdpClientException
- Parameters:
identifier- a resource identifierprofile- a JSON-LD profile- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException- See Also:
- The JSON-LD Vocabulary
-
getVersionJson
String getVersionJson(IRI identifier, String profile, String timestamp) throws LdpClientException
- Parameters:
identifier- a resource identifierprofile- a JSON-LD profiletimestamp- an epoch millisecond- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException- See Also:
- The JSON-LD Vocabulary
-
getBinary
Path getBinary(IRI identifier, Path file) throws LdpClientException
- Parameters:
identifier- a resource identifierfile- an output file as anPath- Returns:
- body as a
Path - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getBinary
byte[] getBinary(IRI identifier) throws LdpClientException
- Parameters:
identifier- a resource identifier- Returns:
- body as a byte[]
- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getBinaryDigest
String getBinaryDigest(IRI identifier, String algorithm) throws LdpClientException
- Parameters:
identifier- a resource identifieralgorithm- a digest algorithm (md5, sha, sha-256 or sha-512)- Returns:
- digest as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getBinaryVersion
Path getBinaryVersion(IRI identifier, Path file, String timestamp) throws LdpClientException
- Parameters:
identifier- a resource identifierfile- an output file as anPathtimestamp- an epoch millisecond- Returns:
- body as a
Path - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getBinaryVersion
byte[] getBinaryVersion(IRI identifier, String timestamp) throws LdpClientException
- Parameters:
identifier- a resource identifiertimestamp- an epoch millisecond- Returns:
- body as a byte[]
- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getRange
byte[] getRange(IRI identifier, String byterange) throws LdpClientException
- Parameters:
identifier- a resource identifierbyterange- a byterange- Returns:
- body as a byte[]
- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getPrefer
String getPrefer(IRI identifier, String prefer) throws LdpClientException
- Parameters:
identifier- a resource identifierprefer- an LDP preference- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException- See Also:
- 7.2 Preferences on the Prefer Request Header
-
getPreferServerManaged
String getPreferServerManaged(IRI identifier) throws LdpClientException
- Parameters:
identifier- a resource identifier- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getPreferMinimal
String getPreferMinimal(IRI identifier) throws LdpClientException
- Parameters:
identifier- a resource identifier- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getJsonProfile
String getJsonProfile(IRI identifier, String profile) throws LdpClientException
- Parameters:
identifier- a resource identifierprofile- a JSON-LD profile- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException- See Also:
- The JSON-LD Vocabulary
-
getJsonProfileLDF
String getJsonProfileLDF(IRI identifier, String profile, String subject, String predicate, String object) throws LdpClientException
- Parameters:
identifier- a resource identifierprofile- a JSON-LD profilesubject- RdfTerm as aStringpredicate- RdfTerm as aStringobject- RdfTerm as aString- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException- See Also:
- The JSON-LD Vocabulary
-
getJsonLDF
String getJsonLDF(IRI identifier, String subject, String predicate, String object) throws LdpClientException
- Parameters:
identifier- a resource identifiersubject- RdfTerm as aStringpredicate- RdfTerm as aStringobject- RdfTerm as aString- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getAcl
String getAcl(IRI identifier, String contentType) throws LdpClientException
- Parameters:
identifier- a resource identifiercontentType- a content type asString- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getCORS
Map<String,List<String>> getCORS(IRI identifier, IRI origin) throws LdpClientException
- Parameters:
identifier- a resource identifierorigin- a root resource identifier- Returns:
- headers as a
Map - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getCORSSimple
Map<String,List<String>> getCORSSimple(IRI identifier, IRI origin) throws LdpClientException
- Parameters:
identifier- a resource identifierorigin- a root resource identifier- Returns:
- headers as a
Map - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getWithMetadata
String getWithMetadata(IRI identifier, Map<String,String> metadata) throws LdpClientException
- Parameters:
identifier- a resource identifiermetadata- aMapof headers- Returns:
- body as a
String - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getBytesWithMetadata
byte[] getBytesWithMetadata(IRI identifier, Map<String,String> metadata) throws LdpClientException
- Parameters:
identifier- a resource identifiermetadata- aMapof headers- Returns:
- body as a byte[]
- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
getResponse
Map<String,Map<String,List<String>>> getResponse(IRI identifier, Map<String,String> metadata) throws LdpClientException
- Parameters:
identifier- a resource identifiermetadata- aMapof headers- Returns:
- body and headers as a
Map - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
options
Map<String,List<String>> options(IRI identifier) throws LdpClientException
- Parameters:
identifier- a resource identifier- Returns:
- headers as a
Map - Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
post
void post(IRI identifier, InputStream stream, String contentType) throws LdpClientException
- Parameters:
identifier- a resource identifierstream- anInputStreamcontentType- a content type- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
postWithMetadata
void postWithMetadata(IRI identifier, InputStream stream, Map<String,String> metadata) throws LdpClientException
- Parameters:
identifier- a resource identifierstream- anInputStreammetadata- aMapof headers- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
postWithAuth
void postWithAuth(IRI identifier, InputStream stream, String contentType, String authorization) throws LdpClientException
- Parameters:
identifier- a resource identifierstream- anInputStreamcontentType- a content typeauthorization- an authorization token- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
postSlug
void postSlug(IRI identifier, String slug, InputStream stream, String contentType) throws LdpClientException
- Parameters:
identifier- a resource identifierslug- a resource name as aStringstream- anInputStreamcontentType- a content type- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
postBinaryWithDigest
void postBinaryWithDigest(IRI identifier, InputStream stream, String contentType, String digest) throws LdpClientException
- Parameters:
identifier- a resource identifierstream- anInputStreamcontentType- a content typedigest- a digest as aString- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException- See Also:
- rfc3230 4.3.2 Digest
-
newLdpDc
void newLdpDc(IRI identifier, String slug, IRI membershipObj) throws LdpClientException
- Parameters:
identifier- a resource identifierslug- a resource name as aStringmembershipObj- a membership Object identifier- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
newLdpDcWithAuth
void newLdpDcWithAuth(IRI identifier, String slug, IRI membershipObj, String authorization) throws LdpClientException
- Parameters:
identifier- a resource identifierslug- a resource name as aStringmembershipObj- a membership Object identifierauthorization- an authorization token- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
put
void put(IRI identifier, InputStream stream, String contentType) throws LdpClientException
- Parameters:
identifier- a resource identifierstream- anInputStreamcontentType- a content type- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
putWithMetadata
void putWithMetadata(IRI identifier, InputStream stream, Map<String,String> metadata) throws LdpClientException
- Parameters:
identifier- a resource identifierstream- anInputStreammetadata- aMapof headers- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
putWithAuth
void putWithAuth(IRI identifier, InputStream stream, String contentType, String authorization) throws LdpClientException
- Parameters:
identifier- a resource identifierstream- anInputStreamcontentType- a content Type as aStringauthorization- an authorization token- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
putIfMatch
void putIfMatch(IRI identifier, InputStream stream, String contentType, String etag) throws LdpClientException
- Parameters:
identifier- a resource identifierstream- anInputStreamcontentType- a content typeetag- a strong Etag as aString- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
putBinaryWithDigest
void putBinaryWithDigest(IRI identifier, InputStream stream, String contentType, String digest) throws LdpClientException
- Parameters:
identifier- a resource identifierstream- anInputStreamcontentType- a content typedigest- a digest as aString- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException- See Also:
- rfc3230 4.3.2 Digest
-
putIfUnmodified
void putIfUnmodified(IRI identifier, InputStream stream, String contentType, String time) throws LdpClientException
- Parameters:
identifier- a resource identifierstream- anInputStreamcontentType- a content typetime- an RFC_1123_DATE_TIME as anString- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
delete
void delete(IRI identifier) throws LdpClientException
- Parameters:
identifier- a resource identifier- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
patch
void patch(IRI identifier, InputStream stream) throws LdpClientException
- Parameters:
identifier- a resource identifierstream- anInputStream- Throws:
LdpClientException- an URISyntaxException, IOException or InterruptedException
-
multipartOptions
void multipartOptions(IRI identifier)
- Parameters:
identifier- a resource identifier
-
multipartStart
void multipartStart(IRI identifier, InputStream stream)
- Parameters:
identifier- a resource identifierstream- anInputStream
-
multipartGet
void multipartGet(IRI identifier, String sessionId)
- Parameters:
identifier- a resource identifiersessionId- a session identifier
-
multipartPut
void multipartPut(IRI identifier, InputStream stream, String sessionId)
- Parameters:
identifier- a resource identifierstream- anInputStreamsessionId- a session identifier
-
multipartPost
void multipartPost(IRI identifier, InputStream stream, String sessionId)
- Parameters:
identifier- a resource identifierstream- anInputStreamsessionId- a session identifier
-
multipartDelete
void multipartDelete(IRI identifier, String sessionId)
- Parameters:
identifier- a resource identifiersessionId- a session identifier
-
asyncPut
void asyncPut(IRI identifier, InputStream stream) throws LdpClientException
- Parameters:
identifier- a resource identifierstream- anInputStream- Throws:
LdpClientException- an URISyntaxException
-
-