Package org.springdoc.core.fn
Class RouterFunctionData
java.lang.Object
org.springdoc.core.fn.RouterFunctionData
The type Router function data.
- Author:
- bnasslahsen
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Router function data.RouterFunctionData
(String nestedOrPath, RouterFunctionData functionData) Instantiates a new Router function data. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttributes
(Map<String, Object> attributes) Add attributes.void
addConsumes
(String consumes) Add consumes.void
addConsumes
(List<String> consumes) Add consumes.void
addHeaders
(String headers) Add headers.void
Add params.void
addProduces
(String produces) Add produces.void
addProduces
(List<String> produces) Add produces.void
addQueryParams
(String name, String value) Add query params.Gets attributes.String[]
Get consumes string [ ].String[]
Get headers string [ ].org.springframework.web.bind.annotation.RequestMethod[]
Get methods request method [ ].String[]
Get params string [ ].getPath()
Gets path.String[]
Get produces string [ ].Gets query params.void
setMethods
(Set<org.springframework.http.HttpMethod> methods) Sets methods.void
Sets path.
-
Constructor Details
-
RouterFunctionData
public RouterFunctionData()Instantiates a new Router function data. -
RouterFunctionData
Instantiates a new Router function data.- Parameters:
nestedOrPath
- the nested or pathfunctionData
- the function data
-
-
Method Details
-
getPath
Gets path.- Returns:
- the path
-
setPath
Sets path.- Parameters:
path
- the path
-
getQueryParams
Gets query params.- Returns:
- the query params
-
addQueryParams
Add query params.- Parameters:
name
- the namevalue
- the value
-
getHeaders
Get headers string [ ].- Returns:
- the string [ ]
-
addHeaders
Add headers.- Parameters:
headers
- the headers
-
getMethods
public org.springframework.web.bind.annotation.RequestMethod[] getMethods()Get methods request method [ ].- Returns:
- the request method [ ]
-
setMethods
Sets methods.- Parameters:
methods
- the methods
-
getConsumes
Get consumes string [ ].- Returns:
- the string [ ]
-
getParams
Get params string [ ].- Returns:
- the string [ ]
-
addParams
Add params.- Parameters:
params
- the params
-
addConsumes
Add consumes.- Parameters:
consumes
- the consumes
-
addProduces
Add produces.- Parameters:
produces
- the produces
-
addProduces
Add produces.- Parameters:
produces
- the produces
-
addConsumes
Add consumes.- Parameters:
consumes
- the consumes
-
getProduces
Get produces string [ ].- Returns:
- the string [ ]
-
getAttributes
Gets attributes.- Returns:
- the attributes
-
addAttributes
Add attributes.- Parameters:
attributes
- the attributes
-