public class PutHandler extends BaseLdpHandler
| Modifier and Type | Field | Description |
|---|---|---|
protected org.trellisldp.api.BinaryService |
binaryService |
|
protected java.io.File |
entity |
|
protected org.trellisldp.api.IOService |
ioService |
audit, constraintServices, partitions, rdf, req, resourceService, SUPPORTED_RDF_TYPES| Constructor | Description |
|---|---|
PutHandler(java.util.Map<java.lang.String,java.lang.String> partitions,
LdpRequest req,
java.io.File entity,
org.trellisldp.api.ResourceService resourceService,
org.trellisldp.api.IOService ioService,
org.trellisldp.api.BinaryService binaryService) |
Create a builder for an LDP POST response
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
checkConstraint(TrellisDataset dataset,
org.apache.commons.rdf.api.IRI graphName,
org.apache.commons.rdf.api.IRI type,
java.lang.String baseUrl,
org.apache.commons.rdf.api.RDFSyntax syntax) |
|
javax.ws.rs.core.Response.ResponseBuilder |
createResource() |
Set the data for a resource
|
protected java.lang.String |
getDigestForEntity(Digest digest) |
|
protected void |
persistContent(org.apache.commons.rdf.api.IRI contentLocation,
java.util.Map<java.lang.String,java.lang.String> metadata) |
|
protected void |
readEntityIntoDataset(java.lang.String identifier,
java.lang.String baseUrl,
org.apache.commons.rdf.api.IRI graphName,
org.apache.commons.rdf.api.RDFSyntax syntax,
TrellisDataset dataset) |
|
javax.ws.rs.core.Response.ResponseBuilder |
setResource(org.trellisldp.api.Resource res) |
Set the data for a resource
|
checkCache, checkDeletedprotected final org.trellisldp.api.BinaryService binaryService
protected final org.trellisldp.api.IOService ioService
protected final java.io.File entity
public PutHandler(java.util.Map<java.lang.String,java.lang.String> partitions,
LdpRequest req,
java.io.File entity,
org.trellisldp.api.ResourceService resourceService,
org.trellisldp.api.IOService ioService,
org.trellisldp.api.BinaryService binaryService)
partitions - the partitionsreq - the LDP requestentity - the entityresourceService - the resource serviceioService - the serialization servicebinaryService - the binary servicepublic javax.ws.rs.core.Response.ResponseBuilder createResource()
public javax.ws.rs.core.Response.ResponseBuilder setResource(org.trellisldp.api.Resource res)
res - the resourceprotected void readEntityIntoDataset(java.lang.String identifier,
java.lang.String baseUrl,
org.apache.commons.rdf.api.IRI graphName,
org.apache.commons.rdf.api.RDFSyntax syntax,
TrellisDataset dataset)
protected void checkConstraint(TrellisDataset dataset, org.apache.commons.rdf.api.IRI graphName, org.apache.commons.rdf.api.IRI type, java.lang.String baseUrl, org.apache.commons.rdf.api.RDFSyntax syntax)
protected java.lang.String getDigestForEntity(Digest digest)
protected void persistContent(org.apache.commons.rdf.api.IRI contentLocation,
java.util.Map<java.lang.String,java.lang.String> metadata)