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 TypeMethodDescriptionvoidaddAttributes(Map<String, Object> attributes) Add attributes.voidaddConsumes(String consumes) Add consumes.voidaddConsumes(List<String> consumes) Add consumes.voidaddHeaders(String headers) Add headers.voidAdd params.voidaddProduces(String produces) Add produces.voidaddProduces(List<String> produces) Add produces.voidaddQueryParams(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.voidsetMethods(Set<org.springframework.http.HttpMethod> methods) Sets methods.voidSets 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
-