public class RouterFunctionData extends Object
| Constructor and Description |
|---|
RouterFunctionData() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsumes(String consumes)
Add consumes.
|
void |
addHeaders(String headers)
Add headers.
|
void |
addProduces(String produces)
Add produces.
|
void |
addQueryParams(String name,
String value)
Add query params.
|
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.
|
public 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 void addConsumes(String consumes)
consumes - the consumespublic void addProduces(String produces)
produces - the producespublic String[] getProduces()
Copyright © 2020. All rights reserved.