Interface ServiceMetadataETagSupport


public interface ServiceMetadataETagSupport
Register implementations for this interface in oder to support etags for the metadata document and service document.
  • Method Summary

    Modifier and Type
    Method
    Description
    Since the Olingo library cannot generate a metadata document etag in a generic way we call this method to retrieve an application specific etag for the metadata document.
    Since the Olingo library cannot generate a service document etag in a generic way we call this method to retrieve an application specific etag for the service document.
  • Method Details

    • getMetadataETag

      String getMetadataETag()
      Since the Olingo library cannot generate a metadata document etag in a generic way we call this method to retrieve an application specific etag for the metadata document. If this interface is registered applications can return an etag or null here to provide caching support for clients. If a client sends a GET request to the metadata document and this method delivers an etag we will match it to the request. If there has been no modification we will return a 304 NOT MODIFIED status code. If this interface is not registered or delivers null we just send back the usual metadata response.
      Returns:
      the application generated etag for the metadata document
    • getServiceDocumentETag

      String getServiceDocumentETag()
      Since the Olingo library cannot generate a service document etag in a generic way we call this method to retrieve an application specific etag for the service document. If this interface is registered applications can return an etag or null here to provide caching support for clients. If a client sends a GET request to the service document and this method delivers an etag we will match it to the request. If there has been no modification we will return a 304 NOT MODIFIED status code. If this interface is not registered or delivers null we just send back the usual service document response.
      Returns:
      the application generated etag for the service document