Interface InterceptorContext.TransientStorage

All Known Implementing Classes:
DefaultTransientStorage
Enclosing interface:
InterceptorContext

public static interface InterceptorContext.TransientStorage
Represents a transient storage for a single InterceptorContext. It might be used to share attributes among different Interceptors invoked during single ModelService operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Allows you to check if a given key is present in the storage.
    get(Object key)
    Get value from the storage.
    void
    put(Object key, Object value)
    Put value in the storage
    void
    Removes value assigned with a given key.
  • Method Details

    • get

      Object get(Object key)
      Get value from the storage.
      Parameters:
      key - attribute's key
      Returns:
      value assigned with the key or null if there is no value
      Throws:
      NullPointerException - if key is null
    • put

      void put(Object key, Object value)
      Put value in the storage
      Parameters:
      key - attribute's key
      value - value to be store
      Throws:
      NullPointerException - if key or value is null
    • contains

      boolean contains(Object key)
      Allows you to check if a given key is present in the storage.
      Parameters:
      key - attribute's key
      Returns:
      true if the key is present in the storage
      Throws:
      NullPointerException - if key is null
    • remove

      void remove(Object key)
      Removes value assigned with a given key.
      Parameters:
      key - attribute's key
      Throws:
      NullPointerException - if key is null