Package | Description |
---|---|
org.springframework.web.bind.support |
Support classes for web data binding.
|
org.springframework.web.method.annotation |
Support classes for annotation-based handler method processing.
|
org.springframework.web.method.support |
Generic support classes for handler method processing.
|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultDataBinderFactory
Create a
WebRequestDataBinder instance and initialize it with a
WebBindingInitializer . |
Modifier and Type | Class and Description |
---|---|
class |
InitBinderDataBinderFactory
Adds initialization to a WebDataBinder via
@InitBinder methods. |
Modifier and Type | Method and Description |
---|---|
protected Object |
ModelAttributeMethodProcessor.constructAttribute(Constructor<?> ctor,
String attributeName,
MethodParameter parameter,
WebDataBinderFactory binderFactory,
NativeWebRequest webRequest)
Construct a new attribute instance with the given constructor.
|
protected Object |
ModelAttributeMethodProcessor.constructAttribute(Constructor<?> ctor,
String attributeName,
WebDataBinderFactory binderFactory,
NativeWebRequest webRequest)
Deprecated.
|
protected Object |
ModelAttributeMethodProcessor.createAttribute(String attributeName,
MethodParameter parameter,
WebDataBinderFactory binderFactory,
NativeWebRequest webRequest)
Extension point to create the model attribute if not found in the model,
with subsequent parameter binding through bean properties (unless suppressed).
|
Object |
ModelAttributeMethodProcessor.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Resolve the argument from the model or if not found instantiate it with
its default if it is available.
|
Object |
ModelMethodProcessor.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
SessionStatusMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
AbstractNamedValueMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
RequestHeaderMapMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
AbstractWebArgumentResolverAdapter.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Delegate to the
WebArgumentResolver instance. |
Object |
MapMethodProcessor.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
ErrorsMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
RequestParamMapMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Constructor and Description |
---|
ModelFactory(List<InvocableHandlerMethod> handlerMethods,
WebDataBinderFactory binderFactory,
SessionAttributesHandler attributeHandler)
Create a new instance with the given
@ModelAttribute methods. |
Modifier and Type | Method and Description |
---|---|
Object |
HandlerMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Resolves a method parameter into an argument value from a given request.
|
Object |
HandlerMethodArgumentResolverComposite.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Iterate over registered
HandlerMethodArgumentResolvers
and invoke the one that supports it. |
void |
InvocableHandlerMethod.setDataBinderFactory(WebDataBinderFactory dataBinderFactory)
Set the
WebDataBinderFactory to be passed to argument resolvers allowing them
to create a WebDataBinder for data binding and type conversion purposes. |
Modifier and Type | Class and Description |
---|---|
class |
ServletRequestDataBinderFactory
Creates a
ServletRequestDataBinder . |
Modifier and Type | Method and Description |
---|---|
protected Object |
ServletModelAttributeMethodProcessor.createAttribute(String attributeName,
MethodParameter parameter,
WebDataBinderFactory binderFactory,
NativeWebRequest request)
Instantiate the model attribute from a URI template variable or from a
request parameter if the name matches to the model attribute name and
if there is an appropriate type conversion strategy.
|
protected Object |
ServletModelAttributeMethodProcessor.createAttributeFromRequestValue(String sourceValue,
String attributeName,
MethodParameter parameter,
WebDataBinderFactory binderFactory,
NativeWebRequest request)
Create a model attribute from a String request value (e.g.
|
Object |
MatrixVariableMapMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest request,
WebDataBinderFactory binderFactory) |
Object |
UriComponentsBuilderMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
ServletResponseMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Set
ModelAndViewContainer.setRequestHandled(boolean) to
false to indicate that the method signature provides access
to the response. |
Object |
RequestResponseBodyMethodProcessor.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Throws MethodArgumentNotValidException if validation fails.
|
Object |
HttpEntityMethodProcessor.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
ServletRequestMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
RedirectAttributesMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
Object |
PathVariableMapMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Return a Map with all URI template variables or an empty map.
|
Object |
RequestPartMethodArgumentResolver.resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest request,
WebDataBinderFactory binderFactory) |