Class RequestMappingInfoHandlerMethodMappingNamingStrategy
java.lang.Object
org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMethodMappingNamingStrategy
- All Implemented Interfaces:
HandlerMethodMappingNamingStrategy<RequestMappingInfo>
public class RequestMappingInfoHandlerMethodMappingNamingStrategy
extends Object
implements HandlerMethodMappingNamingStrategy<RequestMappingInfo>
A
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.- Since:
- 4.1
- Author:
- Rossen Stoyanchev
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName
(HandlerMethod handlerMethod, RequestMappingInfo mapping) Determine the name for the given HandlerMethod and mapping.
-
Field Details
-
SEPARATOR
Separator between the type and method-level parts of a HandlerMethod mapping name.- See Also:
-
-
Constructor Details
-
RequestMappingInfoHandlerMethodMappingNamingStrategy
public RequestMappingInfoHandlerMethodMappingNamingStrategy()
-
-
Method Details
-
getName
Description copied from interface:HandlerMethodMappingNamingStrategy
Determine the name for the given HandlerMethod and mapping.- Specified by:
getName
in interfaceHandlerMethodMappingNamingStrategy<RequestMappingInfo>
- Parameters:
handlerMethod
- the handler methodmapping
- the mapping- Returns:
- the name
-