Package ubic.gemma.rest.analytics.ga4
Class RequestAttributesBasedClientIdRetrievalStrategy
- java.lang.Object
-
- ubic.gemma.rest.analytics.ga4.RequestAttributesBasedClientIdRetrievalStrategy
-
- All Implemented Interfaces:
ClientIdRetrievalStrategy
public class RequestAttributesBasedClientIdRetrievalStrategy extends Object implements ClientIdRetrievalStrategy
Strategy that retrieves and store client IDs in theRequestAttributes.- Author:
- poirigui
- See Also:
RequestContextHolder.currentRequestAttributes()
-
-
Constructor Summary
Constructors Constructor Description RequestAttributesBasedClientIdRetrievalStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget()voidsetAttribute(String attribute)Set the attribute to retrieve to obtain the client ID.voidsetScope(int scope)Set the scope to use for retrieving and storing the client ID.
-
-
-
Method Detail
-
get
@Nullable public String get()
- Specified by:
getin interfaceClientIdRetrievalStrategy
-
setAttribute
public void setAttribute(String attribute)
Set the attribute to retrieve to obtain the client ID.
-
setScope
public void setScope(int scope)
Set the scope to use for retrieving and storing the client ID.
-
-