Top Description Fields Constructors Methods
org.springframework.web.servlet.mvc.method

public Class RequestMappingInfoHandlerMethodMappingNamingStrategy

extends Object
implements HandlerMethodMappingNamingStrategy<RequestMappingInfo>
Class Inheritance
All Implemented Interfaces
org.springframework.web.servlet.handler.HandlerMethodMappingNamingStrategy
Imports
org.springframework.web.method.HandlerMethod, org.springframework.web.servlet.handler.HandlerMethodMappingNamingStrategy

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.
Author
Rossen Stoyanchev
Since
4.1

Field Summary

Modifier and TypeField and Description
public static final String
SEPARATOR

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getName(HandlerMethod
the handler method
handlerMethod
,
RequestMappingInfo
the mapping
mapping
)

Implements org.springframework.web.servlet.handler.HandlerMethodMappingNamingStrategy.getName.

Determine the name for the given HandlerMethod and mapping.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SEPARATORback to summary
public static final String SEPARATOR

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

Constructor Detail

RequestMappingInfoHandlerMethodMappingNamingStrategyback to summary
public RequestMappingInfoHandlerMethodMappingNamingStrategy()

Method Detail

getNameback to summary
public String getName(HandlerMethod handlerMethod, RequestMappingInfo mapping)

Implements org.springframework.web.servlet.handler.HandlerMethodMappingNamingStrategy.getName.

Doc from org.springframework.web.servlet.handler.HandlerMethodMappingNamingStrategy.getName.

Determine the name for the given HandlerMethod and mapping.

Parameters
handlerMethod:HandlerMethod

the handler method

mapping:RequestMappingInfo

the mapping

Returns:String

the name

Annotations
@Override