com.ibm.commerce.rest.caching

Class RESTKeyListMetaDataGenerator

  • java.lang.Object
    • com.ibm.commerce.rest.caching.RESTKeyListMetaDataGenerator
  • All Implemented Interfaces:
    com.ibm.websphere.servlet.cache.MetaDataGenerator


    public class RESTKeyListMetaDataGenerator
    extends java.lang.Object
    implements com.ibm.websphere.servlet.cache.MetaDataGenerator
    The RESTKeyListMetaDataGenerator is the sample implementation of transforming a parameter list into appropriate dependency IDs. With this class, by default, it will convert the 'CategoryDisplay:storeId:categoryId:::' to 'CategoryDisplay:storeId:categoryId::' and 'CategoryDisplay:storeId:categoryId::' and 'ProductDisplay:storeId:productId::' to 'ProductDisplay:storeId:productId::' and 'ProductDisplay:storeId:productId::' The method extGenerateDependencyId is used for customization. Developer can override this method to add more logic for dependency conversion.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void initialize(com.ibm.websphere.servlet.cache.CacheConfig arg0)
      Initialization
      void setMetaData(com.ibm.websphere.servlet.cache.ServletCacheRequest request, javax.servlet.http.HttpServletResponse resp)
      Updates the dependency IDs.
      • Methods inherited from class java.lang.Object

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

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RESTKeyListMetaDataGenerator

        public RESTKeyListMetaDataGenerator()
    • Method Detail

      • initialize

        public void initialize(com.ibm.websphere.servlet.cache.CacheConfig arg0)
        Initialization
        Specified by:
        initialize in interface com.ibm.websphere.servlet.cache.MetaDataGenerator
        Parameters:
        arg0 -
      • setMetaData

        public void setMetaData(com.ibm.websphere.servlet.cache.ServletCacheRequest request,
                                javax.servlet.http.HttpServletResponse resp)
        Updates the dependency IDs.
        Specified by:
        setMetaData in interface com.ibm.websphere.servlet.cache.MetaDataGenerator
        Parameters:
        request - The ServletCacheRequest object.
        resp - The HttpServletResponse object.