public class RouterFunctionData extends Object
| Constructor and Description |
|---|
RouterFunctionData()
Instantiates a new Router function data.
|
RouterFunctionData(String nestedOrPath,
RouterFunctionData functionData)
Instantiates a new Router function data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(Map<String,Object> attributes)
Add attributes.
|
void |
addConsumes(List<String> consumes)
Add consumes.
|
void |
addConsumes(String consumes)
Add consumes.
|
void |
addHeaders(String headers)
Add headers.
|
void |
addParams(String params)
Add params.
|
void |
addProduces(List<String> produces)
Add produces.
|
void |
addProduces(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[] |
getParams()
Get params string [ ].
|
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.
|
public RouterFunctionData()
public RouterFunctionData(String nestedOrPath, RouterFunctionData functionData)
nestedOrPath - the nested or pathfunctionData - the function datapublic String getPath()
public void setPath(String path)
path - the pathpublic Map<String,String> getQueryParams()
public void addQueryParams(String name, String value)
name - the namevalue - the valuepublic String[] getHeaders()
public void addHeaders(String headers)
headers - the headerspublic org.springframework.web.bind.annotation.RequestMethod[] getMethods()
public void setMethods(Set<org.springframework.http.HttpMethod> methods)
methods - the methodspublic String[] getConsumes()
public String[] getParams()
public void addParams(String params)
params - the paramspublic void addConsumes(String consumes)
consumes - the consumespublic void addProduces(String produces)
produces - the producespublic void addProduces(List<String> produces)
produces - the producespublic void addConsumes(List<String> consumes)
consumes - the consumespublic String[] getProduces()
Copyright © 2024. All rights reserved.