Package | Description |
---|---|
org.springframework.cloud.gateway.route.builder |
Modifier and Type | Method and Description |
---|---|
GatewayFilterSpec |
GatewayFilterSpec.addRequestHeader(String headerName,
String headerValue)
Adds a request header to the request before it is routed by the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.addRequestParameter(String param,
String value)
Adds a request parameter to the request before it is routed by the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.addResponseHeader(String headerName,
String headerValue)
Adds a header to the response returned to the Gateway from the route.
|
GatewayFilterSpec |
GatewayFilterSpec.RequestRateLimiterSpec.and() |
GatewayFilterSpec |
GatewayFilterSpec.changeRequestUri(Function<org.springframework.web.server.ServerWebExchange,Optional<URI>> determineRequestUri)
A filter which change the URI the request will be routed to by the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.RequestRateLimiterSpec.configure(Consumer<RequestRateLimiterGatewayFilterFactory.Config> configConsumer) |
protected GatewayFilterSpec |
PredicateSpec.createGatewayFilterSpec() |
GatewayFilterSpec |
GatewayFilterSpec.fallbackHeaders(Consumer<FallbackHeadersGatewayFilterFactory.Config> configConsumer)
Adds hystrix execution exception headers to fallback request.
|
GatewayFilterSpec |
GatewayFilterSpec.fallbackHeaders(FallbackHeadersGatewayFilterFactory.Config config)
Adds hystrix execution exception headers to fallback request.
|
GatewayFilterSpec |
GatewayFilterSpec.filter(GatewayFilter gatewayFilter)
Applies the filter to the route.
|
GatewayFilterSpec |
GatewayFilterSpec.filter(GatewayFilter gatewayFilter,
int order)
Applies the filter to the route.
|
GatewayFilterSpec |
GatewayFilterSpec.filters(Collection<GatewayFilter> gatewayFilters)
Applies the list of filters to the route.
|
GatewayFilterSpec |
GatewayFilterSpec.filters(GatewayFilter... gatewayFilters)
Applies the list of filters to the route.
|
GatewayFilterSpec |
GatewayFilterSpec.hystrix(Consumer<HystrixGatewayFilterFactory.Config> configConsumer)
Wraps the route in a Hystrix command.
|
<T,R> GatewayFilterSpec |
GatewayFilterSpec.modifyRequestBody(Class<T> inClass,
Class<R> outClass,
RewriteFunction<T,R> rewriteFunction)
A filter that can be used to modify the request body.
|
<T,R> GatewayFilterSpec |
GatewayFilterSpec.modifyRequestBody(Class<T> inClass,
Class<R> outClass,
String newContentType,
RewriteFunction<T,R> rewriteFunction)
A filter that can be used to modify the request body.
|
<T,R> GatewayFilterSpec |
GatewayFilterSpec.modifyResponseBody(Class<T> inClass,
Class<R> outClass,
RewriteFunction<T,R> rewriteFunction)
A filter that can be used to modify the response body
This filter is BETA and may be subject to change in a future release.
|
<T,R> GatewayFilterSpec |
GatewayFilterSpec.modifyResponseBody(Class<T> inClass,
Class<R> outClass,
String newContentType,
RewriteFunction<T,R> rewriteFunction)
A filter that can be used to modify the response body
This filter is BETA and may be subject to change in a future release.
|
GatewayFilterSpec |
GatewayFilterSpec.prefixPath(String prefix)
A filter that can be used to add a prefix to the path of a request before it is routed by the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.preserveHostHeader()
A filter that will preserve the host header of the request on the outgoing request from the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.redirect(org.springframework.http.HttpStatus status,
URL url)
A filter that will return a redirect response back to the client.
|
GatewayFilterSpec |
GatewayFilterSpec.redirect(int status,
String url)
A filter that will return a redirect response back to the client.
|
GatewayFilterSpec |
GatewayFilterSpec.redirect(int status,
URI url)
A filter that will return a redirect response back to the client.
|
GatewayFilterSpec |
GatewayFilterSpec.redirect(String status,
String url)
A filter that will return a redirect response back to the client.
|
GatewayFilterSpec |
GatewayFilterSpec.redirect(String status,
URI url)
A filter that will return a redirect response back to the client.
|
GatewayFilterSpec |
GatewayFilterSpec.removeRequestHeader(String headerName)
A filter that will remove a request header before the request is routed by the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.removeResponseHeader(String headerName)
A filter that will remove a response header before the Gateway returns the response to the client.
|
GatewayFilterSpec |
GatewayFilterSpec.requestHeaderToRequestUri(String headerName)
A filter which changes the URI the request will be routed to by the Gateway by pulling it from a header on the
request.
|
GatewayFilterSpec |
GatewayFilterSpec.requestRateLimiter(Consumer<RequestRateLimiterGatewayFilterFactory.Config> configConsumer)
A filter that will set up a request rate limiter for a route.
|
GatewayFilterSpec |
GatewayFilterSpec.retry(Consumer<RetryGatewayFilterFactory.RetryConfig> retryConsumer)
A filter that will retry failed requests.
|
GatewayFilterSpec |
GatewayFilterSpec.retry(int retries)
A filter that will retry failed requests.
|
GatewayFilterSpec |
GatewayFilterSpec.retry(reactor.retry.Repeat<org.springframework.web.server.ServerWebExchange> repeat,
reactor.retry.Retry<org.springframework.web.server.ServerWebExchange> retry)
A filter that will retry failed requests.
|
GatewayFilterSpec |
GatewayFilterSpec.rewritePath(String regex,
String replacement)
A filter which rewrites the request path before it is routed by the Gateway
|
GatewayFilterSpec |
GatewayFilterSpec.rewriteResponseHeader(String headerName,
String regex,
String replacement)
A filter that rewrites a header value on the response before it is returned to the client by the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.saveSession()
A filter which forces a
WebSession::save operation before forwarding the call downstream. |
GatewayFilterSpec |
GatewayFilterSpec.secureHeaders()
A filter that adds a number of headers to the response at the reccomendation from
this blog post.
|
GatewayFilterSpec |
GatewayFilterSpec.setPath(String template)
A filter that sets the path of the request before it is routed by the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.setRequestHeader(String headerName,
String headerValue)
A filter that sets a header on the request before it is routed by the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.setRequestSize(Long size)
A filter that sets the maximum permissible size of a Request.
|
GatewayFilterSpec |
GatewayFilterSpec.setResponseHeader(String headerName,
String headerValue)
A filter that sets a header on the response before it is returned to the client by the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.setStatus(org.springframework.http.HttpStatus status)
A filter that sets the status on the response before it is returned to the client by the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.setStatus(int status)
A filter that sets the status on the response before it is returned to the client by the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.setStatus(String status)
A filter that sets the status on the response before it is returned to the client by the Gateway.
|
GatewayFilterSpec |
GatewayFilterSpec.stripPrefix(int parts)
Strips the prefix from the path of the request before it is routed by the Gateway.
|
Modifier and Type | Method and Description |
---|---|
UriSpec |
BooleanSpec.filters(Function<GatewayFilterSpec,UriSpec> fn)
Add filters to the route definition.
|
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.