Class GatewayRouterFunctionsBuilder

java.lang.Object
org.springframework.cloud.gateway.server.mvc.handler.GatewayRouterFunctionsBuilder
All Implemented Interfaces:
org.springframework.web.servlet.function.RouterFunctions.Builder

public class GatewayRouterFunctionsBuilder extends Object implements org.springframework.web.servlet.function.RouterFunctions.Builder
  • Constructor Summary

    Constructors
    Constructor
    Description
    GatewayRouterFunctionsBuilder(org.springframework.web.servlet.function.RouterFunctions.Builder builder, String routeId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    add(org.springframework.web.servlet.function.RouterFunction<T> routerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse, R extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    after(BiFunction<org.springframework.web.servlet.function.ServerRequest,T,R> responseProcessor)
     
    org.springframework.web.servlet.function.RouterFunctions.Builder
    before(Function<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerRequest> requestProcessor)
     
    org.springframework.web.servlet.function.RouterFunction<org.springframework.web.servlet.function.ServerResponse>
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    DELETE(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    DELETE(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    DELETE(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    DELETE(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse, R extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    filter(org.springframework.web.servlet.function.HandlerFilterFunction<T,R> filterFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    GET(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    GET(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    GET(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    GET(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    HEAD(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    HEAD(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    HEAD(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    HEAD(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    org.springframework.web.servlet.function.RouterFunctions.Builder
    nest(org.springframework.web.servlet.function.RequestPredicate predicate, Consumer<org.springframework.web.servlet.function.RouterFunctions.Builder> builderConsumer)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    nest(org.springframework.web.servlet.function.RequestPredicate predicate, Supplier<org.springframework.web.servlet.function.RouterFunction<T>> routerFunctionSupplier)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    onError(Class<? extends Throwable> exceptionType, BiFunction<Throwable,org.springframework.web.servlet.function.ServerRequest,T> responseProvider)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    onError(Predicate<Throwable> predicate, BiFunction<Throwable,org.springframework.web.servlet.function.ServerRequest,T> responseProvider)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    OPTIONS(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    OPTIONS(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    OPTIONS(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    OPTIONS(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    PATCH(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    PATCH(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    PATCH(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    PATCH(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    org.springframework.web.servlet.function.RouterFunctions.Builder
    path(String pattern, Consumer<org.springframework.web.servlet.function.RouterFunctions.Builder> builderConsumer)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    path(String pattern, Supplier<org.springframework.web.servlet.function.RouterFunction<T>> routerFunctionSupplier)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    POST(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    POST(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    POST(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    POST(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    PUT(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    PUT(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    PUT(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    PUT(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    org.springframework.web.servlet.function.RouterFunctions.Builder
    resource(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.core.io.Resource resource)
     
    org.springframework.web.servlet.function.RouterFunctions.Builder
    resource(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.core.io.Resource resource, BiConsumer<org.springframework.core.io.Resource,org.springframework.http.HttpHeaders> headersConsumer)
     
    org.springframework.web.servlet.function.RouterFunctions.Builder
    resources(String pattern, org.springframework.core.io.Resource location)
     
    org.springframework.web.servlet.function.RouterFunctions.Builder
    resources(String pattern, org.springframework.core.io.Resource location, BiConsumer<org.springframework.core.io.Resource,org.springframework.http.HttpHeaders> headersConsumer)
     
    org.springframework.web.servlet.function.RouterFunctions.Builder
    resources(Function<org.springframework.web.servlet.function.ServerRequest,Optional<org.springframework.core.io.Resource>> lookupFunction)
     
    org.springframework.web.servlet.function.RouterFunctions.Builder
    resources(Function<org.springframework.web.servlet.function.ServerRequest,Optional<org.springframework.core.io.Resource>> lookupFunction, BiConsumer<org.springframework.core.io.Resource,org.springframework.http.HttpHeaders> headersConsumer)
     
    <T extends org.springframework.web.servlet.function.ServerResponse>
    org.springframework.web.servlet.function.RouterFunctions.Builder
    route(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
     
    org.springframework.web.servlet.function.RouterFunctions.Builder
    withAttribute(String name, Object value)
     
    org.springframework.web.servlet.function.RouterFunctions.Builder
    withAttributes(Consumer<Map<String,Object>> attributesConsumer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GatewayRouterFunctionsBuilder

      public GatewayRouterFunctionsBuilder(org.springframework.web.servlet.function.RouterFunctions.Builder builder, String routeId)
  • Method Details

    • build

      public org.springframework.web.servlet.function.RouterFunction<org.springframework.web.servlet.function.ServerResponse> build()
      Specified by:
      build in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • GET

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder GET(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      GET in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • GET

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder GET(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      GET in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • GET

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder GET(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      GET in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • GET

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder GET(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      GET in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • HEAD

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder HEAD(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      HEAD in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • HEAD

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder HEAD(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      HEAD in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • HEAD

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder HEAD(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      HEAD in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • HEAD

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder HEAD(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      HEAD in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • POST

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder POST(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      POST in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • POST

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder POST(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      POST in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • POST

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder POST(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      POST in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • POST

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder POST(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      POST in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • PUT

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder PUT(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      PUT in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • PUT

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder PUT(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      PUT in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • PUT

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder PUT(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      PUT in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • PUT

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder PUT(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      PUT in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • PATCH

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder PATCH(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      PATCH in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • PATCH

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder PATCH(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      PATCH in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • PATCH

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder PATCH(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      PATCH in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • PATCH

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder PATCH(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      PATCH in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • DELETE

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder DELETE(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      DELETE in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • DELETE

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder DELETE(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      DELETE in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • DELETE

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder DELETE(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      DELETE in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • DELETE

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder DELETE(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      DELETE in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • OPTIONS

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder OPTIONS(org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      OPTIONS in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • OPTIONS

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder OPTIONS(String pattern, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      OPTIONS in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • OPTIONS

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder OPTIONS(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      OPTIONS in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • OPTIONS

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder OPTIONS(String pattern, org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      OPTIONS in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • route

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder route(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.web.servlet.function.HandlerFunction<T> handlerFunction)
      Specified by:
      route in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • add

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder add(org.springframework.web.servlet.function.RouterFunction<T> routerFunction)
      Specified by:
      add in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • resource

      public org.springframework.web.servlet.function.RouterFunctions.Builder resource(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.core.io.Resource resource)
      Specified by:
      resource in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • resource

      public org.springframework.web.servlet.function.RouterFunctions.Builder resource(org.springframework.web.servlet.function.RequestPredicate predicate, org.springframework.core.io.Resource resource, BiConsumer<org.springframework.core.io.Resource,org.springframework.http.HttpHeaders> headersConsumer)
      Specified by:
      resource in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • resources

      public org.springframework.web.servlet.function.RouterFunctions.Builder resources(String pattern, org.springframework.core.io.Resource location)
      Specified by:
      resources in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • resources

      public org.springframework.web.servlet.function.RouterFunctions.Builder resources(Function<org.springframework.web.servlet.function.ServerRequest,Optional<org.springframework.core.io.Resource>> lookupFunction)
      Specified by:
      resources in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • resources

      public org.springframework.web.servlet.function.RouterFunctions.Builder resources(String pattern, org.springframework.core.io.Resource location, BiConsumer<org.springframework.core.io.Resource,org.springframework.http.HttpHeaders> headersConsumer)
      Specified by:
      resources in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • resources

      public org.springframework.web.servlet.function.RouterFunctions.Builder resources(Function<org.springframework.web.servlet.function.ServerRequest,Optional<org.springframework.core.io.Resource>> lookupFunction, BiConsumer<org.springframework.core.io.Resource,org.springframework.http.HttpHeaders> headersConsumer)
      Specified by:
      resources in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • nest

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder nest(org.springframework.web.servlet.function.RequestPredicate predicate, Supplier<org.springframework.web.servlet.function.RouterFunction<T>> routerFunctionSupplier)
      Specified by:
      nest in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • nest

      public org.springframework.web.servlet.function.RouterFunctions.Builder nest(org.springframework.web.servlet.function.RequestPredicate predicate, Consumer<org.springframework.web.servlet.function.RouterFunctions.Builder> builderConsumer)
      Specified by:
      nest in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • path

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder path(String pattern, Supplier<org.springframework.web.servlet.function.RouterFunction<T>> routerFunctionSupplier)
      Specified by:
      path in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • path

      public org.springframework.web.servlet.function.RouterFunctions.Builder path(String pattern, Consumer<org.springframework.web.servlet.function.RouterFunctions.Builder> builderConsumer)
      Specified by:
      path in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • filter

      public <T extends org.springframework.web.servlet.function.ServerResponse, R extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder filter(org.springframework.web.servlet.function.HandlerFilterFunction<T,R> filterFunction)
      Specified by:
      filter in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • before

      public org.springframework.web.servlet.function.RouterFunctions.Builder before(Function<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerRequest> requestProcessor)
      Specified by:
      before in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • after

      public <T extends org.springframework.web.servlet.function.ServerResponse, R extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder after(BiFunction<org.springframework.web.servlet.function.ServerRequest,T,R> responseProcessor)
      Specified by:
      after in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • onError

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder onError(Predicate<Throwable> predicate, BiFunction<Throwable,org.springframework.web.servlet.function.ServerRequest,T> responseProvider)
      Specified by:
      onError in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • onError

      public <T extends org.springframework.web.servlet.function.ServerResponse> org.springframework.web.servlet.function.RouterFunctions.Builder onError(Class<? extends Throwable> exceptionType, BiFunction<Throwable,org.springframework.web.servlet.function.ServerRequest,T> responseProvider)
      Specified by:
      onError in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • withAttribute

      public org.springframework.web.servlet.function.RouterFunctions.Builder withAttribute(String name, Object value)
      Specified by:
      withAttribute in interface org.springframework.web.servlet.function.RouterFunctions.Builder
    • withAttributes

      public org.springframework.web.servlet.function.RouterFunctions.Builder withAttributes(Consumer<Map<String,Object>> attributesConsumer)
      Specified by:
      withAttributes in interface org.springframework.web.servlet.function.RouterFunctions.Builder