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