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 SummaryConstructors
- 
Method SummaryModifier 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- 
Resteasypublic Resteasy()Deprecated.
 
- 
- 
Method Details- 
pushContextDeprecated.Push the giveninstancewith type/keytypeto the context associated with the current thread.
 Should not be called directly- Parameters:
- type- the type/key to associate the- instancewith
- instance- the instance
 
- 
clearContextDatapublic static void clearContextData()Deprecated.Clear the context associated with the current thread.
 Should not be called directly
- 
getContextDataDeprecated.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.
 
- 
pushDefaultContextObjectDeprecated.Push the giveninstancewith type/keytypeto the Resteasy global context.- Parameters:
- type- the type/key to associate the- instancewith
- instance- the instance
 
 
-