public class HandlerMethodResolver extends Object
@RequestMapping, @InitBinder,
@ModelAttribute and @SessionAttributes.
Used by AnnotationMethodHandlerAdapter
and AnnotationMethodHandlerAdapter.
RequestMapping,
InitBinder,
ModelAttribute,
SessionAttributes| Constructor and Description |
|---|
HandlerMethodResolver() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getActualSessionAttributeNames() |
Set<Method> |
getHandlerMethods() |
Set<Method> |
getInitBinderMethods() |
Set<Method> |
getModelAttributeMethods() |
RequestMapping |
getTypeLevelMapping() |
boolean |
hasHandlerMethods() |
boolean |
hasSessionAttributes() |
boolean |
hasTypeLevelMapping() |
void |
init(Class<?> handlerType)
Initialize a new HandlerMethodResolver for the specified handler type.
|
protected boolean |
isHandlerMethod(Method method) |
protected boolean |
isInitBinderMethod(Method method) |
protected boolean |
isModelAttributeMethod(Method method) |
boolean |
isSessionAttribute(String attrName,
Class<?> attrType) |
public void init(Class<?> handlerType)
handlerType - the handler class to introspectprotected boolean isHandlerMethod(Method method)
protected boolean isInitBinderMethod(Method method)
protected boolean isModelAttributeMethod(Method method)
public final boolean hasHandlerMethods()
public boolean hasTypeLevelMapping()
public RequestMapping getTypeLevelMapping()
public boolean hasSessionAttributes()