public abstract class AbstractRouterGroup extends Object implements RouterGroup
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRouterGroup() |
protected |
AbstractRouterGroup(String groupPath) |
| 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
|
<R> R |
matchRouter(String relativePath,
String method)
find out matched router function
|
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
|
protected void |
setGroupPath(String groupPath) |
protected AbstractRouterGroup()
protected AbstractRouterGroup(String groupPath)
protected void setGroupPath(String groupPath)
public <R> Router get(String relativePath, Supplier<R> supplier)
Routerpublic Router get(String relativePath, Consumer<SimpleWindwardContext> consumer)
Routerpublic Router get(String relativePath, Function<EnhancedWindwardContext,?> function)
Routerpublic <R> Router put(String relativePath, Supplier<R> supplier)
Routerpublic Router put(String relativePath, Consumer<SimpleWindwardContext> consumer)
Routerpublic Router put(String relativePath, Function<EnhancedWindwardContext,?> function)
Routerpublic <R> Router post(String relativePath, Supplier<R> supplier)
Routerpublic Router post(String relativePath, Consumer<SimpleWindwardContext> consumer)
Routerpublic Router post(String relativePath, Function<EnhancedWindwardContext,?> function)
Routerpublic <R> Router delete(String relativePath, Supplier<R> supplier)
Routerpublic Router delete(String relativePath, Consumer<SimpleWindwardContext> consumer)
Routerpublic Router delete(String relativePath, Function<EnhancedWindwardContext,?> function)
Routerpublic <R> R matchRouter(String relativePath, String method)
RouterGroupmatchRouter in interface RouterGroupR - router typerelativePath - relativePathmethod - methodCopyright © 2023 flmelody. All rights reserved.