public class PostHandler 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 |
|---|---|
PostHandler(java.util.Map<java.lang.String,java.lang.String> partitions,
LdpRequest req,
java.lang.String id,
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() |
Create a new 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) |
checkCache, checkDeletedprotected final org.trellisldp.api.BinaryService binaryService
protected final org.trellisldp.api.IOService ioService
protected final java.io.File entity
public PostHandler(java.util.Map<java.lang.String,java.lang.String> partitions,
LdpRequest req,
java.lang.String id,
java.io.File entity,
org.trellisldp.api.ResourceService resourceService,
org.trellisldp.api.IOService ioService,
org.trellisldp.api.BinaryService binaryService)
partitions - the partitionsreq - the LDP requestid - the new resource's identifierentity - the entityresourceService - the resource serviceioService - the serialization servicebinaryService - the datastream servicepublic javax.ws.rs.core.Response.ResponseBuilder createResource()
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)
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)