Interface FlashScope

  • All Superinterfaces:
    java.util.Map<java.lang.String,​java.lang.Object>, java.io.Serializable
    All Known Implementing Classes:
    GrailsFlashScope

    public interface FlashScope
    extends java.util.Map<java.lang.String,​java.lang.Object>, java.io.Serializable
    Represents flash scope and allows a flash scope map to be set to the next state. Flash scope essentially allows variables to be maintained for the next state and the next state only, what this means is if objects are stored inside FlashScope on the first call to "next()" they will be still there, but on the subsequent call they will be cleared unless they have been set again since the last call to "next()"
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CHAIN_MODEL
      The attribute containing the chain model
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map getNow()
      Returns the current state of flash scope, to be used if you don't want to include variables in the next request
      void next()
      Sets the flash scope to the next state upon a new request
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
    • Field Detail

      • CHAIN_MODEL

        static final java.lang.String CHAIN_MODEL
        The attribute containing the chain model
        See Also:
        Constant Field Values
    • Method Detail

      • next

        void next()
        Sets the flash scope to the next state upon a new request
      • getNow

        java.util.Map getNow()
        Returns the current state of flash scope, to be used if you don't want to include variables in the next request
        Returns:
        A map