Package org.springdoc.core.fn
Class AbstractRouterFunctionVisitor
- java.lang.Object
-
- org.springdoc.core.fn.AbstractRouterFunctionVisitor
-
public class AbstractRouterFunctionVisitor extends Object
The type Abstract router function visitor.- Author:
- bnasslahsen
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>attributesThe Attributes.protected List<RouterFunctionData>currentRouterFunctionDatasThe Router function data.protected booleanisOrThe Is or.protected Map<Integer,List<String>>nestedPathsThe Nested and paths.protected List<String>orPathsThe Nested or paths.protected List<RouterFunctionData>routerFunctionDatasThe Router function datas.
-
Constructor Summary
Constructors Constructor Description AbstractRouterFunctionVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidand()And.voidattributes(Map<String,Object> map)Attributes.protected voidcommonEndNested()Compute nested.protected voidcommonRoute()Common route.protected voidcommonStartNested()Common start nested.voidendAnd()End and.voidendNegate()End negate.voidendOr()End or.List<RouterFunctionData>getRouterFunctionDatas()Gets router function datas.voidheader(String name, String value)Header.voidmethod(Set<org.springframework.http.HttpMethod> methods)Method.voidor()Or.voidparam(String name, String value)Param.voidpath(String pattern)Path.voidpathExtension(String extension)Path extension.voidqueryParam(String name, String value)Query param.voidstartAnd()Start and.voidstartNegate()Start negate.voidstartOr()Start or.
-
-
-
Field Detail
-
routerFunctionDatas
protected List<RouterFunctionData> routerFunctionDatas
The Router function datas.
-
isOr
protected boolean isOr
The Is or.
-
currentRouterFunctionDatas
protected List<RouterFunctionData> currentRouterFunctionDatas
The Router function data.
-
-
Method Detail
-
method
public void method(Set<org.springframework.http.HttpMethod> methods)
Method.- Parameters:
methods- the methods
-
path
public void path(String pattern)
Path.- Parameters:
pattern- the pattern
-
header
public void header(String name, String value)
Header.- Parameters:
name- the namevalue- the value
-
getRouterFunctionDatas
public List<RouterFunctionData> getRouterFunctionDatas()
Gets router function datas.- Returns:
- the router function datas
-
queryParam
public void queryParam(String name, String value)
Query param.- Parameters:
name- the namevalue- the value
-
pathExtension
public void pathExtension(String extension)
Path extension.- Parameters:
extension- the extension
-
param
public void param(String name, String value)
Param.- Parameters:
name- the namevalue- the value
-
startAnd
public void startAnd()
Start and.
-
and
public void and()
And.
-
endAnd
public void endAnd()
End and.
-
startOr
public void startOr()
Start or.
-
or
public void or()
Or.
-
endOr
public void endOr()
End or.
-
startNegate
public void startNegate()
Start negate.
-
endNegate
public void endNegate()
End negate.
-
commonEndNested
protected void commonEndNested()
Compute nested.
-
commonStartNested
protected void commonStartNested()
Common start nested.
-
commonRoute
protected void commonRoute()
Common route.
-
-