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 ContentExposingResource
CRUD operations on Fedora tombstones- Author:
- cbeer
-
-
Field Summary
Fields Modifier and Type Field Description protected String
externalPath
-
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
-
Fields inherited from class org.fcrepo.http.commons.AbstractResource
defaultPidMinter, fedoraPropsConfig, headers, pidMinter, uriInfo, versionService
-
-
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.Response
delete()
Delete a tombstone resource (freeing the original resource to be reused)protected String
externalPath()
javax.ws.rs.core.Response
get()
javax.ws.rs.core.Response
options()
javax.ws.rs.core.Response
post()
javax.ws.rs.core.Response
put()
protected FedoraResource
resource()
-
Methods inherited from class org.fcrepo.http.api.ContentExposingResource
addCacheControlHeaders, addExternalContentHeaders, addLinkAndOptionsHttpHeaders, addResourceHttpHeaders, 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 FedoraResource resource()
- Overrides:
resource
in classContentExposingResource
-
externalPath
protected String externalPath()
- Specified by:
externalPath
in classContentExposingResource
-
-