Package org.keycloak.common.util
Class Resteasy
java.lang.Object
org.keycloak.common.util.Resteasy
Deprecated.
use org.keycloak.util.KeycloakSessionUtil instead
Provides a way for obtaining the KeycloakSession
- Author:
- Pedro Igor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Deprecated.Clear the context associated with the current thread.static <R> R
getContextData
(Class<R> type) Deprecated.Lookup the instance associated with the given type/keytype
from the context associated with the current thread.static <R> R
pushContext
(Class<R> type, R instance) Deprecated.Push the giveninstance
with type/keytype
to the context associated with the current thread.static void
pushDefaultContextObject
(Class type, Object instance) Deprecated.
-
Constructor Details
-
Resteasy
public Resteasy()Deprecated.
-
-
Method Details
-
pushContext
Deprecated.Push the giveninstance
with type/keytype
to the context associated with the current thread.
Should not be called directly- Parameters:
type
- the type/key to associate theinstance
withinstance
- the instance
-
clearContextData
public static void clearContextData()Deprecated.Clear the context associated with the current thread.
Should not be called directly -
getContextData
Deprecated.Lookup the instance associated with the given type/keytype
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.Push the giveninstance
with type/keytype
to the Resteasy global context.- Parameters:
type
- the type/key to associate theinstance
withinstance
- the instance
-