Class ThreadAllowlist

java.lang.Object
org.apache.struts2.ognl.ThreadAllowlist

public class ThreadAllowlist extends Object
Allows any bean to allowlist a class for use in OGNL expressions, for the current thread only. The allowlist can be cleared once any desired OGNL expressions have been evaluated.
Since:
6.4.0
  • Constructor Details

    • ThreadAllowlist

      public ThreadAllowlist()
  • Method Details

    • allowClass

      public void allowClass(Class<?> clazz)
    • clearAllowlist

      public void clearAllowlist()
    • getAllowlist

      public Set<Class<?>> getAllowlist()