Package org.fcrepo.http.commons.api.rdf
Class HttpResourceConverter
- java.lang.Object
-
- com.google.common.base.Converter<A,B>
-
- org.fcrepo.kernel.api.identifiers.IdentifierConverter<org.apache.jena.rdf.model.Resource,org.fcrepo.kernel.api.models.FedoraResource>
-
- org.fcrepo.http.commons.api.rdf.HttpResourceConverter
-
- All Implemented Interfaces:
com.google.common.base.Function<org.apache.jena.rdf.model.Resource,org.fcrepo.kernel.api.models.FedoraResource>,Function<org.apache.jena.rdf.model.Resource,org.fcrepo.kernel.api.models.FedoraResource>
@Deprecated public class HttpResourceConverter extends org.fcrepo.kernel.api.identifiers.IdentifierConverter<org.apache.jena.rdf.model.Resource,org.fcrepo.kernel.api.models.FedoraResource>
Deprecated.Convert between Jena Resources and JCR Nodes using a JAX-RS UriBuilder to mediate the URI translation.- Since:
- 10/5/14
- Author:
- cabeer
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.base.Converter<String,String>forwardDeprecated.protected com.google.common.base.Converter<String,String>reverseDeprecated.protected List<com.google.common.base.Converter<String,String>>translationChainDeprecated.
-
Constructor Summary
Constructors Constructor Description HttpResourceConverter(org.fcrepo.kernel.api.Transaction transaction, javax.ws.rs.core.UriBuilder uriBuilder)Deprecated.Create a new identifier converter within the given transaction with the given URI template
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringasString(org.apache.jena.rdf.model.Resource resource)Deprecated.protected org.apache.jena.rdf.model.ResourcedoBackward(org.fcrepo.kernel.api.models.FedoraResource resource)Deprecated.protected org.fcrepo.kernel.api.models.FedoraResourcedoForward(org.apache.jena.rdf.model.Resource resource)Deprecated.protected org.springframework.context.ApplicationContextgetApplicationContext()Deprecated.booleaninDomain(org.apache.jena.rdf.model.Resource resource)Deprecated.org.apache.jena.rdf.model.ResourcetoDomain(String path)Deprecated.-
Methods inherited from class com.google.common.base.Converter
andThen, apply, convert, convertAll, equals, from, identity, reverse
-
-
-
-
Constructor Detail
-
HttpResourceConverter
public HttpResourceConverter(org.fcrepo.kernel.api.Transaction transaction, javax.ws.rs.core.UriBuilder uriBuilder)
Deprecated.Create a new identifier converter within the given transaction with the given URI template- Parameters:
transaction- the transactionuriBuilder- the uri builder
-
-
Method Detail
-
doForward
protected org.fcrepo.kernel.api.models.FedoraResource doForward(org.apache.jena.rdf.model.Resource resource)
Deprecated.- Specified by:
doForwardin classcom.google.common.base.Converter<org.apache.jena.rdf.model.Resource,org.fcrepo.kernel.api.models.FedoraResource>
-
doBackward
protected org.apache.jena.rdf.model.Resource doBackward(org.fcrepo.kernel.api.models.FedoraResource resource)
Deprecated.- Specified by:
doBackwardin classcom.google.common.base.Converter<org.apache.jena.rdf.model.Resource,org.fcrepo.kernel.api.models.FedoraResource>
-
inDomain
public boolean inDomain(org.apache.jena.rdf.model.Resource resource)
Deprecated.- Overrides:
inDomainin classorg.fcrepo.kernel.api.identifiers.IdentifierConverter<org.apache.jena.rdf.model.Resource,org.fcrepo.kernel.api.models.FedoraResource>
-
toDomain
public org.apache.jena.rdf.model.Resource toDomain(String path)
Deprecated.- Specified by:
toDomainin classorg.fcrepo.kernel.api.identifiers.IdentifierConverter<org.apache.jena.rdf.model.Resource,org.fcrepo.kernel.api.models.FedoraResource>
-
asString
public String asString(org.apache.jena.rdf.model.Resource resource)
Deprecated.- Specified by:
asStringin classorg.fcrepo.kernel.api.identifiers.IdentifierConverter<org.apache.jena.rdf.model.Resource,org.fcrepo.kernel.api.models.FedoraResource>
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext()
Deprecated.
-
-