public class AbstractRouterFunctionVisitor extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
attributes
The Attributes.
|
protected List<RouterFunctionData> |
currentRouterFunctionDatas
The Router function data.
|
protected boolean |
isOr
The Is or.
|
protected Map<Integer,List<String>> |
nestedPaths
The Nested and paths.
|
protected List<String> |
orPaths
The Nested or paths.
|
protected List<RouterFunctionData> |
routerFunctionDatas
The Router function datas.
|
Constructor and Description |
---|
AbstractRouterFunctionVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
and()
And.
|
void |
attributes(Map<String,Object> map)
Attributes.
|
protected void |
commonEndNested()
Compute nested.
|
protected void |
commonRoute()
Common route.
|
protected void |
commonStartNested()
Common start nested.
|
void |
endAnd()
End and.
|
void |
endNegate()
End negate.
|
void |
endOr()
End or.
|
List<RouterFunctionData> |
getRouterFunctionDatas()
Gets router function datas.
|
void |
header(String name,
String value)
Header.
|
void |
method(Set<org.springframework.http.HttpMethod> methods)
Method.
|
void |
or()
Or.
|
void |
param(String name,
String value)
Param.
|
void |
path(String pattern)
Path.
|
void |
pathExtension(String extension)
Path extension.
|
void |
queryParam(String name,
String value)
Query param.
|
void |
startAnd()
Start and.
|
void |
startNegate()
Start negate.
|
void |
startOr()
Start or.
|
protected List<RouterFunctionData> routerFunctionDatas
protected boolean isOr
protected List<RouterFunctionData> currentRouterFunctionDatas
public void method(Set<org.springframework.http.HttpMethod> methods)
methods
- the methodspublic void path(String pattern)
pattern
- the patternpublic void header(String name, String value)
name
- the namevalue
- the valuepublic List<RouterFunctionData> getRouterFunctionDatas()
public void queryParam(String name, String value)
name
- the namevalue
- the valuepublic void pathExtension(String extension)
extension
- the extensionpublic void param(String name, String value)
name
- the namevalue
- the valuepublic void startAnd()
public void and()
public void endAnd()
public void startOr()
public void or()
public void endOr()
public void startNegate()
public void endNegate()
protected void commonEndNested()
protected void commonStartNested()
protected void commonRoute()
Copyright © 2024. All rights reserved.