spring-framework / org.springframework.web.servlet.mvc.method / RequestMappingInfoHandlerMethodMappingNamingStrategy

RequestMappingInfoHandlerMethodMappingNamingStrategy

open class RequestMappingInfoHandlerMethodMappingNamingStrategy : HandlerMethodMappingNamingStrategy<RequestMappingInfo>

A org.springframework.web.servlet.handler.HandlerMethodMappingNamingStrategy for RequestMappingInfo-based handler method mappings. If the RequestMappingInfo name attribute is set, its value is used. Otherwise the name is based on the capital letters of the class name, followed by "#" as a separator, and the method name. For example "TC#getFoo" for a class named TestController with method getFoo.

Author
Rossen Stoyanchev

Since
4.1

Constructors

<init>

RequestMappingInfoHandlerMethodMappingNamingStrategy()

A org.springframework.web.servlet.handler.HandlerMethodMappingNamingStrategy for RequestMappingInfo-based handler method mappings. If the RequestMappingInfo name attribute is set, its value is used. Otherwise the name is based on the capital letters of the class name, followed by "#" as a separator, and the method name. For example "TC#getFoo" for a class named TestController with method getFoo.

Properties

SEPARATOR

static val SEPARATOR: String

Separator between the type and method-level parts of a HandlerMethod mapping name

Functions

getName

open fun getName(handlerMethod: HandlerMethod, mapping: RequestMappingInfo): String