Interface ModuleContext


@Deprecated public interface ModuleContext
Deprecated.
since 2.13.0: PluginContext.
What a FrontcacheModule may read from the node - the things module code would otherwise reach for through a core class's statics.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    The node's cache processor if it exists, without creating one; may be null.
    Deprecated.
    FRONTCACHE_HOME, or null for a node started without one.
    Deprecated.
    A property of frontcache.properties, read-only; null when unset.
    Deprecated.
    The site's public hostname (front-cache.default-domain), or null when the node has none configured - never the placeholder.
    Deprecated.
    The in-memory token a warm request presents in x-frontcache-warm - see org.frontcache.warmer.WarmRequest.
  • Method Details

    • publicDomain

      String publicDomain()
      Deprecated.
      The site's public hostname (front-cache.default-domain), or null when the node has none configured - never the placeholder.
    • frontcacheHome

      File frontcacheHome()
      Deprecated.
      FRONTCACHE_HOME, or null for a node started without one.
    • property

      String property(String key)
      Deprecated.
      A property of frontcache.properties, read-only; null when unset.
    • existingCacheProcessor

      CacheProcessor existingCacheProcessor()
      Deprecated.
      The node's cache processor if it exists, without creating one; may be null.
    • warmRequestToken

      String warmRequestToken()
      Deprecated.
      The in-memory token a warm request presents in x-frontcache-warm - see org.frontcache.warmer.WarmRequest. In-process only: it must never be logged or sent anywhere but to this node's own loopback.