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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeprecated.Clear the context associated with the current thread.static <R> RgetContextData(Class<R> type) Deprecated.Lookup the instance associated with the given type/keytypefrom the context associated with the current thread.static <R> RpushContext(Class<R> type, R instance) Deprecated.Push the giveninstancewith type/keytypeto the context associated with the current thread.static voidpushDefaultContextObject(Class type, Object instance) Deprecated. 
- 
Constructor Details
- 
Resteasy
public Resteasy()Deprecated. 
 - 
 - 
Method Details
- 
pushContext
Deprecated.Push the giveninstancewith type/keytypeto the context associated with the current thread.
Should not be called directly- Parameters:
 type- the type/key to associate theinstancewithinstance- 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/keytypefrom 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 
typeor null if non-existent. 
 - 
pushDefaultContextObject
Deprecated.Push the giveninstancewith type/keytypeto the Resteasy global context.- Parameters:
 type- the type/key to associate theinstancewithinstance- the instance
 
 -