Interface InterceptorContext.TransientStorage
- All Known Implementing Classes:
DefaultTransientStorage
- Enclosing interface:
- InterceptorContext
public static interface InterceptorContext.TransientStorage
Represents a transient storage for a single
InterceptorContext. It might be used to share attributes among
different Interceptors invoked during single ModelService operation.-
Method Summary
Modifier and TypeMethodDescriptionbooleanAllows you to check if a given key is present in the storage.Get value from the storage.voidPut value in the storagevoidRemoves value assigned with a given key.
-
Method Details
-
get
Get value from the storage.- Parameters:
key- attribute's key- Returns:
- value assigned with the key or null if there is no value
- Throws:
NullPointerException- if key is null
-
put
Put value in the storage- Parameters:
key- attribute's keyvalue- value to be store- Throws:
NullPointerException- if key or value is null
-
contains
Allows you to check if a given key is present in the storage.- Parameters:
key- attribute's key- Returns:
- true if the key is present in the storage
- Throws:
NullPointerException- if key is null
-
remove
Removes value assigned with a given key.- Parameters:
key- attribute's key- Throws:
NullPointerException- if key is null
-