Uses of Interface
org.springframework.web.context.request.WebRequest
Package
Description
Classes supporting the
org.springframework.orm.hibernate5
package.Classes supporting the
org.springframework.orm.jpa
package.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.
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.-
Uses of WebRequest in org.springframework.orm.hibernate5.support
Modifier and TypeMethodDescriptionvoid
OpenSessionInViewInterceptor.afterCompletion
(WebRequest request, Exception ex) Unbind the HibernateSession
from the thread and close it.void
OpenSessionInViewInterceptor.afterConcurrentHandlingStarted
(WebRequest request) void
OpenSessionInViewInterceptor.postHandle
(WebRequest request, ModelMap model) void
OpenSessionInViewInterceptor.preHandle
(WebRequest request) Open a new HibernateSession
according and bind it to the thread via theTransactionSynchronizationManager
. -
Uses of WebRequest in org.springframework.orm.jpa.support
Modifier and TypeMethodDescriptionvoid
OpenEntityManagerInViewInterceptor.afterCompletion
(WebRequest request, Exception ex) void
OpenEntityManagerInViewInterceptor.afterConcurrentHandlingStarted
(WebRequest request) void
OpenEntityManagerInViewInterceptor.postHandle
(WebRequest request, ModelMap model) void
OpenEntityManagerInViewInterceptor.preHandle
(WebRequest request) -
Uses of WebRequest in org.springframework.web.bind.support
Modifier and TypeMethodDescriptionvoid
WebRequestDataBinder.bind
(WebRequest request) Bind the parameters of the given request to this binder's target, also binding multipart files in case of a multipart request.void
DefaultSessionAttributeStore.cleanupAttribute
(WebRequest request, String attributeName) void
SessionAttributeStore.cleanupAttribute
(WebRequest request, String attributeName) Clean up the specified attribute in the backend session.void
WebRequestDataBinder.construct
(WebRequest request) Use a default or single data constructor to create the target by binding request parameters, multipart files, or parts to constructor args.protected String
DefaultSessionAttributeStore.getAttributeNameInSession
(WebRequest request, String attributeName) Calculate the attribute name in the backend session.DefaultSessionAttributeStore.retrieveAttribute
(WebRequest request, String attributeName) SessionAttributeStore.retrieveAttribute
(WebRequest request, String attributeName) Retrieve the specified attribute from the backend session.void
DefaultSessionAttributeStore.storeAttribute
(WebRequest request, String attributeName, Object attributeValue) void
SessionAttributeStore.storeAttribute
(WebRequest request, String attributeName, Object attributeValue) Store the supplied attribute in the backend session. -
Uses of WebRequest in org.springframework.web.context.request
Modifier and TypeInterfaceDescriptioninterface
Extension of theWebRequest
interface, exposing the native request and response objects in a generic fashion.Modifier and TypeClassDescriptionclass
WebRequest
adapter for a JSFFacesContext
.class
WebRequest
adapter for anHttpServletRequest
.Modifier and TypeMethodDescriptionvoid
WebRequestInterceptor.afterCompletion
(WebRequest request, Exception ex) Callback after completion of request processing, that is, after rendering the view.void
AsyncWebRequestInterceptor.afterConcurrentHandlingStarted
(WebRequest request) Called instead ofpostHandle
andafterCompletion
, when the handler started handling the request concurrently.void
WebRequestInterceptor.postHandle
(WebRequest request, ModelMap model) Intercept the execution of a request handler after its successful invocation, right before view rendering (if any).void
WebRequestInterceptor.preHandle
(WebRequest request) Intercept the execution of a request handler before its invocation. -
Uses of WebRequest in org.springframework.web.context.request.async
Modifier and TypeInterfaceDescriptioninterface
ExtendsNativeWebRequest
with methods for asynchronous request processing.Modifier and TypeMethodDescriptionstatic WebAsyncManager
WebAsyncUtils.getAsyncManager
(WebRequest webRequest) Obtain theWebAsyncManager
for the current request, or if not found, create and associate it with the request. -
Uses of WebRequest in org.springframework.web.method.annotation
Modifier and TypeMethodDescriptionvoid
SessionAttributesHandler.cleanupAttributes
(WebRequest request) Remove "known" attributes from the session, i.e.SessionAttributesHandler.retrieveAttributes
(WebRequest request) Retrieve "known" attributes from the session, i.e.void
SessionAttributesHandler.storeAttributes
(WebRequest request, Map<String, ?> attributes) Store a subset of the given attributes in the session. -
Uses of WebRequest 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 WebRequest in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeMethodDescriptionprotected ProblemDetail
ResponseEntityExceptionHandler.createProblemDetail
(Exception ex, HttpStatusCode status, String defaultDetail, String detailMessageCode, Object[] detailMessageArguments, WebRequest request) Convenience method to create aProblemDetail
for any exception that doesn't implementErrorResponse
, also performing aMessageSource
lookup for the "detail" field.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.createResponseEntity
(Object body, HttpHeaders headers, HttpStatusCode statusCode, WebRequest request) Create theResponseEntity
to use from the given body, headers, and statusCode.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleAsyncRequestNotUsableException
(AsyncRequestNotUsableException ex, WebRequest request) Customize the handling ofAsyncRequestNotUsableException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleAsyncRequestTimeoutException
(AsyncRequestTimeoutException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofAsyncRequestTimeoutException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleConversionNotSupported
(ConversionNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofConversionNotSupportedException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleErrorResponseException
(ErrorResponseException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling of anyErrorResponseException
.final ResponseEntity<Object>
ResponseEntityExceptionHandler.handleException
(Exception ex, WebRequest request) Handle all exceptions raised within Spring MVC handling of the request.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleExceptionInternal
(Exception ex, Object body, HttpHeaders headers, HttpStatusCode statusCode, WebRequest request) Internal handler method that all others in this class delegate to, for common handling, and for the creation of aResponseEntity
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleHandlerMethodValidationException
(HandlerMethodValidationException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHandlerMethodValidationException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleHttpMediaTypeNotAcceptable
(HttpMediaTypeNotAcceptableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpMediaTypeNotAcceptableException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleHttpMediaTypeNotSupported
(HttpMediaTypeNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpMediaTypeNotSupportedException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleHttpMessageNotReadable
(HttpMessageNotReadableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpMessageNotReadableException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleHttpMessageNotWritable
(HttpMessageNotWritableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpMessageNotWritableException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleHttpRequestMethodNotSupported
(HttpRequestMethodNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpRequestMethodNotSupportedException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleMaxUploadSizeExceededException
(MaxUploadSizeExceededException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling of anyMaxUploadSizeExceededException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleMethodArgumentNotValid
(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofMethodArgumentNotValidException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleMethodValidationException
(MethodValidationException ex, HttpHeaders headers, HttpStatus status, WebRequest request) Customize the handling ofMethodValidationException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleMissingPathVariable
(MissingPathVariableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofMissingPathVariableException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleMissingServletRequestParameter
(MissingServletRequestParameterException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofMissingServletRequestParameterException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleMissingServletRequestPart
(MissingServletRequestPartException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofMissingServletRequestPartException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleNoHandlerFoundException
(NoHandlerFoundException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofNoHandlerFoundException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleNoResourceFoundException
(NoResourceFoundException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofNoResourceFoundException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleServletRequestBindingException
(ServletRequestBindingException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofServletRequestBindingException
.protected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleTypeMismatch
(TypeMismatchException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofTypeMismatchException
.