public abstract class AbstractPlatform extends Object implements LinkedDataPlatform
| Constructor and Description |
|---|
AbstractPlatform(String root) |
| Modifier and Type | Method and Description |
|---|---|
LdpResponse |
createResponse() |
LdpResponse |
createResponse(OutputStream out) |
void |
delete(String resourceIRI) |
protected abstract void |
doDelete(String resourceIRI) |
protected void |
doPost(LdpRequest request,
LdpResponse response) |
String |
getBaseURL() |
RequestBuilder |
getRequestBuilder() |
void |
post(String containerId,
ResourceFile resource) |
int |
put(ResourceFile resource)
Create or update the specified resource.
|
protected int |
put(ResourceFile resource,
boolean createContainer) |
protected abstract int |
save(ResourceFile resource) |
int |
serve(LdpRequest request,
LdpResponse response) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getResourceBuilderpublic AbstractPlatform(String root)
public String getBaseURL()
public void post(String containerId, ResourceFile resource) throws IOException, LdpException
post 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.IOExceptionLdpExceptionprotected int put(ResourceFile resource, boolean createContainer) throws IOException, LdpException
IOExceptionLdpExceptionprotected abstract int save(ResourceFile resource) throws IOException
IOExceptionpublic void delete(String resourceIRI) throws IOException, LdpException
delete in interface LinkedDataPlatformIOExceptionLdpExceptionprotected abstract void doDelete(String resourceIRI) throws IOException, LdpException
IOExceptionLdpExceptionpublic int serve(LdpRequest request, LdpResponse response) throws IOException, LdpException
serve in interface LinkedDataPlatformIOExceptionLdpExceptionprotected void doPost(LdpRequest request, LdpResponse response) throws IOException, LdpException
IOExceptionLdpExceptionpublic LdpResponse createResponse(OutputStream out)
createResponse in interface LinkedDataPlatformpublic LdpResponse createResponse()
createResponse in interface LinkedDataPlatformpublic RequestBuilder getRequestBuilder()
getRequestBuilder in interface LinkedDataPlatformCopyright © 2016. All rights reserved.