Class MockContentStoreProvider

  • All Implemented Interfaces:
    ContentStoreProvider

    public class MockContentStoreProvider
    extends java.lang.Object
    implements ContentStoreProvider
    Content store that saves the stream to a byte array in memory.

    This store provides no memory savings but does allow for ease of development and provides high speed access to the underlying data.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String namespace, java.lang.String id, java.io.InputStream in)
      Content will be copied from the InputStream and stored within the namespace under the id.
      boolean contains​(java.lang.String namespace, java.lang.String id)
      void delete​(java.lang.String namespace, java.lang.String id)
      Deletes id from the namespace.
      void deleteAll​(java.lang.String namespace)
      Deletes all content from the store within the namespace
      java.lang.String externalize​(java.lang.String storeName, java.lang.String id)
      Returns an externally accessible URI for the content suitable for HTTP GET.
      java.io.InputStream get​(java.lang.String namespace, java.lang.String id)
      Returns an InputStream to access the content.
      long getDiskUtilization()
      long getLastModified​(java.lang.String namespace, java.lang.String id)
      java.util.List<java.lang.String> getNamespaces()
      long getSize​(java.lang.String namespace, java.lang.String id)
      long getTotalRecords​(java.lang.String namespace)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait