Package | Description |
---|---|
org.springframework.test.web.servlet.setup |
Contains built-in
MockMvcBuilder implementations. |
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.config.annotation |
Annotation-based setup for Spring MVC.
|
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 | Method and Description |
---|---|
StandaloneMockMvcBuilder |
StandaloneMockMvcBuilder.setCustomReturnValueHandlers(HandlerMethodReturnValueHandler... handlers)
Provide custom handlers for controller method return values.
|
Modifier and Type | Class and Description |
---|---|
class |
MapMethodProcessor
|
class |
ModelAttributeMethodProcessor
Resolves method arguments annotated with
@ModelAttribute and handles
return values from methods annotated with @ModelAttribute . |
class |
ModelMethodProcessor
|
Modifier and Type | Class and Description |
---|---|
class |
HandlerMethodReturnValueHandlerComposite
Handles method return values by delegating to a list of registered
HandlerMethodReturnValueHandler s. |
Modifier and Type | Method and Description |
---|---|
List<HandlerMethodReturnValueHandler> |
HandlerMethodReturnValueHandlerComposite.getHandlers()
Return a read-only list with the registered handlers, or an empty list.
|
Modifier and Type | Method and Description |
---|---|
HandlerMethodReturnValueHandlerComposite |
HandlerMethodReturnValueHandlerComposite.addHandler(HandlerMethodReturnValueHandler returnValuehandler)
Add the given
HandlerMethodReturnValueHandler . |
Modifier and Type | Method and Description |
---|---|
HandlerMethodReturnValueHandlerComposite |
HandlerMethodReturnValueHandlerComposite.addHandlers(List<? extends HandlerMethodReturnValueHandler> returnValueHandlers)
Add the given
HandlerMethodReturnValueHandler s. |
Modifier and Type | Method and Description |
---|---|
void |
WebMvcConfigurerAdapter.addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
Add handlers to support custom controller method return value types.
|
protected void |
DelegatingWebMvcConfiguration.addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) |
void |
WebMvcConfigurer.addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
Add handlers to support custom controller method return value types.
|
protected void |
WebMvcConfigurationSupport.addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
Add custom
HandlerMethodReturnValueHandler s in addition to the
ones registered by default. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMessageConverterMethodProcessor
Extends
AbstractMessageConverterMethodArgumentResolver with the ability to handle
method return values by writing to the response with HttpMessageConverter s. |
class |
AsyncTaskMethodReturnValueHandler
Handles return values of type
WebAsyncTask . |
class |
CallableMethodReturnValueHandler
Handles return values of type
Callable . |
class |
DeferredResultMethodReturnValueHandler
Handles return values of type
DeferredResult . |
class |
HttpEntityMethodProcessor
Resolves
HttpEntity method argument values and also handles
both HttpEntity and ResponseEntity return values. |
class |
ModelAndViewMethodReturnValueHandler
Handles return values of type
ModelAndView copying view and model
information to the ModelAndViewContainer . |
class |
ModelAndViewResolverMethodReturnValueHandler
This return value handler is intended to be ordered after all others as it
attempts to handle _any_ return value type (i.e.
|
class |
RequestResponseBodyMethodProcessor
Resolves method arguments annotated with
@RequestBody and handles return
values from methods annotated with @ResponseBody by reading and writing
to the body of the request or response with an HttpMessageConverter . |
class |
ServletModelAttributeMethodProcessor
A Servlet-specific
ModelAttributeMethodProcessor that applies data
binding through a WebDataBinder of type ServletRequestDataBinder . |
class |
ViewMethodReturnValueHandler
Handles return values that are of type
View . |
class |
ViewNameMethodReturnValueHandler
Handles return values of types
void and String interpreting
them as view name reference. |
Modifier and Type | Method and Description |
---|---|
List<HandlerMethodReturnValueHandler> |
RequestMappingHandlerAdapter.getCustomReturnValueHandlers()
Return the custom return value handlers, or
null . |
List<HandlerMethodReturnValueHandler> |
ExceptionHandlerExceptionResolver.getCustomReturnValueHandlers()
Return the custom return value handlers, or
null . |
protected List<HandlerMethodReturnValueHandler> |
ExceptionHandlerExceptionResolver.getDefaultReturnValueHandlers()
Return the list of return value handlers to use including built-in and
custom handlers provided via
ExceptionHandlerExceptionResolver.setReturnValueHandlers(java.util.List<org.springframework.web.method.support.HandlerMethodReturnValueHandler>) . |
Modifier and Type | Method and Description |
---|---|
void |
RequestMappingHandlerAdapter.setCustomReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
Provide handlers for custom return value types.
|
void |
ExceptionHandlerExceptionResolver.setCustomReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
Provide handlers for custom return value types.
|
void |
RequestMappingHandlerAdapter.setReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
Configure the complete list of supported return value types thus
overriding handlers that would otherwise be configured by default.
|
void |
ExceptionHandlerExceptionResolver.setReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
Configure the complete list of supported return value types thus
overriding handlers that would otherwise be configured by default.
|
Copyright © 2015. All rights reserved.