@Scope(value="request") @Path(value="/{path: .*}") public class FedoraNodes extends ContentExposingResource
Modifier and Type | Field and Description |
---|---|
protected String |
externalPath |
protected javax.ws.rs.core.Request |
request |
protected FedoraResource |
resource |
protected javax.servlet.http.HttpServletResponse |
servletResponse |
protected javax.jcr.Session |
session |
protected javax.ws.rs.core.UriInfo |
uriInfo |
MESSAGE_EXTERNAL_BODY, prefer
idTranslator
binaryService, containerService, eventBus, nodeService, pidMinter, sessions, versionService
Constructor and Description |
---|
FedoraNodes()
Default JAX-RS entry point
|
FedoraNodes(String externalPath)
Create a new FedoraNodes instance for a given path
|
Modifier and Type | Method and Description |
---|---|
protected void |
addResourceHttpHeaders(FedoraResource resource)
Add any resource-specific headers to the response
|
javax.ws.rs.core.Response |
copyObject(String destinationUri)
Copies an object from one path to another
|
protected String |
externalPath() |
javax.ws.rs.core.Response |
moveObject(String destinationUri)
Copies an object from one path to another
|
void |
postConstruct()
Run these actions after initializing this resource
|
protected javax.jcr.Session |
session() |
addCacheControlHeaders, checkCacheControlHeaders, evaluateRequestPreconditions, getBinaryContent, getContent, getResourceTriples, getSimpleContentType, getTriples, getTriples, getUri, isRdfContentType, patchResourcewithSparql, replaceResourceBinaryWithStream, replaceResourceWithStream, resource
getResourceFromPath, setUpJMSBaseURIs, translator
toPath
@Inject protected javax.jcr.Session session
@Context protected javax.ws.rs.core.Request request
@Context protected javax.servlet.http.HttpServletResponse servletResponse
@Context protected javax.ws.rs.core.UriInfo uriInfo
@PathParam(value="path") protected String externalPath
protected FedoraResource resource
public FedoraNodes()
public FedoraNodes(String externalPath)
externalPath
- @PostConstruct public void postConstruct()
@Timed public javax.ws.rs.core.Response copyObject(@HeaderParam(value="Destination") String destinationUri) throws URISyntaxException
URISyntaxException
@Timed public javax.ws.rs.core.Response moveObject(@HeaderParam(value="Destination") String destinationUri) throws URISyntaxException
URISyntaxException
protected javax.jcr.Session session()
session
in class FedoraBaseResource
protected void addResourceHttpHeaders(FedoraResource resource)
ContentExposingResource
addResourceHttpHeaders
in class ContentExposingResource
protected String externalPath()
externalPath
in class ContentExposingResource
Copyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.