Interface IResourceEndpointAcceptor<From>

    • Method Detail

      • apply

        static <From> IResourceEndpointAcceptor<From> apply​(java.lang.String method,
                                                            java.lang.String templatedPath,
                                                            java.util.function.BiFunction<ServiceRequest,​java.lang.String,​From> fromFn,
                                                            java.lang.String description)
      • create

        static <Req> IResourceEndpointAcceptor<Req> create​(java.lang.String method,
                                                           java.lang.String path,
                                                           java.util.function.Function<ServiceRequest,​Req> reqFn,
                                                           java.lang.String description)
      • method

        java.lang.String method()
      • templatedPath

        java.lang.String templatedPath()
      • andIfMatches

        default <T> java.util.function.Function<ServiceRequest,​java.util.concurrent.CompletableFuture<java.util.Optional<T>>> andIfMatches​(java.util.function.Function<From,​java.util.concurrent.CompletableFuture<T>> fn)