Class RequestAttributesMap

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.pac4j.undertow.context.RequestAttributesMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class RequestAttributesMap extends HashMap<String,Object>
A map of request attributes stored in Undertow's HttpServerExchange as an attachment. This is a simple extension of a HashMap that adds no custom logic, but it must be a separate class, because Undertow uses class-based AttachmentKey to distinguish attachment types.
Since:
4.1.0
Author:
Igor Lobanov
See Also:
  • Constructor Details

    • RequestAttributesMap

      public RequestAttributesMap()
  • Method Details

    • getOrInitialize

      public static RequestAttributesMap getOrInitialize(io.undertow.server.HttpServerExchange exchange)
      Returns an instance of RequestAttributesMap stored in a given Undertow's HttpServerExchange object as an attachment. If there had not been such attachment in the exchange, it is created.
      Parameters:
      exchange - the Undertow exchange
      Returns:
      the request attributes map