public class ContextHolder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static Boolean |
getBoolean(String key) |
static Context |
getContext() |
static Integer |
getInteger(String key) |
static Optional<ResponseExtractor<?>> |
getResponseExtractor() |
static String |
getString(String key) |
static <T> T |
getValue(String key) |
static void |
remove() |
static void |
setContext(Context context) |
static void |
setHttpConfig(HttpConfig httpConfig) |
static void |
setPageable(Pageable pageable) |
static void |
setPageables(Pageable[] pageables) |
static void |
setResponseExtractor(ResponseExtractor<?> responseExtractor) |
static void |
setValue(String key,
Object o) |
public static Context getContext()
public static void setContext(Context context)
public static Optional<ResponseExtractor<?>> getResponseExtractor()
public static void setResponseExtractor(ResponseExtractor<?> responseExtractor)
public static void setPageables(Pageable[] pageables)
public static void setPageable(Pageable pageable)
public static void remove()
public static <T> T getValue(String key)
public static void setHttpConfig(HttpConfig httpConfig)
Copyright © 2021. All rights reserved.