public class LdpClient extends Object implements LinkedDataPlatform
| Constructor and Description |
|---|
LdpClient() |
LdpClient(IriRewriter rewriter) |
| Modifier and Type | Method and Description |
|---|---|
LdpResponse |
createResponse() |
LdpResponse |
createResponse(OutputStream out) |
void |
delete(String resourceIRI) |
ResourceFile |
get(String resourceIRI) |
RequestBuilder |
getRequestBuilder() |
ResourceBuilder |
getResourceBuilder() |
void |
post(String containerId,
ResourceFile resource) |
int |
put(ResourceFile resource)
Create or update the specified resource.
|
int |
serve(LdpRequest request,
LdpResponse response) |
public LdpClient()
public LdpClient(IriRewriter rewriter)
public ResourceBuilder getResourceBuilder()
getResourceBuilder in interface LinkedDataPlatformpublic RequestBuilder getRequestBuilder()
getRequestBuilder in interface LinkedDataPlatformpublic LdpResponse createResponse(OutputStream out)
createResponse in interface LinkedDataPlatformpublic LdpResponse createResponse()
createResponse in interface LinkedDataPlatformpublic void post(String containerId, ResourceFile resource) throws IOException, LdpException
post in interface LinkedDataPlatformIOExceptionLdpExceptionpublic ResourceFile get(String resourceIRI) throws IOException, LdpException
get in interface LinkedDataPlatformIOExceptionLdpExceptionpublic int put(ResourceFile resource) throws IOException, LdpException
LinkedDataPlatformput in interface LinkedDataPlatformresource - The resource that is being created or updated within the server.IOExceptionLdpExceptionpublic void delete(String resourceIRI) throws IOException, LdpException
delete in interface LinkedDataPlatformIOExceptionLdpExceptionpublic int serve(LdpRequest request, LdpResponse response) throws IOException, LdpException
serve in interface LinkedDataPlatformIOExceptionLdpExceptionCopyright © 2019. All rights reserved.