Package org.fcrepo.http.api
Class FedoraTombstones
- java.lang.Object
-
- org.fcrepo.http.commons.AbstractResource
-
- org.fcrepo.http.api.FedoraBaseResource
-
- org.fcrepo.http.api.ContentExposingResource
-
- org.fcrepo.http.api.FedoraTombstones
-
@Scope("request") @Path("/{path: .*}/fcr:tombstone") public class FedoraTombstones extends ContentExposingResourceCRUD operations on Fedora tombstones- Author:
- cbeer
-
-
Field Summary
Fields Modifier and Type Field Description protected StringexternalPath-
Fields inherited from class org.fcrepo.http.api.ContentExposingResource
ACCEPT_DATETIME, context, createResourceService, deleteResourceService, etagService, extContentHandlerFactory, httpRdfService, namespaceRegistry, prefer, replacePropertiesService, request, resourceTripleService, RFC3230_SPLITTER, servletResponse, updatePropertiesService
-
Fields inherited from class org.fcrepo.http.api.FedoraBaseResource
dbTransactionExecutor, identifierConverter, resourceFactory, resourceHelper, securityContext, servletRequest, txManager
-
-
Constructor Summary
Constructors Constructor Description FedoraTombstones()Default JAX-RS entry pointFedoraTombstones(String externalPath)Create a new FedoraTombstones instance for a given path
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsedelete()Delete a tombstone resource (freeing the original resource to be reused)protected StringexternalPath()javax.ws.rs.core.Responseget()javax.ws.rs.core.Responseoptions()javax.ws.rs.core.Responsepost()javax.ws.rs.core.Responseput()protected org.fcrepo.kernel.api.models.FedoraResourceresource()-
Methods inherited from class org.fcrepo.http.api.ContentExposingResource
addCacheControlHeaders, addExternalContentHeaders, addLinkAndOptionsHttpHeaders, addResourceHttpHeaders, addTransactionHeaders, asNode, buildLink, checkCacheControlHeaders, checkForInsufficientStorageException, checksumURI, createUpdateResponse, evaluateRequestPreconditions, getBinaryContent, getBinaryResourceMediaType, getChildrenLimit, getContent, getResourceTriples, getSimpleContentType, getUri, hasLenientPreferHeader, hasRestrictedPath, isRdfContentType, parseDigestHeader, patchResourcewithSparql, reloadResource, setVaryAndPreferenceAppliedHeaders, unpackLinks
-
Methods inherited from class org.fcrepo.http.api.FedoraBaseResource
doesResourceExist, doInDbTx, doInDbTxWithRetry, getFedoraResource, getUserPrincipal, identifierConverter, isGhostNode, transaction
-
-
-
-
Field Detail
-
externalPath
@PathParam("path") protected String externalPath
-
-
Constructor Detail
-
FedoraTombstones
public FedoraTombstones()
Default JAX-RS entry point
-
FedoraTombstones
public FedoraTombstones(String externalPath)
Create a new FedoraTombstones instance for a given path- Parameters:
externalPath- the external path
-
-
Method Detail
-
delete
@DELETE public javax.ws.rs.core.Response delete()
Delete a tombstone resource (freeing the original resource to be reused)- Returns:
- the free resource
-
get
@GET public javax.ws.rs.core.Response get()
-
post
@POST public javax.ws.rs.core.Response post()
-
put
@PUT public javax.ws.rs.core.Response put()
-
options
@OPTIONS public javax.ws.rs.core.Response options()
-
resource
protected org.fcrepo.kernel.api.models.FedoraResource resource()
- Overrides:
resourcein classContentExposingResource
-
externalPath
protected String externalPath()
- Specified by:
externalPathin classContentExposingResource
-
-