public class RequestMappingInfoHandlerMethodMappingNamingStrategy extends java.lang.Object implements HandlerMethodMappingNamingStrategy<RequestMappingInfo>
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.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SEPARATOR
Separator between the type and method-level parts of a HandlerMethod mapping name
|
| Constructor and Description |
|---|
RequestMappingInfoHandlerMethodMappingNamingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName(HandlerMethod handlerMethod,
RequestMappingInfo mapping)
Determine the name for the given HandlerMethod and mapping.
|
public static final java.lang.String SEPARATOR
public RequestMappingInfoHandlerMethodMappingNamingStrategy()
public java.lang.String getName(HandlerMethod handlerMethod, RequestMappingInfo mapping)
HandlerMethodMappingNamingStrategygetName in interface HandlerMethodMappingNamingStrategy<RequestMappingInfo>handlerMethod - the handler methodmapping - the mapping