Java org.springframework.web.servlet.support RequestContext fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.servlet.support RequestContext fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.servlet.support RequestContext.

The text is from its open source code.

Field

StringWEB_APPLICATION_CONTEXT_ATTRIBUTE
Request attribute to hold the current web application context for RequestContext usage.

Constructor

RequestContext(HttpServletRequest request)
Create a new RequestContext for the given request, using the request attributes for Errors retrieval.
RequestContext(HttpServletRequest request, @Nullable HttpServletResponse response, @Nullable ServletContext servletContext, @Nullable Map model)
Create a new RequestContext for the given request, using the given model attributes for Errors retrieval.
RequestContext(HttpServletRequest request, HttpServletResponse response)
Create a new RequestContext for the given request, using the request attributes for Errors retrieval.
RequestContext(HttpServletRequest request, @Nullable ServletContext servletContext)
Create a new RequestContext for the given request, using the request attributes for Errors retrieval.
RequestContext(HttpServletRequest request, @Nullable Map model)
Create a new RequestContext for the given request, using the given model attributes for Errors retrieval.

Method

BindStatusgetBindStatus(String path)
Create a BindStatus for the given bind object, using the "defaultHtmlEscape" setting.
StringgetContextPath()
Return the context path of the original request, that is, the path that indicates the current web application.
ErrorsgetErrors(String name, boolean htmlEscape)
Retrieve the Errors instance for the given bind object.
LocalegetLocale()
Return the current Locale (falling back to the request locale; never null ).
StringgetMessage(String code, @Nullable Object[] args, String defaultMessage)
Retrieve the message for the given code, using the "defaultHtmlEscape" setting.
StringgetMessage(String code, @Nullable List args, String defaultMessage)
Retrieve the message for the given code, using the "defaultHtmlEscape" setting.
StringgetMessage(String code, @Nullable Object[] args, boolean htmlEscape)
Retrieve the message for the given code.
StringgetMessage(String code)
Retrieve the message for the given code, using the "defaultHtmlEscape" setting.
StringgetMessage(MessageSourceResolvable resolvable)
Retrieve the given MessageSourceResolvable (e.g.
StringgetMessage(String code, String defaultMessage)
Retrieve the message for the given code, using the "defaultHtmlEscape" setting.
StringgetMessage(String code, @Nullable Object[] args)
Retrieve the message for the given code, using the "defaultHtmlEscape" setting.
StringgetMessage(String code, @Nullable List args)
Retrieve the message for the given code, using the "defaultHtmlEscape" setting.
StringgetMessage(MessageSourceResolvable resolvable, boolean htmlEscape)
Retrieve the given MessageSourceResolvable (e.g.
MessageSourcegetMessageSource()
Return the current WebApplicationContext as MessageSource.
StringgetQueryString()
Return the query string of the current request, that is, the part after the request path.
HttpServletRequestgetRequest()
Return the underlying HttpServletRequest.
StringgetRequestUri()
Return the request URI of the original request, that is, the invoked URL without parameters.
WebApplicationContextgetWebApplicationContext()
Return the current WebApplicationContext.