Package org.fcrepo.http.api
Class FedoraFixity
- java.lang.Object
-
- org.fcrepo.http.commons.AbstractResource
-
- org.fcrepo.http.api.FedoraBaseResource
-
- org.fcrepo.http.api.ContentExposingResource
-
- org.fcrepo.http.api.FedoraFixity
-
@Scope("request") @Path("/{path: .*}/fcr:fixity") public class FedoraFixity extends ContentExposingResourceRun a fixity check on a path- Since:
- Jun 12, 2013
- Author:
- ajs6f
-
-
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
-
Fields inherited from class org.fcrepo.http.commons.AbstractResource
defaultPidMinter, fedoraPropsConfig, headers, pidMinter, uriInfo, versionService
-
-
Constructor Summary
Constructors Constructor Description FedoraFixity()Default JAX-RS entry pointFedoraFixity(String externalPath)Create a new FedoraNodes instance for a given path
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsedelete()protected StringexternalPath()javax.ws.rs.core.Responseget()RdfNamespacedStreamgetDatastreamFixity()Get the results of a fixity check for a path GET /path/to/some/datastream/fcr:fixityjavax.ws.rs.core.Responseoptions()javax.ws.rs.core.Responsepatch()javax.ws.rs.core.Responsepost()javax.ws.rs.core.Responseput()-
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, resource, 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
-
FedoraFixity
public FedoraFixity()
Default JAX-RS entry point
-
FedoraFixity
public FedoraFixity(String externalPath)
Create a new FedoraNodes instance for a given path- Parameters:
externalPath- the external path
-
-
Method Detail
-
getDatastreamFixity
@GET @Produces({"text/turtle;charset=utf-8;qs=1.0","application/ld+json;qs=0.8","text/rdf+n3;charset=utf-8","text/n3;charset=utf-8","application/rdf+xml","application/n-triples","text/plain;charset=utf-8","text/html;charset=utf-8","*/*"}) public RdfNamespacedStream getDatastreamFixity()Get the results of a fixity check for a path GET /path/to/some/datastream/fcr:fixity- Returns:
- datastream fixity in the given format
-
externalPath
protected String externalPath()
- Specified by:
externalPathin classContentExposingResource
-
options
@OPTIONS public javax.ws.rs.core.Response options()
-
get
@HEAD 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()
-
patch
public javax.ws.rs.core.Response patch()
-
delete
@DELETE public javax.ws.rs.core.Response delete()
-
-