public class SaTokenContextForThreadLocalStorage
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SaTokenContextForThreadLocalStorage.Box |
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.ThreadLocal<SaTokenContextForThreadLocalStorage.Box> |
boxThreadLocal
基于 ThreadLocal 的 [Box存储器]
|
| 构造器和说明 |
|---|
SaTokenContextForThreadLocalStorage() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clearBox()
清除 [Box存储器]
|
static SaTokenContextForThreadLocalStorage.Box |
getBox()
获取 [Box存储器]
|
static SaTokenContextForThreadLocalStorage.Box |
getBoxNotNull()
获取 [Box存储器], 如果为空则抛出异常
|
static SaRequest |
getRequest()
在 [Box存储器] 获取 [Request] 对象
|
static SaResponse |
getResponse()
在 [Box存储器] 获取 [Response] 对象
|
static SaStorage |
getStorage()
在 [Box存储器] 获取 [存储器] 对象
|
static void |
setBox(SaRequest request,
SaResponse response,
SaStorage storage)
初始化 [Box存储器]
|
public static java.lang.ThreadLocal<SaTokenContextForThreadLocalStorage.Box> boxThreadLocal
public static void setBox(SaRequest request, SaResponse response, SaStorage storage)
request - SaRequestresponse - SaResponsestorage - SaStoragepublic static void clearBox()
public static SaTokenContextForThreadLocalStorage.Box getBox()
public static SaTokenContextForThreadLocalStorage.Box getBoxNotNull()
public static SaRequest getRequest()
public static SaResponse getResponse()
public static SaStorage getStorage()
Copyright © 2022. All Rights Reserved.