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 Details

  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.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 to
      resource - the FedoraResourceImpl in question
      uriInfo - a JAX-RS UriInfo object to build URIs to resources
      Returns:
      an RdfStream with the added triples