Example usage for Java org.springframework.web.util WebUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
String | INCLUDE_REQUEST_URI_ATTRIBUTE Standard Servlet 2.3+ spec request attribute for include request URI. |
String | INCLUDE_CONTEXT_PATH_ATTRIBUTE Standard Servlet 2.3+ spec request attribute for include context path. |
String | INCLUDE_SERVLET_PATH_ATTRIBUTE Standard Servlet 2.3+ spec request attribute for include servlet path. |
String | INCLUDE_PATH_INFO_ATTRIBUTE Standard Servlet 2.3+ spec request attribute for include path info. |
String | INCLUDE_QUERY_STRING_ATTRIBUTE Standard Servlet 2.3+ spec request attribute for include query string. |
String | FORWARD_REQUEST_URI_ATTRIBUTE Standard Servlet 2.4+ spec request attribute for forward request URI. |
String | FORWARD_CONTEXT_PATH_ATTRIBUTE Standard Servlet 2.4+ spec request attribute for forward context path. |
String | FORWARD_SERVLET_PATH_ATTRIBUTE Standard Servlet 2.4+ spec request attribute for forward servlet path. |
String | FORWARD_PATH_INFO_ATTRIBUTE Standard Servlet 2.4+ spec request attribute for forward path info. |
String | FORWARD_QUERY_STRING_ATTRIBUTE Standard Servlet 2.4+ spec request attribute for forward query string. |
String | ERROR_STATUS_CODE_ATTRIBUTE Standard Servlet 2.3+ spec request attribute for error page status code. |
String | ERROR_EXCEPTION_TYPE_ATTRIBUTE Standard Servlet 2.3+ spec request attribute for error page exception type. |
String | ERROR_MESSAGE_ATTRIBUTE Standard Servlet 2.3+ spec request attribute for error page message. |
String | ERROR_EXCEPTION_ATTRIBUTE Standard Servlet 2.3+ spec request attribute for error page exception. |
String | ERROR_REQUEST_URI_ATTRIBUTE Standard Servlet 2.3+ spec request attribute for error page request URI. |
String | ERROR_SERVLET_NAME_ATTRIBUTE Standard Servlet 2.3+ spec request attribute for error page servlet name. |
String | CONTENT_TYPE_CHARSET_PREFIX Prefix of the charset clause in a content type String: ";charset=". |
String | DEFAULT_CHARACTER_ENCODING Default character encoding to use when request.getCharacterEncoding returns null , according to the Servlet spec. |
String | TEMP_DIR_CONTEXT_ATTRIBUTE Standard Servlet spec context attribute that specifies a temporary directory for the current web application, of type java.io.File . |
String | DEFAULT_WEB_APP_ROOT_KEY Default web app root key: "webapp.root". |
String[] | SUBMIT_IMAGE_SUFFIXES Name suffixes in case of image buttons. |
String | SESSION_MUTEX_ATTRIBUTE Key for the mutex session attribute. |
void | clearErrorRequestAttributes(HttpServletRequest request) Clear the Servlet spec's error attributes as javax.servlet.http.HttpServletRequest attributes under the keys defined in the Servlet 2.3 specification: javax.servlet.error.status_code , javax.servlet.error.exception_type , javax.servlet.error.message , javax.servlet.error.exception , javax.servlet.error.request_uri , javax.servlet.error.servlet_name . |
void | exposeErrorRequestAttributes(HttpServletRequest request, Throwable ex, @Nullable String servletName) Expose the Servlet spec's error attributes as javax.servlet.http.HttpServletRequest attributes under the keys defined in the Servlet 2.3 specification, for error pages that are rendered directly rather than through the Servlet container's error page resolution: javax.servlet.error.status_code , javax.servlet.error.exception_type , javax.servlet.error.message , javax.servlet.error.exception , javax.servlet.error.request_uri , javax.servlet.error.servlet_name . |
String | findParameterValue(ServletRequest request, String name) Obtain a named parameter from the given request parameters. |
String | findParameterValue(Map Obtain a named parameter from the given request parameters. |
Cookie | getCookie(HttpServletRequest request, String name) Retrieve the first cookie with the given name. |
T | getNativeRequest(ServletRequest request, @Nullable Class Return an appropriate request object of the specified type, if available, unwrapping the given request as far as necessary. |
T | getNativeResponse(ServletResponse response, @Nullable Class Return an appropriate response object of the specified type, if available, unwrapping the given response as far as necessary. |
Map | getParametersStartingWith(ServletRequest request, @Nullable String prefix) Return a map containing all parameters with the given prefix. |
String | getRealPath(ServletContext servletContext, String path) Return the real path of the given path within the web application, as provided by the servlet container. |
Object | getSessionAttribute(HttpServletRequest request, String name) Check the given request for a session attribute of the given name. |
Object | getSessionMutex(HttpSession session) Return the best available mutex for the given session: that is, an object to synchronize on for the given session. |
File | getTempDir(ServletContext servletContext) Return the temporary directory for the current web application, as provided by the servlet container. |
boolean | hasSubmitParameter(ServletRequest request, String name) Check if a specific input type="submit" parameter was sent in the request, either via a button (directly with name) or via an image (name + ".x" or name + ".y"). |
boolean | isIncludeRequest(ServletRequest request) Determine whether the given request is an include request, that is, not a top-level HTTP request coming in from the outside. |
boolean | isSameOrigin(HttpRequest request) Check if the request is a same-origin one, based on Origin , Host , Forwarded , X-Forwarded-Proto , X-Forwarded-Host and X-Forwarded-Port headers. |
boolean | isValidOrigin(HttpRequest request, Collection Check the given request origin against a list of allowed origins. |
void | removeWebAppRootSystemProperty(ServletContext servletContext) Remove the system property that points to the web app root directory. |
void | setSessionAttribute(HttpServletRequest request, String name, @Nullable Object value) Set the session attribute with the given name to the given value. |
void | setWebAppRootSystemProperty(ServletContext servletContext) Set a system property to the web application root directory. |