Class CacheSupport


  • @Internal
    public final class CacheSupport
    extends java.lang.Object
    HTTP cache support utilities.
    Since:
    5.4
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.hc.core5.util.TimeValue MAX_AGE  
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheSupport()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long deltaSeconds​(java.lang.String s)  
      static java.net.URI getLocationURI​(java.net.URI requestUri, org.apache.hc.core5.http.MessageHeaders response, java.lang.String headerName)  
      static boolean isSameOrigin​(java.net.URI requestURI, java.net.URI targetURI)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MAX_AGE

        public static final org.apache.hc.core5.util.TimeValue MAX_AGE
    • Constructor Detail

      • CacheSupport

        public CacheSupport()
    • Method Detail

      • getLocationURI

        public static java.net.URI getLocationURI​(java.net.URI requestUri,
                                                  org.apache.hc.core5.http.MessageHeaders response,
                                                  java.lang.String headerName)
      • isSameOrigin

        public static boolean isSameOrigin​(java.net.URI requestURI,
                                           java.net.URI targetURI)
      • deltaSeconds

        public static long deltaSeconds​(java.lang.String s)