Class Resteasy

java.lang.Object
org.keycloak.common.util.Resteasy

@Deprecated public final class Resteasy extends Object
Deprecated.
use org.keycloak.util.KeycloakSessionUtil instead

Provides a way for obtaining the KeycloakSession

Author:
Pedro Igor
  • Constructor Details

    • Resteasy

      public Resteasy()
      Deprecated.
  • Method Details

    • pushContext

      public static <R> R pushContext(Class<R> type, R instance)
      Deprecated.
      Push the given instance with type/key type to the context associated with the current thread.
      Should not be called directly
      Parameters:
      type - the type/key to associate the instance with
      instance - the instance
    • clearContextData

      public static void clearContextData()
      Deprecated.
      Clear the context associated with the current thread.
      Should not be called directly
    • getContextData

      public static <R> R getContextData(Class<R> type)
      Deprecated.
      Lookup the instance associated with the given type/key type from the context associated with the current thread.
      Should only be used to obtain the KeycloakSession
      Parameters:
      type - the type/key to lookup
      Returns:
      the instance associated with the given type or null if non-existent.
    • pushDefaultContextObject

      @Deprecated public static void pushDefaultContextObject(Class type, Object instance)
      Deprecated.
      Push the given instance with type/key type to the Resteasy global context.
      Parameters:
      type - the type/key to associate the instance with
      instance - the instance