Interface RequestContext

All Known Implementing Classes:
RequestContextAdapter

public interface RequestContext
Tracks variables about the current request.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String key)
    Retrieve a registered variable.
    Retrieves the keys that have been registered to this context.
    void
    put(String key, String value)
    Register a variable and a value.
    Deletes a registered variable.
  • Method Details

    • put

      void put(String key, String value)
      Register a variable and a value.
      Parameters:
      key - the variable name.
      value - the value.
    • get

      String get(String key)
      Retrieve a registered variable.
      Parameters:
      key - the variable name.
      Returns:
      the value, or null if not found.
    • keySet

      Set<String> keySet()
      Retrieves the keys that have been registered to this context.
      Returns:
      the keys used in this context.
    • remove

      String remove(String key)
      Deletes a registered variable.
      Returns:
      the value associated with the deleted variable, or null if the key doesn't exist.