public class ServerWebExchangeUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_RESPONSE_ATTR |
static String |
CLIENT_RESPONSE_CONN_ATTR |
static String |
CLIENT_RESPONSE_HEADER_NAMES |
static String |
GATEWAY_ALREADY_PREFIXED_ATTR |
static String |
GATEWAY_ALREADY_ROUTED_ATTR
Used when a routing filter has been successfully call.
|
static String |
GATEWAY_HANDLER_MAPPER_ATTR |
static String |
GATEWAY_ORIGINAL_REQUEST_URL_ATTR |
static String |
GATEWAY_PREDICATE_ROUTE_ATTR |
static String |
GATEWAY_REQUEST_URL_ATTR |
static String |
GATEWAY_ROUTE_ATTR |
static String |
GATEWAY_SCHEME_PREFIX_ATTR |
static String |
HYSTRIX_EXECUTION_EXCEPTION_ATTR |
static String |
ORIGINAL_RESPONSE_CONTENT_TYPE_ATTR |
static String |
PRESERVE_HOST_HEADER_ATTRIBUTE |
static String |
URI_TEMPLATE_VARIABLES_ATTRIBUTE |
static String |
WEIGHT_ATTR |
Constructor and Description |
---|
ServerWebExchangeUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addOriginalRequestUrl(org.springframework.web.server.ServerWebExchange exchange,
URI url) |
static boolean |
containsEncodedParts(URI uri) |
static Map<String,String> |
getUriTemplateVariables(org.springframework.web.server.ServerWebExchange exchange) |
static boolean |
isAlreadyRouted(org.springframework.web.server.ServerWebExchange exchange) |
static org.springframework.http.HttpStatus |
parse(String statusString) |
static void |
putUriTemplateVariables(org.springframework.web.server.ServerWebExchange exchange,
Map<String,String> uriVariables) |
static void |
setAlreadyRouted(org.springframework.web.server.ServerWebExchange exchange) |
static boolean |
setResponseStatus(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.http.HttpStatus httpStatus) |
static boolean |
setResponseStatus(org.springframework.web.server.ServerWebExchange exchange,
HttpStatusHolder statusHolder) |
static AsyncPredicate<org.springframework.web.server.ServerWebExchange> |
toAsyncPredicate(Predicate<? super org.springframework.web.server.ServerWebExchange> predicate) |
public static final String PRESERVE_HOST_HEADER_ATTRIBUTE
public static final String URI_TEMPLATE_VARIABLES_ATTRIBUTE
public static final String CLIENT_RESPONSE_ATTR
public static final String CLIENT_RESPONSE_CONN_ATTR
public static final String CLIENT_RESPONSE_HEADER_NAMES
public static final String GATEWAY_ROUTE_ATTR
public static final String GATEWAY_REQUEST_URL_ATTR
public static final String GATEWAY_ORIGINAL_REQUEST_URL_ATTR
public static final String GATEWAY_HANDLER_MAPPER_ATTR
public static final String GATEWAY_SCHEME_PREFIX_ATTR
public static final String GATEWAY_PREDICATE_ROUTE_ATTR
public static final String WEIGHT_ATTR
public static final String ORIGINAL_RESPONSE_CONTENT_TYPE_ATTR
public static final String HYSTRIX_EXECUTION_EXCEPTION_ATTR
public static final String GATEWAY_ALREADY_ROUTED_ATTR
public static final String GATEWAY_ALREADY_PREFIXED_ATTR
public static void setAlreadyRouted(org.springframework.web.server.ServerWebExchange exchange)
public static boolean isAlreadyRouted(org.springframework.web.server.ServerWebExchange exchange)
public static boolean setResponseStatus(org.springframework.web.server.ServerWebExchange exchange, org.springframework.http.HttpStatus httpStatus)
public static boolean setResponseStatus(org.springframework.web.server.ServerWebExchange exchange, HttpStatusHolder statusHolder)
public static boolean containsEncodedParts(URI uri)
public static org.springframework.http.HttpStatus parse(String statusString)
public static void addOriginalRequestUrl(org.springframework.web.server.ServerWebExchange exchange, URI url)
public static AsyncPredicate<org.springframework.web.server.ServerWebExchange> toAsyncPredicate(Predicate<? super org.springframework.web.server.ServerWebExchange> predicate)
public static void putUriTemplateVariables(org.springframework.web.server.ServerWebExchange exchange, Map<String,String> uriVariables)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.