Package org.fcrepo.http.commons.api.rdf
Class HttpTripleUtil
java.lang.Object
org.fcrepo.http.commons.api.rdf.HttpTripleUtil
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Component
public class HttpTripleUtil
extends Object
implements org.springframework.context.ApplicationContextAware
Utility for injecting HTTP-contextual data into an RdfStream
- Author:
- awoods
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.fcrepo.kernel.api.RdfStreamaddHttpComponentModelsForResourceToStream(org.fcrepo.kernel.api.RdfStream rdfStream, org.fcrepo.kernel.api.models.FedoraResource resource, javax.ws.rs.core.UriInfo uriInfo) Add additional models to the RDF dataset for the given resourcevoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
HttpTripleUtil
public HttpTripleUtil()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
addHttpComponentModelsForResourceToStream
public org.fcrepo.kernel.api.RdfStream addHttpComponentModelsForResourceToStream(org.fcrepo.kernel.api.RdfStream rdfStream, org.fcrepo.kernel.api.models.FedoraResource resource, javax.ws.rs.core.UriInfo uriInfo) Add additional models to the RDF dataset for the given resource- Parameters:
rdfStream- the source stream we'll add named models toresource- the FedoraResourceImpl in questionuriInfo- a JAX-RS UriInfo object to build URIs to resources- Returns:
- an RdfStream with the added triples
-