public interface Router
| Modifier and Type | Method and Description |
|---|---|
Router |
delete(String relativePath,
Consumer<SimpleWindwardContext> consumer)
register function with delete method
|
Router |
delete(String relativePath,
Function<EnhancedWindwardContext,?> function)
register function with delete method
|
<R> Router |
delete(String relativePath,
Supplier<R> supplier)
register function with delete method
|
Router |
get(String relativePath,
Consumer<SimpleWindwardContext> consumer)
register function with get method
|
Router |
get(String relativePath,
Function<EnhancedWindwardContext,?> function)
register function with get method
|
<R> Router |
get(String relativePath,
Supplier<R> supplier)
register function with get method
|
Router |
post(String relativePath,
Consumer<SimpleWindwardContext> consumer)
register function with post method
|
Router |
post(String relativePath,
Function<EnhancedWindwardContext,?> function)
register function with post method
|
<R> Router |
post(String relativePath,
Supplier<R> supplier)
register function with post method
|
Router |
put(String relativePath,
Consumer<SimpleWindwardContext> consumer)
register function with put method
|
Router |
put(String relativePath,
Function<EnhancedWindwardContext,?> function)
register function with put method
|
<R> Router |
put(String relativePath,
Supplier<R> supplier)
register function with put method
|
<R> Router get(String relativePath, Supplier<R> supplier)
R - response datarelativePath - relativePathsupplier - supplierRouter get(String relativePath, Consumer<SimpleWindwardContext> consumer)
relativePath - relativePathconsumer - function to consumeRouter get(String relativePath, Function<EnhancedWindwardContext,?> function)
relativePath - relativePathfunction - function to consume<R> Router put(String relativePath, Supplier<R> supplier)
R - response datarelativePath - relativePathsupplier - supplierRouter put(String relativePath, Consumer<SimpleWindwardContext> consumer)
relativePath - relativePathconsumer - function to consumeRouter put(String relativePath, Function<EnhancedWindwardContext,?> function)
relativePath - relativePathfunction - function to consume<R> Router post(String relativePath, Supplier<R> supplier)
R - response datarelativePath - relativePathsupplier - supplierRouter post(String relativePath, Consumer<SimpleWindwardContext> consumer)
relativePath - relativePathconsumer - function to consumeRouter post(String relativePath, Function<EnhancedWindwardContext,?> function)
relativePath - relativePathfunction - function to consume<R> Router delete(String relativePath, Supplier<R> supplier)
R - response datarelativePath - relativePathsupplier - supplierRouter delete(String relativePath, Consumer<SimpleWindwardContext> consumer)
relativePath - relativePathconsumer - function to consumeRouter delete(String relativePath, Function<EnhancedWindwardContext,?> function)
relativePath - relativePathfunction - function to consumeCopyright © 2023 flmelody. All rights reserved.