public class HttpIdentifierTranslator extends SpringContextAwareIdentifierTranslator
| Modifier and Type | Field and Description |
|---|---|
static String |
TX_PREFIX |
protected javax.ws.rs.core.UriBuilder |
uriBuilder |
static String |
WORKSPACE_PREFIX |
| Constructor and Description |
|---|
HttpIdentifierTranslator(javax.jcr.Session session,
Class<?> relativeTo,
javax.ws.rs.core.UriInfo uris)
Build HTTP graph subjects relative to the given JAX-RS resource, using the UriInfo provided.
|
HttpIdentifierTranslator(javax.jcr.Session session,
Class<?> relativeTo,
javax.ws.rs.core.UriInfo uris,
boolean canonical)
Build HTTP graph subjects relative to the given JAX-RS resource, using the UriInfo provided.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
doRdfBackward(com.hp.hpl.jena.rdf.model.Resource subject) |
protected com.hp.hpl.jena.rdf.model.Resource |
doRdfForward(String inputId) |
String |
getBaseUri() |
HttpIdentifierTranslator |
getCanonical(boolean canonical)
Get the canonical IdentifierTranslator (e.g.
|
com.hp.hpl.jena.rdf.model.Resource |
getContext() |
protected String |
getPathFromGraphSubject(String subjectUri)
Gets a path from the graph subject's URI.
|
String |
getPathFromSubject(com.hp.hpl.jena.rdf.model.Resource subject) |
com.hp.hpl.jena.rdf.model.Resource |
getSubject(String absPath) |
boolean |
isCanonical()
Is the current IdentifierTranslator canonical?
|
boolean |
isFedoraGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject) |
protected void |
resetTranslationChain() |
getApplicationContext, getTranslationChainaccumulateTranslations, doBackward, doForward, setTranslationChainpublic static final String WORKSPACE_PREFIX
public static final String TX_PREFIX
protected final javax.ws.rs.core.UriBuilder uriBuilder
public HttpIdentifierTranslator(javax.jcr.Session session,
Class<?> relativeTo,
javax.ws.rs.core.UriInfo uris)
session - relativeTo - uris - public HttpIdentifierTranslator(javax.jcr.Session session,
Class<?> relativeTo,
javax.ws.rs.core.UriInfo uris,
boolean canonical)
session - relativeTo - uris - canonical - generate canonical URIs for resourcespublic HttpIdentifierTranslator getCanonical(boolean canonical)
canonical - public boolean isCanonical()
public com.hp.hpl.jena.rdf.model.Resource getSubject(String absPath) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic com.hp.hpl.jena.rdf.model.Resource getContext()
public String getPathFromSubject(com.hp.hpl.jena.rdf.model.Resource subject) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected String getPathFromGraphSubject(@NotNull String subjectUri) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic boolean isFedoraGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject)
protected com.hp.hpl.jena.rdf.model.Resource doRdfForward(String inputId)
doRdfForward in class org.fcrepo.kernel.identifiers.ExternalIdentifierConverterprotected String doRdfBackward(com.hp.hpl.jena.rdf.model.Resource subject)
doRdfBackward in class org.fcrepo.kernel.identifiers.ExternalIdentifierConverterprotected void resetTranslationChain()
public String getBaseUri()
Copyright © 2013–2014 DuraSpace, Inc.. All rights reserved.