Class WebPageCache


  • public class WebPageCache
    extends java.lang.Object
    A class for caching webpages.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String cacheName  
    • Constructor Summary

      Constructors 
      Constructor Description
      WebPageCache​(java.lang.String cacheName)  
    • Method Summary

      Modifier and Type Method Description
      void clean()  
      java.io.ByteArrayOutputStream get​(java.lang.String key)  
      void init()  
      void put​(java.lang.String key, java.io.ByteArrayOutputStream value)  
      • Methods inherited from class java.lang.Object

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

      • cacheName

        public java.lang.String cacheName
    • Constructor Detail

      • WebPageCache

        public WebPageCache​(java.lang.String cacheName)
    • Method Detail

      • init

        public void init()
      • put

        public void put​(java.lang.String key,
                        java.io.ByteArrayOutputStream value)
      • get

        public java.io.ByteArrayOutputStream get​(java.lang.String key)
      • clean

        public void clean()