Package org.openrdf.http.server.helpers

Examples of org.openrdf.http.server.helpers.CacheInfo


  /**
   * Registers the specified media types and, if possible, sets last-modified
   * dates and entity tags on these variants.
   */
  protected void addCacheableMediaTypes(Collection<MediaType> mediaTypes) {
    CacheInfo cacheInfo = getCacheInfo();

    if (cacheInfo != null) {
      Date lastModified = cacheInfo.getLastModified();
      Tag entityTag = cacheInfo.getEntityTag();

      for (MediaType mediaType : mediaTypes) {
        getVariants().add(new RepresentationInfo(mediaType, lastModified, entityTag));
      }
    }
View Full Code Here

TOP

Related Classes of org.openrdf.http.server.helpers.CacheInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.