Class 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
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • addHttpComponentModelsForResourceToStream

        public RdfStream addHttpComponentModelsForResourceToStream​(RdfStream rdfStream,
                                                                   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