Interface RequestMappingInfo.Builder
- Enclosing class:
- RequestMappingInfo
public static interface RequestMappingInfo.Builder
Defines a builder for creating a RequestMappingInfo.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the RequestMappingInfo.Set the consumes conditions.customCondition
(RequestCondition<?> condition) Set a custom condition to use.Set the header conditions.mappingName
(String name) Set the mapping name.methods
(RequestMethod... methods) Set the request method conditions.Provide additional configuration needed for request mapping purposes.Set the request param conditions.Set the path patterns.Set the produces conditions.
-
Method Details
-
paths
Set the path patterns. -
methods
Set the request method conditions. -
params
Set the request param conditions. -
headers
Set the header conditions.By default this is not set.
-
consumes
Set the consumes conditions. -
produces
Set the produces conditions. -
mappingName
Set the mapping name. -
customCondition
Set a custom condition to use. -
options
Provide additional configuration needed for request mapping purposes. -
build
RequestMappingInfo build()Build the RequestMappingInfo.
-