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

    Modifier and Type
    Method
    Description
    static 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>
     
    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>
     
    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>
    FilterFunctions.routeId(String routeId)
     
    static org.springframework.web.servlet.function.HandlerFilterFunction<org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse>
    FilterFunctions.setPath(String path)
     
    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>
    FilterFunctions.uri(URI uri)
     
  • Uses of Shortcut in org.springframework.cloud.gateway.server.mvc.predicate

    Modifier and Type
    Method
    Description
    static org.springframework.web.servlet.function.RequestPredicate
    GatewayRequestPredicates.after(ZonedDateTime dateTime)
     
    static org.springframework.web.servlet.function.RequestPredicate
    GatewayRequestPredicates.before(ZonedDateTime dateTime)
     
    static org.springframework.web.servlet.function.RequestPredicate
    GatewayRequestPredicates.between(ZonedDateTime dateTime1, ZonedDateTime dateTime2)
     
    static org.springframework.web.servlet.function.RequestPredicate
    GatewayRequestPredicates.cookie(String name, @Nullable String regexp)
     
    static org.springframework.web.servlet.function.RequestPredicate
    GatewayRequestPredicates.header(String header, @Nullable String regexp)
     
    static org.springframework.web.servlet.function.RequestPredicate
    GatewayRequestPredicates.host(String... patterns)
    Return a RequestPredicate that tests the request host against the given host patterns.
    static org.springframework.web.servlet.function.RequestPredicate
    GatewayRequestPredicates.method(org.springframework.http.HttpMethod... methods)
     
    static org.springframework.web.servlet.function.RequestPredicate
    GatewayRequestPredicates.path(String... patterns)
    Return a RequestPredicate that tests the request path against the given path pattern.
    static org.springframework.web.servlet.function.RequestPredicate
    GatewayRequestPredicates.query(String param)
    Return a RequestPredicate that tests the presence of a request parameter.
    static org.springframework.web.servlet.function.RequestPredicate
    GatewayRequestPredicates.query(String param, @Nullable String regexp)
    Return a RequestPredicate that 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.RequestPredicate
    GatewayRequestPredicates.version(String version)
    RequestPredicate to match to the request API version extracted from and parsed with the configured ApiVersionStrategy.
    static org.springframework.web.servlet.function.RequestPredicate
    GatewayRequestPredicates.weight(String group, int weight)
    A predicate which will select a route based on its assigned weight.