Class CachingURLStreamHandlerFactory

  • All Implemented Interfaces:
    java.net.URLStreamHandlerFactory

    public class CachingURLStreamHandlerFactory
    extends java.lang.Object
    implements java.net.URLStreamHandlerFactory
    Custom URLStreamHandlerFactory that is used to implement caching. The factory creates CachingHttpUrlConnection (and https) instances that wrap the original URLConnection elements.
    Author:
    P.J. Meisch ([email protected]).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PROTO_HTTP  
      static java.lang.String PROTO_HTTPS  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.URLStreamHandler createURLStreamHandler​(java.lang.String protocol)
      default Handler for http and https.
      • Methods inherited from class java.lang.Object

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

      • createURLStreamHandler

        public java.net.URLStreamHandler createURLStreamHandler​(java.lang.String protocol)
        default Handler for http and https.
        Specified by:
        createURLStreamHandler in interface java.net.URLStreamHandlerFactory