Uses of Interface
org.springframework.web.context.request.NativeWebRequest
Package
Description
This package contains classes used to determine the requested the media types in a request.
Support classes for web data binding.
Support for generic request context holding, in particular for
scoping of application objects per HTTP request or HTTP session.
Support for asynchronous request processing.
Support classes for annotation-based handler method processing.
Generic support classes for handler method processing.
Support classes for the multipart resolution framework.
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
Support package for annotation-based Servlet MVC controllers.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.-
Uses of NativeWebRequest in org.springframework.web.accept
Modifier and TypeMethodDescriptionprotected abstract String
AbstractMappingContentNegotiationStrategy.getMediaTypeKey
(NativeWebRequest request) Extract a key from the request to use to look up media types.protected String
ParameterContentNegotiationStrategy.getMediaTypeKey
(NativeWebRequest request) protected String
PathExtensionContentNegotiationStrategy.getMediaTypeKey
(NativeWebRequest webRequest) Deprecated.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) Deprecated.Resolve file extension viaServletContext.getMimeType(String)
and also delegate to base class for a potentialMediaTypeFactory
lookup.AbstractMappingContentNegotiationStrategy.resolveMediaTypeKey
(NativeWebRequest webRequest, String key) An alternative toAbstractMappingContentNegotiationStrategy.resolveMediaTypes(NativeWebRequest)
that accepts an already extracted key.AbstractMappingContentNegotiationStrategy.resolveMediaTypes
(NativeWebRequest webRequest) ContentNegotiationManager.resolveMediaTypes
(NativeWebRequest request) ContentNegotiationStrategy.resolveMediaTypes
(NativeWebRequest webRequest) Resolve the given request to a list of media types.FixedContentNegotiationStrategy.resolveMediaTypes
(NativeWebRequest request) HeaderContentNegotiationStrategy.resolveMediaTypes
(NativeWebRequest request) Resolve the given request to a list of media types. -
Uses of NativeWebRequest in org.springframework.web.bind.support
Modifier and TypeMethodDescriptionfinal WebDataBinder
DefaultDataBinderFactory.createBinder
(NativeWebRequest webRequest, Object target, String objectName) Create a newWebDataBinder
for the given target object and initialize it through aWebBindingInitializer
.WebDataBinderFactory.createBinder
(NativeWebRequest webRequest, Object target, String objectName) Create aWebDataBinder
for the given object.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.WebArgumentResolver.resolveArgument
(MethodParameter methodParameter, NativeWebRequest webRequest) Resolve an argument for the given handler method parameter within the given web request. -
Uses of NativeWebRequest in org.springframework.web.context.request
Modifier and TypeClassDescriptionclass
WebRequest
adapter for a JSFFacesContext
.class
WebRequest
adapter for anHttpServletRequest
. -
Uses of NativeWebRequest in org.springframework.web.context.request.async
Modifier and TypeInterfaceDescriptioninterface
ExtendsNativeWebRequest
with methods for asynchronous request processing.Modifier and TypeMethodDescriptiondefault <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.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 theCallable
is submitted for concurrent handling.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 theCallable
task completes.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 theDeferredResult
has been set.default <T> Object
CallableProcessingInterceptor.handleTimeout
(NativeWebRequest request, Callable<T> task) Invoked from a container thread when the async request times out before theCallable
task completes.default <T> boolean
DeferredResultProcessingInterceptor.handleTimeout
(NativeWebRequest request, DeferredResult<T> deferredResult) Invoked from a container thread when an async request times out before theDeferredResult
has been set.<T> Object
TimeoutCallableProcessingInterceptor.handleTimeout
(NativeWebRequest request, Callable<T> task) <T> boolean
TimeoutDeferredResultProcessingInterceptor.handleTimeout
(NativeWebRequest request, DeferredResult<T> result) default <T> void
CallableProcessingInterceptor.postProcess
(NativeWebRequest request, Callable<T> task, Object concurrentResult) Invoked after theCallable
has produced a result in the async thread in which theCallable
is executed.default <T> void
DeferredResultProcessingInterceptor.postProcess
(NativeWebRequest request, DeferredResult<T> deferredResult, Object concurrentResult) Invoked after aDeferredResult
has been set, viaDeferredResult.setResult(Object)
orDeferredResult.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 theCallable
is executed and before the actual invocation of theCallable
.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. -
Uses of NativeWebRequest in org.springframework.web.method.annotation
Modifier and TypeMethodDescriptionprotected abstract NativeWebRequest
AbstractWebArgumentResolverAdapter.getWebRequest()
Required for access to NativeWebRequest inAbstractWebArgumentResolverAdapter.supportsParameter(org.springframework.core.MethodParameter)
.Modifier and TypeMethodDescriptionprotected 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, MethodParameter parameter, 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, butAbstractNamedValueMethodArgumentResolver.resolveName(String, MethodParameter, NativeWebRequest)
returnednull
and there is no default value.protected void
RequestParamMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter, NativeWebRequest request) protected void
AbstractCookieValueMethodArgumentResolver.handleMissingValueAfterConversion
(String name, MethodParameter parameter, NativeWebRequest request) protected void
AbstractNamedValueMethodArgumentResolver.handleMissingValueAfterConversion
(String name, MethodParameter parameter, NativeWebRequest request) Invoked when a named value is present but becomesnull
after conversion.protected void
RequestHeaderMethodArgumentResolver.handleMissingValueAfterConversion
(String name, MethodParameter parameter, NativeWebRequest request) protected void
RequestParamMethodArgumentResolver.handleMissingValueAfterConversion
(String name, MethodParameter parameter, NativeWebRequest request) protected void
RequestParamMethodArgumentResolver.handleMissingValueInternal
(String name, MethodParameter parameter, NativeWebRequest request, boolean missingAfterConversion) protected void
AbstractNamedValueMethodArgumentResolver.handleResolvedValue
(Object arg, String name, MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) Invoked after a value is resolved.void
MapMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ModelAttributeMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) Add non-null return values to theModelAndViewContainer
.void
ModelMethodProcessor.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
.final Object
AbstractNamedValueMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) AbstractWebArgumentResolverAdapter.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Delegate to theWebArgumentResolver
instance.ErrorsMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) MapMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) final 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.ModelMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) RequestHeaderMapMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) RequestParamMapMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) SessionStatusMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) ModelAttributeMethodProcessor.resolveConstructorArgument
(String paramName, Class<?> paramType, NativeWebRequest request) 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
ExpressionValueMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest webRequest) protected Object
RequestHeaderMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest request) protected Object
RequestParamMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest request) void
ModelFactory.updateModel
(NativeWebRequest request, ModelAndViewContainer container) Promote model attributes listed as@SessionAttributes
to the session. -
Uses of NativeWebRequest in org.springframework.web.method.support
Modifier and TypeMethodDescriptionprotected Object[]
InvocableHandlerMethod.getMethodArgumentValues
(NativeWebRequest request, ModelAndViewContainer mavContainer, Object... providedArgs) Get the method argument values for the current request, checking the provided argument values and falling back to the configured argument resolvers.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 theModelAndViewContainer.setRequestHandled(boolean)
flag totrue
to indicate the response has been handled directly.void
HandlerMethodReturnValueHandlerComposite.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) Iterate over registeredHandlerMethodReturnValueHandlers
and invoke the one that supports it.InvocableHandlerMethod.invokeForRequest
(NativeWebRequest request, ModelAndViewContainer mavContainer, Object... providedArgs) Invoke the method after resolving its argument values in the context of the given request.HandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Resolves a method parameter into an argument value from a given request.HandlerMethodArgumentResolverComposite.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Iterate over registeredHandlerMethodArgumentResolvers
and invoke the one that supports it. -
Uses of NativeWebRequest in org.springframework.web.multipart.support
Modifier and TypeMethodDescriptionstatic MultipartRequest
MultipartResolutionDelegate.resolveMultipartRequest
(NativeWebRequest webRequest) -
Uses of NativeWebRequest in org.springframework.web.servlet.handler
Modifier and TypeClassDescriptionclass
ServletWebRequest
subclass that is aware ofDispatcherServlet
's request context, such as the Locale determined by the configuredLocaleResolver
. -
Uses of NativeWebRequest in org.springframework.web.servlet.mvc.annotation
Modifier and TypeMethodDescriptionModelAndViewResolver.resolveModelAndView
(Method handlerMethod, Class<?> handlerType, Object returnValue, ExtendedModelMap implicitModel, NativeWebRequest webRequest) -
Uses of NativeWebRequest in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeMethodDescriptionprotected NativeWebRequest
ServletWebArgumentResolverAdapter.getWebRequest()
Modifier and TypeMethodDescriptionprotected void
ServletModelAttributeMethodProcessor.bindRequestParameters
(WebDataBinder binder, NativeWebRequest request) This implementation downcastsWebDataBinder
toServletRequestDataBinder
before binding.protected final 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 ofExtendedServletRequestDataBinder
.protected ServletServerHttpRequest
AbstractMessageConverterMethodArgumentResolver.createInputMessage
(NativeWebRequest webRequest) Create a newHttpInputMessage
from the givenNativeWebRequest
.protected ServletServerHttpResponse
AbstractMessageConverterMethodProcessor.createOutputMessage
(NativeWebRequest webRequest) Creates a newHttpOutputMessage
from the givenNativeWebRequest
.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.ServletModelAttributeMethodProcessor.getUriTemplateVariables
(NativeWebRequest request) protected void
MatrixVariableMethodArgumentResolver.handleMissingValueAfterConversion
(String name, MethodParameter parameter, NativeWebRequest request) protected void
PathVariableMethodArgumentResolver.handleMissingValueAfterConversion
(String name, MethodParameter parameter, NativeWebRequest request) protected void
PathVariableMethodArgumentResolver.handleResolvedValue
(Object arg, String name, MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request) void
AsyncTaskMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
CallableMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
DeferredResultMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
HttpEntityMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
HttpHeadersReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ModelAndViewMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ModelAndViewResolverMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
RequestResponseBodyMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ResponseBodyEmitterReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
StreamingResponseBodyReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ViewMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ViewNameMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) 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.protected <T> Object
RequestResponseBodyMethodProcessor.readWithMessageConverters
(NativeWebRequest webRequest, MethodParameter parameter, Type paramType) ContinuationHandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) HttpEntityMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) MatrixVariableMapMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request, WebDataBinderFactory binderFactory) PathVariableMapMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Return a Map with all URI template variables or an empty map.PrincipalMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) RedirectAttributesMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) RequestPartMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request, WebDataBinderFactory binderFactory) RequestResponseBodyMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Throws MethodArgumentNotValidException if validation fails.ServletRequestMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) ServletResponseMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) SetModelAndViewContainer.setRequestHandled(boolean)
tofalse
to indicate that the method signature provides access to the response.UriComponentsBuilderMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) ServletModelAttributeMethodProcessor.resolveConstructorArgument
(String paramName, Class<?> paramType, NativeWebRequest request) protected Object
MatrixVariableMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest request) protected Object
PathVariableMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, NativeWebRequest request) protected Object
RequestAttributeMethodArgumentResolver.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 <T> void
AbstractMessageConverterMethodProcessor.writeWithMessageConverters
(T value, MethodParameter returnType, NativeWebRequest webRequest) Writes the given return value to the given web request.