public class AuthzContext extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static ThreadLocal<HttpMeta> |
currentHttpMeta |
static Supplier<javax.servlet.http.HttpServletRequest> |
currentRequest |
static Supplier<javax.servlet.http.HttpServletResponse> |
currentResponse |
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
createUserId(Object userId) |
static <T> T |
getBean(Class<T> clz) |
static <T> T |
getBean(String name,
Class<T> clz) |
static <T> Map<String,T> |
getBeansOfType(Class<T> clz) |
static org.springframework.context.ApplicationContext |
getCtx() |
static HttpMeta |
getCurrentHttpMeta() |
static AccessToken |
getCurrentToken() |
static String |
getMainClassPkg() |
static void |
init(org.springframework.context.ApplicationContext applicationContext) |
public static final ThreadLocal<HttpMeta> currentHttpMeta
public static final Supplier<javax.servlet.http.HttpServletRequest> currentRequest
public static final Supplier<javax.servlet.http.HttpServletResponse> currentResponse
public static <T> T getBean(Class<T> clz)
public static String getMainClassPkg()
public static void init(org.springframework.context.ApplicationContext applicationContext)
public static org.springframework.context.ApplicationContext getCtx()
@NonNull public static HttpMeta getCurrentHttpMeta() throws ThreadWebEnvironmentException
@NonNull public static AccessToken getCurrentToken() throws NotLoginException
Copyright © 2022. All rights reserved.