public class RequestMappingInfoHandlerMethodMappingNamingStrategy extends 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 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 |
|---|---|
String |
getName(HandlerMethod handlerMethod,
RequestMappingInfo mapping)
Determine the name for the given HandlerMethod and mapping.
|
public static final String SEPARATOR
public RequestMappingInfoHandlerMethodMappingNamingStrategy()
public String getName(HandlerMethod handlerMethod, RequestMappingInfo mapping)
HandlerMethodMappingNamingStrategygetName in interface HandlerMethodMappingNamingStrategy<RequestMappingInfo>handlerMethod - the handler methodmapping - the mapping