org.springframework.web.bind.annotation.support
Class HandlerMethodResolver
java.lang.Object
org.springframework.web.bind.annotation.support.HandlerMethodResolver
public class HandlerMethodResolver
- extends Object
Support class for resolving web method annotations in a handler type.
Processes @RequestMapping
, @InitBinder
,
@ModelAttribute
and @SessionAttributes
.
Used by AnnotationMethodHandlerAdapter
and AnnotationMethodHandlerAdapter
.
- Since:
- 2.5.2
- Author:
- Juergen Hoeller
- See Also:
RequestMapping
,
InitBinder
,
ModelAttribute
,
SessionAttributes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HandlerMethodResolver
public HandlerMethodResolver()
init
public void init(Class<?> handlerType)
- Initialize a new HandlerMethodResolver for the specified handler type.
- Parameters:
handlerType
- the handler class to introspect
isHandlerMethod
protected boolean isHandlerMethod(Method method)
isInitBinderMethod
protected boolean isInitBinderMethod(Method method)
isModelAttributeMethod
protected boolean isModelAttributeMethod(Method method)
hasHandlerMethods
public final boolean hasHandlerMethods()
getHandlerMethods
public final Set<Method> getHandlerMethods()
getInitBinderMethods
public final Set<Method> getInitBinderMethods()
getModelAttributeMethods
public final Set<Method> getModelAttributeMethods()
hasTypeLevelMapping
public boolean hasTypeLevelMapping()
getTypeLevelMapping
public RequestMapping getTypeLevelMapping()
hasSessionAttributes
public boolean hasSessionAttributes()
isSessionAttribute
public boolean isSessionAttribute(String attrName,
Class attrType)
getActualSessionAttributeNames
public Set<String> getActualSessionAttributeNames()