Class EtagService


  • @Component
    public class EtagService
    extends Object
    Service for computing etags for request responses
    Author:
    bbpennel
    • Method Detail

      • getRdfResourceEtag

        public String getRdfResourceEtag​(Transaction transaction,
                                         FedoraResource resource,
                                         LdpTriplePreferences prefers,
                                         Collection<javax.ws.rs.core.MediaType> acceptableMediaTypes)
        Produces etag for a request for an RDF resource. It is based on factors related to the current state of the resource, as well as request options which change the representation of the resource.
        Parameters:
        transaction - transaction
        resource - resource
        prefers - LDP preference headers for the request
        acceptableMediaTypes - collection of acceptable media types for the response
        Returns:
        etag for the request