public final class ServerWebExchangeUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_RESPONSE_ATTR
Client response attribute name.
|
static String |
CLIENT_RESPONSE_CONN_ATTR
Client response connection attribute name.
|
static String |
CLIENT_RESPONSE_HEADER_NAMES
Client response header names attribute name.
|
static String |
GATEWAY_ALREADY_PREFIXED_ATTR
Gateway already prefixed attribute name.
|
static String |
GATEWAY_ALREADY_ROUTED_ATTR
Used when a routing filter has been successfully called.
|
static String |
GATEWAY_HANDLER_MAPPER_ATTR
Gateway handler mapper attribute name.
|
static String |
GATEWAY_ORIGINAL_REQUEST_URL_ATTR
Gateway original request URL attribute name.
|
static String |
GATEWAY_PREDICATE_ROUTE_ATTR
Gateway predicate route attribute name.
|
static String |
GATEWAY_REQUEST_URL_ATTR
Gateway request URL attribute name.
|
static String |
GATEWAY_ROUTE_ATTR
Gateway route attribute name.
|
static String |
GATEWAY_SCHEME_PREFIX_ATTR
Gateway scheme prefix attribute name.
|
static String |
HYSTRIX_EXECUTION_EXCEPTION_ATTR
Hystrix execution exception attribute name.
|
static String |
ORIGINAL_RESPONSE_CONTENT_TYPE_ATTR
Original response Content-Type attribute name.
|
static String |
PRESERVE_HOST_HEADER_ATTRIBUTE
Preserve-Host header attribute name.
|
static String |
URI_TEMPLATE_VARIABLES_ATTRIBUTE
URI template variables attribute name.
|
static String |
WEIGHT_ATTR
Weight attribute name.
|
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.