public class ServerWebExchangeUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_RESPONSE_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_REQUEST_URL_ATTR |
static String |
GATEWAY_ROUTE_ATTR |
static String |
GATEWAY_SCHEME_PREFIX_ATTR |
static String |
PRESERVE_HOST_HEADER_ATTRIBUTE |
static String |
URI_TEMPLATE_VARIABLES_ATTRIBUTE |
Constructor and Description |
---|
ServerWebExchangeUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addOriginalRequestUrl(org.springframework.web.server.ServerWebExchange exchange,
URI url) |
static boolean |
containsEncodedQuery(URI uri) |
static boolean |
isAlreadyRouted(org.springframework.web.server.ServerWebExchange exchange) |
static org.springframework.http.HttpStatus |
parse(String statusString) |
static void |
setAlreadyRouted(org.springframework.web.server.ServerWebExchange exchange) |
static boolean |
setResponseStatus(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.http.HttpStatus httpStatus) |
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 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_ALREADY_ROUTED_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 containsEncodedQuery(URI uri)
public static org.springframework.http.HttpStatus parse(String statusString)
public static void addOriginalRequestUrl(org.springframework.web.server.ServerWebExchange exchange, URI url)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.