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 |
http(HttpMethod httpMethod,
String relativePath,
Consumer<SimpleWindwardContext> consumer)
register function with specific method
|
Router |
http(HttpMethod httpMethod,
String relativePath,
Function<EnhancedWindwardContext,?> function)
register function with specific method
|
<R> Router |
http(HttpMethod httpMethod,
String relativePath,
Supplier<R> supplier)
register function with specific 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
|
Router |
ws(String relativePath,
Consumer<WebSocketWindwardContext> consumer)
register websocket function
|
<R> Router http(HttpMethod httpMethod, String relativePath, Supplier<R> supplier)
R - response datahttpMethod - http methodrelativePath - relative pathsupplier - supplierRouter http(HttpMethod httpMethod, String relativePath, Consumer<SimpleWindwardContext> consumer)
httpMethod - http methodrelativePath - relative pathconsumer - function to consumeRouter http(HttpMethod httpMethod, String relativePath, Function<EnhancedWindwardContext,?> function)
httpMethod - method of httprelativePath - relative pathfunction - function to consume<R> Router get(String relativePath, Supplier<R> supplier)
R - response datarelativePath - relative pathsupplier - supplierRouter get(String relativePath, Consumer<SimpleWindwardContext> consumer)
relativePath - relativePathconsumer - function to consumeRouter get(String relativePath, Function<EnhancedWindwardContext,?> function)
relativePath - relative pathfunction - function to consume<R> Router put(String relativePath, Supplier<R> supplier)
R - response datarelativePath - relative pathsupplier - supplierRouter put(String relativePath, Consumer<SimpleWindwardContext> consumer)
relativePath - relative pathconsumer - function to consumeRouter put(String relativePath, Function<EnhancedWindwardContext,?> function)
relativePath - relative pathfunction - function to consume<R> Router post(String relativePath, Supplier<R> supplier)
R - response datarelativePath - relative pathsupplier - supplierRouter post(String relativePath, Consumer<SimpleWindwardContext> consumer)
relativePath - relative pathconsumer - function to consumeRouter post(String relativePath, Function<EnhancedWindwardContext,?> function)
relativePath - relative pathfunction - function to consume<R> Router delete(String relativePath, Supplier<R> supplier)
R - response datarelativePath - relative pathsupplier - supplierRouter delete(String relativePath, Consumer<SimpleWindwardContext> consumer)
relativePath - relative pathconsumer - function to consumeRouter delete(String relativePath, Function<EnhancedWindwardContext,?> function)
relativePath - relative pathfunction - function to consumeRouter ws(String relativePath, Consumer<WebSocketWindwardContext> consumer)
relativePath - relative pathconsumer - function to consumeCopyright © 2023 flmelody. All rights reserved.