@Component
@Scope(value="prototype")
public class FedoraTransform
extends org.fcrepo.http.commons.AbstractResource
| Modifier and Type | Field and Description |
|---|---|
protected javax.jcr.Session |
session |
| Constructor and Description |
|---|
FedoraTransform() |
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluateLdpathProgram(List<javax.ws.rs.core.PathSegment> pathList,
String program)
Execute an LDpath program transform
|
Object |
evaluateTransform(List<javax.ws.rs.core.PathSegment> pathList,
javax.ws.rs.core.MediaType contentType,
InputStream requestBodyStream)
Get the LDPath output as a JSON stream appropriate for e.g.
|
void |
setUpRepositoryConfiguration()
Register the LDPath configuration tree in JCR
|
@PostConstruct public void setUpRepositoryConfiguration() throws javax.jcr.RepositoryException, IOException
javax.jcr.RepositoryExceptionIOExceptionSecurityExceptionpublic Object evaluateLdpathProgram(List<javax.ws.rs.core.PathSegment> pathList, String program) throws javax.jcr.RepositoryException
pathList - javax.jcr.RepositoryExceptionpublic Object evaluateTransform(List<javax.ws.rs.core.PathSegment> pathList, @HeaderParam(value="Content-Type") javax.ws.rs.core.MediaType contentType, InputStream requestBodyStream) throws javax.jcr.RepositoryException
pathList - requestBodyStream - javax.jcr.RepositoryExceptionCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.