| 构造器和说明 |
|---|
RequestContextHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
buildServiceChainHeader(org.springframework.http.HttpHeaders headers) |
static void |
clearContextAttributes(org.springframework.web.server.ServerWebExchange exchange) |
static void |
clearCustomContextAttributes(org.springframework.web.server.ServerWebExchange exchange) |
static String |
getCachingBodyString(org.springframework.web.server.ServerWebExchange exchange) |
static <T> T |
getContextAttr(org.springframework.web.server.ServerWebExchange exchange,
String key,
T... defValue) |
static ApiInfo |
getCurrentApi(org.springframework.web.server.ServerWebExchange exchange) |
static BizSystemModule |
getCurrentModule(org.springframework.web.server.ServerWebExchange exchange) |
static String |
getCurrentRequestHitKey(org.springframework.web.server.ServerWebExchange exchange,
boolean isolatingUser) |
static String |
getCurrentRouteName(org.springframework.web.server.ServerWebExchange exchange) |
static String |
getIpAddr(org.springframework.http.server.reactive.ServerHttpRequest request) |
static Locale |
getLocale(org.springframework.http.server.reactive.ServerHttpRequest request) |
static String |
getOriginDomain(org.springframework.http.server.reactive.ServerHttpRequest request) |
static String |
getOriginRequestUri(org.springframework.web.server.ServerWebExchange exchange) |
static String |
getRequestId(org.springframework.web.server.ServerWebExchange exchange) |
static String |
getRequestTenantId(org.springframework.web.server.ServerWebExchange exchange) |
static String |
getTimestamp(org.springframework.web.server.ServerWebExchange exchange) |
static GatewayConstants.UserClientType |
getUserClientType(org.springframework.http.server.reactive.ServerHttpRequest request) |
static boolean |
hasContextAttr(org.springframework.web.server.ServerWebExchange exchange,
String key) |
static boolean |
isBackendCall(org.springframework.web.server.ServerWebExchange exchange) |
static boolean |
isDebugMode(org.springframework.web.server.ServerWebExchange exchange) |
static boolean |
isJsonRequest(org.springframework.http.server.reactive.ServerHttpRequest request) |
static boolean |
isMultipartContent(org.springframework.http.server.reactive.ServerHttpRequest request) |
static boolean |
isServerSendEventRequest(org.springframework.http.server.reactive.ServerHttpRequest request) |
static boolean |
isWebSocketRequest(org.springframework.http.server.reactive.ServerHttpRequest request) |
static String |
resolveRouteName(String uri) |
static URI |
rewriteRouteUri(org.springframework.web.server.ServerWebExchange exchange,
BizSystemModule module,
String rewriteBaseUrl) |
static void |
setContextAttr(org.springframework.web.server.ServerWebExchange exchange,
String key,
Object value) |
static boolean |
withValidatedOAuthToken(org.springframework.http.server.reactive.ServerHttpRequest request) |
static reactor.core.publisher.Mono<Void> |
writeData(org.springframework.web.server.ServerWebExchange exchange,
byte[] data,
int statusCode) |
public static GatewayConstants.UserClientType getUserClientType(org.springframework.http.server.reactive.ServerHttpRequest request)
public static String getOriginRequestUri(org.springframework.web.server.ServerWebExchange exchange)
public static String getOriginDomain(org.springframework.http.server.reactive.ServerHttpRequest request)
public static String getIpAddr(org.springframework.http.server.reactive.ServerHttpRequest request)
public static String getRequestId(org.springframework.web.server.ServerWebExchange exchange)
public static String getCurrentRouteName(org.springframework.web.server.ServerWebExchange exchange)
public static BizSystemModule getCurrentModule(org.springframework.web.server.ServerWebExchange exchange)
public static ApiInfo getCurrentApi(org.springframework.web.server.ServerWebExchange exchange)
public static boolean isWebSocketRequest(org.springframework.http.server.reactive.ServerHttpRequest request)
public static boolean isJsonRequest(org.springframework.http.server.reactive.ServerHttpRequest request)
public static boolean isServerSendEventRequest(org.springframework.http.server.reactive.ServerHttpRequest request)
public static final boolean isMultipartContent(org.springframework.http.server.reactive.ServerHttpRequest request)
public static boolean isBackendCall(org.springframework.web.server.ServerWebExchange exchange)
public static boolean withValidatedOAuthToken(org.springframework.http.server.reactive.ServerHttpRequest request)
public static String getCachingBodyString(org.springframework.web.server.ServerWebExchange exchange)
public static String getCurrentRequestHitKey(org.springframework.web.server.ServerWebExchange exchange, boolean isolatingUser)
public static Locale getLocale(org.springframework.http.server.reactive.ServerHttpRequest request)
public static String getTimestamp(org.springframework.web.server.ServerWebExchange exchange)
public static boolean isDebugMode(org.springframework.web.server.ServerWebExchange exchange)
public static reactor.core.publisher.Mono<Void> writeData(org.springframework.web.server.ServerWebExchange exchange, byte[] data, int statusCode)
public static void clearContextAttributes(org.springframework.web.server.ServerWebExchange exchange)
public static void clearCustomContextAttributes(org.springframework.web.server.ServerWebExchange exchange)
public static void setContextAttr(org.springframework.web.server.ServerWebExchange exchange,
String key,
Object value)
public static <T> T getContextAttr(org.springframework.web.server.ServerWebExchange exchange,
String key,
T... defValue)
public static boolean hasContextAttr(org.springframework.web.server.ServerWebExchange exchange,
String key)
public static URI rewriteRouteUri(org.springframework.web.server.ServerWebExchange exchange, BizSystemModule module, String rewriteBaseUrl)
public static String getRequestTenantId(org.springframework.web.server.ServerWebExchange exchange)
public static String buildServiceChainHeader(org.springframework.http.HttpHeaders headers)
Copyright © 2025. All rights reserved.