Example usage for Java org.springframework.web.servlet.support RequestContext fields, constructors, methods, implement or subclass
The text is from its open source code.
String | WEB_APPLICATION_CONTEXT_ATTRIBUTE Request attribute to hold the current web application context for RequestContext usage. |
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 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 Create a new RequestContext for the given request, using the given model attributes for Errors retrieval. |
BindStatus | getBindStatus(String path) Create a BindStatus for the given bind object, using the "defaultHtmlEscape" setting. |
String | getContextPath() Return the context path of the original request, that is, the path that indicates the current web application. |
Errors | getErrors(String name, boolean htmlEscape) Retrieve the Errors instance for the given bind object. |
Locale | getLocale() Return the current Locale (falling back to the request locale; never null ). |
String | getMessage(String code, @Nullable Object[] args, String defaultMessage) Retrieve the message for the given code, using the "defaultHtmlEscape" setting. |
String | getMessage(String code, @Nullable List> args, String defaultMessage) Retrieve the message for the given code, using the "defaultHtmlEscape" setting. |
String | getMessage(String code, @Nullable Object[] args, boolean htmlEscape) Retrieve the message for the given code. |
String | getMessage(String code) Retrieve the message for the given code, using the "defaultHtmlEscape" setting. |
String | getMessage(MessageSourceResolvable resolvable) Retrieve the given MessageSourceResolvable (e.g. |
String | getMessage(String code, String defaultMessage) Retrieve the message for the given code, using the "defaultHtmlEscape" setting. |
String | getMessage(String code, @Nullable Object[] args) Retrieve the message for the given code, using the "defaultHtmlEscape" setting. |
String | getMessage(String code, @Nullable List> args) Retrieve the message for the given code, using the "defaultHtmlEscape" setting. |
String | getMessage(MessageSourceResolvable resolvable, boolean htmlEscape) Retrieve the given MessageSourceResolvable (e.g. |
MessageSource | getMessageSource() Return the current WebApplicationContext as MessageSource. |
String | getQueryString() Return the query string of the current request, that is, the part after the request path. |
HttpServletRequest | getRequest() Return the underlying HttpServletRequest. |
String | getRequestUri() Return the request URI of the original request, that is, the invoked URL without parameters. |
WebApplicationContext | getWebApplicationContext() Return the current WebApplicationContext. |