Uses of Annotation Interface
org.springframework.cloud.gateway.server.mvc.common.Shortcut
Packages that use Shortcut
Package
Description
Package that contains implementations of FilterFunctions.
Package that contains RequestPredicate implementations.
-
Uses of Shortcut in org.springframework.cloud.gateway.server.mvc.filter
Methods in org.springframework.cloud.gateway.server.mvc.filter with annotations of type ShortcutModifier and TypeMethodDescriptionstatic org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.adaptCachedBody()static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.addRequestHeader(String name, String... values) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.addRequestHeadersIfNotPresent(KeyValues keyValues) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.addRequestParameter(String name, String... values) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.addResponseHeader(String name, String... values) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> CircuitBreakerFilterFunctions.circuitBreaker(String id) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> CircuitBreakerFilterFunctions.circuitBreaker(CircuitBreakerFilterFunctions.CircuitBreakerConfig config) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.dedupeResponseHeader(String name) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.dedupeResponseHeader(String name, AfterFilterFunctions.DedupeStrategy strategy) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.fallbackHeaders()static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.mapRequestHeader(String fromHeader, String toHeader) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.prefixPath(String prefix) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.preserveHost()Deprecated, for removal: This API element is subject to removal in a future version.static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.preserveHostHeader()static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.redirectTo(HttpStatusHolder status, URI uri) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.removeRequestHeader(String name) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.removeRequestParameter(String name) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.removeResponseHeader(String name) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.requestHeaderSize(String maxSize) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.requestHeaderToRequestUri(String name) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.requestSize(String maxSize) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> RetryFilterFunctions.retry(int retries) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> RetryFilterFunctions.retry(RetryFilterFunctions.RetryConfig config) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.rewriteLocationResponseHeader(String stripVersion, String locationHeaderName, String hostValue, String protocolsRegex) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.rewritePath(String regexp, String replacement) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.rewriteResponseHeader(String name, String regexp, String replacement) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.setRequestHeader(String name, String value) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.setRequestHostHeader(String host) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.setResponseHeader(String name, String value) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.setStatus(HttpStatusHolder statusCode) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.stripContextPath()static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> FilterFunctions.stripPrefix(int parts) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> TokenRelayFilterFunctions.tokenRelay()static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> TokenRelayFilterFunctions.tokenRelay(@Nullable String defaultClientRegistrationId) static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> -
Uses of Shortcut in org.springframework.cloud.gateway.server.mvc.predicate
Methods in org.springframework.cloud.gateway.server.mvc.predicate with annotations of type ShortcutModifier and TypeMethodDescriptionstatic org.springframework.web.servlet.function.RequestPredicateGatewayRequestPredicates.after(ZonedDateTime dateTime) static org.springframework.web.servlet.function.RequestPredicateGatewayRequestPredicates.before(ZonedDateTime dateTime) static org.springframework.web.servlet.function.RequestPredicateGatewayRequestPredicates.between(ZonedDateTime dateTime1, ZonedDateTime dateTime2) static org.springframework.web.servlet.function.RequestPredicatestatic org.springframework.web.servlet.function.RequestPredicatestatic org.springframework.web.servlet.function.RequestPredicateReturn aRequestPredicatethat tests the request host against the given host patterns.static org.springframework.web.servlet.function.RequestPredicateGatewayRequestPredicates.method(org.springframework.http.HttpMethod... methods) static org.springframework.web.servlet.function.RequestPredicateReturn aRequestPredicatethat tests the request path against the given path pattern.static org.springframework.web.servlet.function.RequestPredicateReturn aRequestPredicatethat tests the presence of a request parameter.static org.springframework.web.servlet.function.RequestPredicateReturn aRequestPredicatethat tests the presence of a request parameter if the regexp is empty, or, otherwise finds if any value of the parameter matches the regexp.static org.springframework.web.servlet.function.RequestPredicateRequestPredicateto match to the request API version extracted from and parsed with the configuredApiVersionStrategy.static org.springframework.web.servlet.function.RequestPredicateA predicate which will select a route based on its assigned weight.