接口 RequestMappingInfo.Builder
public static interface RequestMappingInfo.Builder
Defines a builder for creating a RequestMappingInfo.- 从以下版本开始:
- 4.2
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 RequestMappingInfobuild()Build the RequestMappingInfo.RequestMappingInfo.Builderconsumes(String... consumes)Set the consumes conditions.RequestMappingInfo.BuildercustomCondition(RequestCondition<?> condition)Set a custom condition to use.RequestMappingInfo.Builderheaders(String... headers)Set the header conditions.RequestMappingInfo.BuildermappingName(String name)Set the mapping name.RequestMappingInfo.Buildermethods(RequestMethod... methods)Set the request method conditions.RequestMappingInfo.Builderoptions(RequestMappingInfo.BuilderConfiguration options)Provide additional configuration needed for request mapping purposes.RequestMappingInfo.Builderparams(String... params)Set the request param conditions.RequestMappingInfo.Builderpaths(String... paths)Set the path patterns.RequestMappingInfo.Builderproduces(String... produces)Set the produces conditions.
方法详细资料
paths
RequestMappingInfo.Builder paths(String... paths)
Set the path patterns.
methods
RequestMappingInfo.Builder methods(RequestMethod... methods)
Set the request method conditions.
params
RequestMappingInfo.Builder params(String... params)
Set the request param conditions.
headers
RequestMappingInfo.Builder headers(String... headers)
Set the header conditions.By default this is not set.
consumes
RequestMappingInfo.Builder consumes(String... consumes)
Set the consumes conditions.
produces
RequestMappingInfo.Builder produces(String... produces)
Set the produces conditions.
mappingName
RequestMappingInfo.Builder mappingName(String name)
Set the mapping name.
customCondition
RequestMappingInfo.Builder customCondition(RequestCondition<?> condition)
Set a custom condition to use.
options
RequestMappingInfo.Builder options(RequestMappingInfo.BuilderConfiguration options)
Provide additional configuration needed for request mapping purposes.
build
RequestMappingInfo build()
Build the RequestMappingInfo.