Package one.xingyi.core.endpoints
Interface IResourceEndpointAcceptor<From>
-
- All Superinterfaces:
java.util.function.Function<ServiceRequest,java.util.Optional<From>>,MethodAndPathDescription
public interface IResourceEndpointAcceptor<From> extends java.util.function.Function<ServiceRequest,java.util.Optional<From>>, MethodAndPathDescription
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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)static IResourceEndpointAcceptor<SuccessfulMatch>apply(java.lang.String method, java.lang.String templatedPath, java.lang.String description)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)static <Req> IResourceEndpointAcceptor<Req>create(java.lang.String method, java.lang.String path, java.util.function.Function<ServiceRequest,Req> reqFn, java.lang.String description)java.lang.Stringmethod()java.lang.StringtemplatedPath()-
Methods inherited from interface one.xingyi.core.endpoints.MethodAndPathDescription
description
-
-
-
-
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)
-
apply
static IResourceEndpointAcceptor<SuccessfulMatch> apply(java.lang.String method, java.lang.String templatedPath, 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)
-
-