Package org.fcrepo.http.api.url
Class HttpApiResources
- java.lang.Object
-
- org.fcrepo.http.api.url.HttpApiResources
-
- All Implemented Interfaces:
UriAwareResourceModelFactory
@Component public class HttpApiResources extends Object implements UriAwareResourceModelFactory
Inject our HTTP API methods into the object graphs- Author:
- awoods
-
-
Constructor Summary
Constructors Constructor Description HttpApiResources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jena.rdf.model.Model
createModelForResource(FedoraResource resource, javax.ws.rs.core.UriInfo uriInfo)
Given a resource, the UriInfo and a way to generate graph subjects, create a model with triples to inject into an RDF response for the resource (e.g.
-
-
-
Constructor Detail
-
HttpApiResources
public HttpApiResources()
-
-
Method Detail
-
createModelForResource
public org.apache.jena.rdf.model.Model createModelForResource(FedoraResource resource, javax.ws.rs.core.UriInfo uriInfo)
Description copied from interface:UriAwareResourceModelFactory
Given a resource, the UriInfo and a way to generate graph subjects, create a model with triples to inject into an RDF response for the resource (e.g. to add HATEOAS links)- Specified by:
createModelForResource
in interfaceUriAwareResourceModelFactory
- Parameters:
resource
- the resourceuriInfo
- the uri info- Returns:
- model containing triples for the given resource
-
-