@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, preferidTranslatorbinaryService, 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, resourcegetResourceFromPath, setUpJMSBaseURIs, translatortoPath@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
URISyntaxExceptionprotected javax.jcr.Session session()
session in class FedoraBaseResourceprotected void addResourceHttpHeaders(FedoraResource resource)
ContentExposingResourceaddResourceHttpHeaders in class ContentExposingResourceprotected String externalPath()
externalPath in class ContentExposingResourceCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.