Java org.springframework.web.util WebUtils fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.util WebUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.util WebUtils.

The text is from its open source code.

Subclass

org.springframework.web.util.WebUtils has subclasses.
Click this link to see all its subclasses.

Field

StringINCLUDE_REQUEST_URI_ATTRIBUTE
Standard Servlet 2.3+ spec request attribute for include request URI.
StringINCLUDE_CONTEXT_PATH_ATTRIBUTE
Standard Servlet 2.3+ spec request attribute for include context path.
StringINCLUDE_SERVLET_PATH_ATTRIBUTE
Standard Servlet 2.3+ spec request attribute for include servlet path.
StringINCLUDE_PATH_INFO_ATTRIBUTE
Standard Servlet 2.3+ spec request attribute for include path info.
StringINCLUDE_QUERY_STRING_ATTRIBUTE
Standard Servlet 2.3+ spec request attribute for include query string.
StringFORWARD_REQUEST_URI_ATTRIBUTE
Standard Servlet 2.4+ spec request attribute for forward request URI.
StringFORWARD_CONTEXT_PATH_ATTRIBUTE
Standard Servlet 2.4+ spec request attribute for forward context path.
StringFORWARD_SERVLET_PATH_ATTRIBUTE
Standard Servlet 2.4+ spec request attribute for forward servlet path.
StringFORWARD_PATH_INFO_ATTRIBUTE
Standard Servlet 2.4+ spec request attribute for forward path info.
StringFORWARD_QUERY_STRING_ATTRIBUTE
Standard Servlet 2.4+ spec request attribute for forward query string.
StringERROR_STATUS_CODE_ATTRIBUTE
Standard Servlet 2.3+ spec request attribute for error page status code.
StringERROR_EXCEPTION_TYPE_ATTRIBUTE
Standard Servlet 2.3+ spec request attribute for error page exception type.
StringERROR_MESSAGE_ATTRIBUTE
Standard Servlet 2.3+ spec request attribute for error page message.
StringERROR_EXCEPTION_ATTRIBUTE
Standard Servlet 2.3+ spec request attribute for error page exception.
StringERROR_REQUEST_URI_ATTRIBUTE
Standard Servlet 2.3+ spec request attribute for error page request URI.
StringERROR_SERVLET_NAME_ATTRIBUTE
Standard Servlet 2.3+ spec request attribute for error page servlet name.
StringCONTENT_TYPE_CHARSET_PREFIX
Prefix of the charset clause in a content type String: ";charset=".
StringDEFAULT_CHARACTER_ENCODING
Default character encoding to use when request.getCharacterEncoding returns null , according to the Servlet spec.
StringTEMP_DIR_CONTEXT_ATTRIBUTE
Standard Servlet spec context attribute that specifies a temporary directory for the current web application, of type java.io.File .
StringDEFAULT_WEB_APP_ROOT_KEY
Default web app root key: "webapp.root".
String[]SUBMIT_IMAGE_SUFFIXES
Name suffixes in case of image buttons.
StringSESSION_MUTEX_ATTRIBUTE
Key for the mutex session attribute.

Method

voidclearErrorRequestAttributes(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 .
voidexposeErrorRequestAttributes(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 .
StringfindParameterValue(ServletRequest request, String name)
Obtain a named parameter from the given request parameters.
StringfindParameterValue(Map parameters, String name)
Obtain a named parameter from the given request parameters.
CookiegetCookie(HttpServletRequest request, String name)
Retrieve the first cookie with the given name.
TgetNativeRequest(ServletRequest request, @Nullable Class requiredType)
Return an appropriate request object of the specified type, if available, unwrapping the given request as far as necessary.
TgetNativeResponse(ServletResponse response, @Nullable Class requiredType)
Return an appropriate response object of the specified type, if available, unwrapping the given response as far as necessary.
MapgetParametersStartingWith(ServletRequest request, @Nullable String prefix)
Return a map containing all parameters with the given prefix.
StringgetRealPath(ServletContext servletContext, String path)
Return the real path of the given path within the web application, as provided by the servlet container.
ObjectgetSessionAttribute(HttpServletRequest request, String name)
Check the given request for a session attribute of the given name.
ObjectgetSessionMutex(HttpSession session)
Return the best available mutex for the given session: that is, an object to synchronize on for the given session.
FilegetTempDir(ServletContext servletContext)
Return the temporary directory for the current web application, as provided by the servlet container.
booleanhasSubmitParameter(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").
booleanisIncludeRequest(ServletRequest request)
Determine whether the given request is an include request, that is, not a top-level HTTP request coming in from the outside.
booleanisSameOrigin(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.
booleanisValidOrigin(HttpRequest request, Collection allowedOrigins)
Check the given request origin against a list of allowed origins.
voidremoveWebAppRootSystemProperty(ServletContext servletContext)
Remove the system property that points to the web app root directory.
voidsetSessionAttribute(HttpServletRequest request, String name, @Nullable Object value)
Set the session attribute with the given name to the given value.
voidsetWebAppRootSystemProperty(ServletContext servletContext)
Set a system property to the web application root directory.