Package | Description |
---|---|
org.springframework.web.accept |
This package contains classes used to determine the requested the media types in a request.
|
org.springframework.web.bind.support |
Support classes for web data binding.
|
org.springframework.web.context.request |
Support for generic request context holding, in particular for
scoping of application objects per HTTP request or HTTP session.
|
org.springframework.web.context.request.async |
Support for asynchronous request processing.
|
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.handler |
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
|
org.springframework.web.servlet.mvc.annotation |
Support package for annotation-based Servlet MVC controllers.
|
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 |
---|---|
protected String |
PathExtensionContentNegotiationStrategy.getMediaTypeKey(NativeWebRequest webRequest) |
protected String |
ParameterContentNegotiationStrategy.getMediaTypeKey(NativeWebRequest request) |
protected abstract String |
AbstractMappingContentNegotiationStrategy.getMediaTypeKey(NativeWebRequest request)
Extract a key from the request to use to look up media types.
|
protected MediaType |
AbstractMappingContentNegotiationStrategy.handleNoMatch(NativeWebRequest request,
String key)
Override to provide handling when a key is not resolved via.
|
protected MediaType |
ServletPathExtensionContentNegotiationStrategy.handleNoMatch(NativeWebRequest webRequest,
String extension)
Resolve file extension via
ServletContext.getMimeType(String)
and also delegate to base class for a potential
MediaTypeFactory lookup. |
List<MediaType> |
AbstractMappingContentNegotiationStrategy.resolveMediaTypeKey(NativeWebRequest webRequest,
String key)
An alternative to
AbstractMappingContentNegotiationStrategy.resolveMediaTypes(NativeWebRequest) that accepts
an already extracted key. |
List<MediaType> |
ContentNegotiationStrategy.resolveMediaTypes(NativeWebRequest webRequest)
Resolve the given request to a list of media types.
|
List<MediaType> |
ContentNegotiationManager.resolveMediaTypes(NativeWebRequest request) |
List<MediaType> |
AbstractMappingContentNegotiationStrategy.resolveMediaTypes(NativeWebRequest webRequest) |
List<MediaType> |
FixedContentNegotiationStrategy.resolveMediaTypes(NativeWebRequest request) |
List<MediaType> |
HeaderContentNegotiationStrategy.resolveMediaTypes(NativeWebRequest request)
Resolve the given request to a list of media types.
|
Modifier and Type | Method and Description |
---|---|
WebDataBinder |
WebDataBinderFactory.createBinder(NativeWebRequest webRequest,
Object target,
String objectName)
Create a
WebDataBinder for the given object. |
WebDataBinder |
DefaultDataBinderFactory.createBinder(NativeWebRequest webRequest,
Object target,
String objectName)
Create a new
WebDataBinder for the given target object and
initialize it through a WebBindingInitializer . |
protected WebDataBinder |
DefaultDataBinderFactory.createBinderInstance(Object target,
String objectName,
NativeWebRequest webRequest)
Extension point to create the WebDataBinder instance.
|
protected void |
DefaultDataBinderFactory.initBinder(WebDataBinder dataBinder,
NativeWebRequest webRequest)
Extension point to further initialize the created data binder instance
(e.g.
|
Object |
WebArgumentResolver.resolveArgument(MethodParameter methodParameter,
NativeWebRequest webRequest)
Resolve an argument for the given handler method parameter within the given web request.
|
Modifier and Type | Class and Description |
---|---|
class |
FacesWebRequest
WebRequest adapter for a JSF FacesContext . |
class |
ServletWebRequest
WebRequest adapter for an HttpServletRequest . |
Modifier and Type | Interface and Description |
---|---|
interface |
AsyncWebRequest
Extends
NativeWebRequest with methods for asynchronous request processing. |
Modifier and Type | Class and Description |
---|---|
class |
StandardServletAsyncWebRequest
A Servlet 3.0 implementation of
AsyncWebRequest . |
Modifier and Type | Method and Description |
---|---|
default <T> void |
CallableProcessingInterceptor.afterCompletion(NativeWebRequest request,
Callable<T> task)
Invoked from a container thread when async processing completes for any
reason including timeout or network error.
|
<T> void |
CallableProcessingInterceptorAdapter.afterCompletion(NativeWebRequest request,
Callable<T> task)
Deprecated.
|
<T> void |
DeferredResultProcessingInterceptorAdapter.afterCompletion(NativeWebRequest request,
DeferredResult<T> deferredResult)
Deprecated.
This implementation is empty.
|
default <T> void |
DeferredResultProcessingInterceptor.afterCompletion(NativeWebRequest request,
DeferredResult<T> deferredResult)
Invoked from a container thread when an async request completed for any
reason including timeout and network error.
|
default <T> void |
CallableProcessingInterceptor.beforeConcurrentHandling(NativeWebRequest request,
Callable<T> task)
Invoked before the start of concurrent handling in the original
thread in which the
Callable is submitted for concurrent handling. |
<T> void |
CallableProcessingInterceptorAdapter.beforeConcurrentHandling(NativeWebRequest request,
Callable<T> task)
Deprecated.
|
<T> void |
DeferredResultProcessingInterceptorAdapter.beforeConcurrentHandling(NativeWebRequest request,
DeferredResult<T> deferredResult)
Deprecated.
This implementation is empty.
|
default <T> void |
DeferredResultProcessingInterceptor.beforeConcurrentHandling(NativeWebRequest request,
DeferredResult<T> deferredResult)
Invoked immediately before the start of concurrent handling, in the same
thread that started it.
|
default <T> Object |
CallableProcessingInterceptor.handleError(NativeWebRequest request,
Callable<T> task,
Throwable t)
Invoked from a container thread when an error occurred while processing
the async request before the
Callable task completes. |
<T> Object |
CallableProcessingInterceptorAdapter.handleError(NativeWebRequest request,
Callable<T> task,
Throwable t)
Deprecated.
|
<T> boolean |
DeferredResultProcessingInterceptorAdapter.handleError(NativeWebRequest request,
DeferredResult<T> deferredResult,
Throwable t)
Deprecated.
This implementation returns
true by default allowing other interceptors
to be given a chance to handle the error. |
default <T> boolean |
DeferredResultProcessingInterceptor.handleError(NativeWebRequest request,
DeferredResult<T> deferredResult,
Throwable t)
Invoked from a container thread when an error occurred while processing an async request
before the
DeferredResult has been set. |
<T> Object |
TimeoutCallableProcessingInterceptor.handleTimeout(NativeWebRequest request,
Callable<T> task) |
default <T> Object |
CallableProcessingInterceptor.handleTimeout(NativeWebRequest request,
Callable<T> task)
Invoked from a container thread when the async request times out before
the
Callable task completes. |
<T> Object |
CallableProcessingInterceptorAdapter.handleTimeout(NativeWebRequest request,
Callable<T> task)
Deprecated.
|
<T> boolean |
DeferredResultProcessingInterceptorAdapter.handleTimeout(NativeWebRequest request,
DeferredResult<T> deferredResult)
Deprecated.
This implementation returns
true by default allowing other interceptors
to be given a chance to handle the timeout. |
<T> boolean |
TimeoutDeferredResultProcessingInterceptor.handleTimeout(NativeWebRequest request,
DeferredResult<T> result) |
default <T> boolean |
DeferredResultProcessingInterceptor.handleTimeout(NativeWebRequest request,
DeferredResult<T> deferredResult)
Invoked from a container thread when an async request times out before
the
DeferredResult has been set. |
default <T> void |
CallableProcessingInterceptor.postProcess(NativeWebRequest request,
Callable<T> task,
Object concurrentResult)
Invoked after the
Callable has produced a result in the
async thread in which the Callable is executed. |
<T> void |
CallableProcessingInterceptorAdapter.postProcess(NativeWebRequest request,
Callable<T> task,
Object concurrentResult)
Deprecated.
|
<T> void |
DeferredResultProcessingInterceptorAdapter.postProcess(NativeWebRequest request,
DeferredResult<T> deferredResult,
Object concurrentResult)
Deprecated.
This implementation is empty.
|
default <T> void |
DeferredResultProcessingInterceptor.postProcess(NativeWebRequest request,
DeferredResult<T> deferredResult,
Object concurrentResult)
Invoked after a
DeferredResult has been set, via
DeferredResult.setResult(Object) or
DeferredResult.setErrorResult(Object) , and is also ready to
handle the concurrent result. |
default <T> void |
CallableProcessingInterceptor.preProcess(NativeWebRequest request,
Callable<T> task)
Invoked after the start of concurrent handling in the async
thread in which the
Callable is executed and before the
actual invocation of the Callable . |
<T> void |
CallableProcessingInterceptorAdapter.preProcess(NativeWebRequest request,
Callable<T> task)
Deprecated.
|
<T> void |
DeferredResultProcessingInterceptorAdapter.preProcess(NativeWebRequest request,
DeferredResult<T> deferredResult)
Deprecated.
This implementation is empty.
|
default <T> void |
DeferredResultProcessingInterceptor.preProcess(NativeWebRequest request,
DeferredResult<T> deferredResult)
Invoked immediately after the start of concurrent handling, in the same
thread that started it.
|
Modifier and Type | Method and Description |
---|---|
protected abstract NativeWebRequest |
AbstractWebArgumentResolverAdapter.getWebRequest()
Required for access to NativeWebRequest in
AbstractWebArgumentResolverAdapter.supportsParameter(org.springframework.core.MethodParameter) . |
Modifier and Type | Method and Description |
---|---|
protected void |
ModelAttributeMethodProcessor.bindRequestParameters(WebDataBinder binder,
NativeWebRequest request)
Extension point to bind the request to the target object.
|
protected Object |
ModelAttributeMethodProcessor.constructAttribute(Constructor<?> ctor,
String attributeName,
WebDataBinderFactory binderFactory,
NativeWebRequest webRequest)
Construct a new attribute instance with the given constructor.
|
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).
|
protected void |
AbstractNamedValueMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter,
NativeWebRequest request)
Invoked when a named value is required, but
AbstractNamedValueMethodArgumentResolver.resolveName(String, MethodParameter, NativeWebRequest)
returned null and there is no default value. |
protected void |
RequestParamMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected void |
AbstractNamedValueMethodArgumentResolver.handleResolvedValue(Object arg,
String name,
MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest)
Invoked after a value is resolved.
|
void |
ModelAttributeMethodProcessor.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest)
Add non-null return values to the
ModelAndViewContainer . |
void |
ModelMethodProcessor.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
MapMethodProcessor.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
InitBinderDataBinderFactory.initBinder(WebDataBinder dataBinder,
NativeWebRequest request)
Initialize a WebDataBinder with
@InitBinder methods. |
void |
ModelFactory.initModel(NativeWebRequest request,
ModelAndViewContainer container,
HandlerMethod handlerMethod)
Populate the model in the following order:
Retrieve "known" session attributes listed as
@SessionAttributes . |
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) |
protected abstract Object |
AbstractNamedValueMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request)
Resolve the given parameter type and value name into an argument value.
|
protected Object |
RequestHeaderMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected Object |
RequestParamMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected Object |
ExpressionValueMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest webRequest) |
void |
ModelFactory.updateModel(NativeWebRequest request,
ModelAndViewContainer container)
Promote model attributes listed as
@SessionAttributes to the session. |
Modifier and Type | Method and Description |
---|---|
void |
HandlerMethodReturnValueHandlerComposite.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest)
Iterate over registered
HandlerMethodReturnValueHandler s and invoke the one that supports it. |
void |
HandlerMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest)
Handle the given return value by adding attributes to the model and
setting a view or setting the
ModelAndViewContainer.setRequestHandled(boolean) flag to true
to indicate the response has been handled directly. |
Object |
InvocableHandlerMethod.invokeForRequest(NativeWebRequest request,
ModelAndViewContainer mavContainer,
Object... providedArgs)
Invoke the method after resolving its argument values in the context of the given request.
|
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. |
Modifier and Type | Class and Description |
---|---|
class |
DispatcherServletWebRequest
ServletWebRequest subclass that is aware of
DispatcherServlet 's
request context, such as the Locale determined by the configured
LocaleResolver . |
Modifier and Type | Method and Description |
---|---|
ModelAndView |
ModelAndViewResolver.resolveModelAndView(Method handlerMethod,
Class<?> handlerType,
Object returnValue,
ExtendedModelMap implicitModel,
NativeWebRequest webRequest) |
Modifier and Type | Method and Description |
---|---|
protected NativeWebRequest |
ServletWebArgumentResolverAdapter.getWebRequest() |
Modifier and Type | Method and Description |
---|---|
protected void |
ServletModelAttributeMethodProcessor.bindRequestParameters(WebDataBinder binder,
NativeWebRequest request)
This implementation downcasts
WebDataBinder to
ServletRequestDataBinder before binding. |
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.
|
protected ServletRequestDataBinder |
ServletRequestDataBinderFactory.createBinderInstance(Object target,
String objectName,
NativeWebRequest request)
Returns an instance of
ExtendedServletRequestDataBinder . |
protected ServletServerHttpRequest |
AbstractMessageConverterMethodArgumentResolver.createInputMessage(NativeWebRequest webRequest)
Create a new
HttpInputMessage from the given NativeWebRequest . |
protected ServletServerHttpResponse |
AbstractMessageConverterMethodProcessor.createOutputMessage(NativeWebRequest webRequest)
Creates a new
HttpOutputMessage from the given NativeWebRequest . |
protected String |
ServletModelAttributeMethodProcessor.getRequestValueForAttribute(String attributeName,
NativeWebRequest request)
Obtain a value from the request that may be used to instantiate the
model attribute through type conversion from String to the target type.
|
protected Map<String,String> |
ServletModelAttributeMethodProcessor.getUriTemplateVariables(NativeWebRequest request) |
protected void |
PathVariableMethodArgumentResolver.handleResolvedValue(Object arg,
String name,
MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest request) |
void |
HttpHeadersReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
ModelAndViewMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
ViewMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
DeferredResultMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
RequestResponseBodyMethodProcessor.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
CallableMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
HttpEntityMethodProcessor.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
ViewNameMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
StreamingResponseBodyReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
AsyncTaskMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
ResponseBodyEmitterReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
void |
ModelAndViewResolverMethodReturnValueHandler.handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) |
protected <T> Object |
RequestResponseBodyMethodProcessor.readWithMessageConverters(NativeWebRequest webRequest,
MethodParameter parameter,
Type paramType) |
protected <T> Object |
AbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(NativeWebRequest webRequest,
MethodParameter parameter,
Type paramType)
Create the method argument value of the expected parameter type by
reading from the given request.
|
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) |
protected Object |
RequestAttributeMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected Object |
MatrixVariableMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected Object |
ServletCookieValueMethodArgumentResolver.resolveName(String cookieName,
MethodParameter parameter,
NativeWebRequest webRequest) |
protected Object |
SessionAttributeMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected Object |
PathVariableMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
NativeWebRequest request) |
protected <T> void |
AbstractMessageConverterMethodProcessor.writeWithMessageConverters(T value,
MethodParameter returnType,
NativeWebRequest webRequest)
Writes the given return value to the given web request.
|