# Package org.springframework.web.util

@NonNullApi @NonNullFields package org.springframework.web.util
Miscellaneous web utility classes, such as HTML escaping and cookie handling.

Related Packages
Package
Description
org.springframework.web
Common, generic interfaces that define minimal boundary points between Spring's web infrastructure and other framework modules.
org.springframework.web.util.pattern
Dedicated support for matching HTTP request paths.
Class
Description
BindErrorUtils
Utility methods to resolve a list of `MessageSourceResolvable`s, and optionally join them.
ContentCachingRequestWrapper
`HttpServletRequest` wrapper that caches all content read from the input stream and reader, and allows this content to be retrieved via a `byte array`.
ContentCachingResponseWrapper
`HttpServletResponse` wrapper that caches all content written to the output stream and writer, and allows this content to be retrieved via a byte array.
CookieGenerator
Deprecated.
as of 6.0 in favor of `ResponseCookie`
DefaultUriBuilderFactory
`UriBuilderFactory` that relies on `UriComponentsBuilder` for the actual building of the URI.
DefaultUriBuilderFactory.EncodingMode
Enum to represent multiple URI encoding strategies.
DisconnectedClientHelper
Utility methods to assist with identifying and logging exceptions that indicate the server response connection is lost, for example because the client has gone away.
ForwardedHeaderUtils
Utility class to assist with processing "Forwarded" and "X-Forwarded-*" headers.
HtmlUtils
Utility class for HTML escaping.
HttpSessionMutexListener
Servlet HttpSessionListener that automatically exposes the session mutex when an HttpSession gets created.
IntrospectorCleanupListener
Listener that flushes the JDK's `JavaBeans Introspector` cache on web app shutdown.
InvalidUrlException
Thrown when a URL string cannot be parsed.
JavaScriptUtils
Utility class for JavaScript escaping.
NestedServletException
Deprecated.
as of 6.0, in favor of standard `ServletException` nesting
ServletContextPropertyUtils
Helper class for resolving placeholders in texts.
ServletRequestPathUtils
Utility class to assist with preparation and access to the lookup path for request mapping purposes.
TagUtils
Utility class for tag library related code, exposing functionality such as translating `Strings` to web scopes.
UriBuilder
Builder-style methods to prepare and expand a URI template with variables.
UriBuilderFactory
Factory to create `UriBuilder` instances with shared configuration such as a base URI, an encoding mode strategy, and others across all URI builder instances created through a factory.
UriComponents
Represents an immutable collection of URI components, mapping component type to String values.
UriComponents.UriTemplateVariables
Defines the contract for URI Template variables.
UriComponentsBuilder
Builder for `UriComponents`.
UriComponentsBuilder.ParserType
Enum to provide a choice of URI parsers to use in `UriComponentsBuilder.fromUriString(String, ParserType)`.
UriTemplate
Representation of a URI template that can be expanded with URI variables via `UriTemplate.expand(Map)` or `UriTemplate.expand(Object[])`, or matched to a URL via `UriTemplate.match(String)`.
UriTemplateHandler
Defines methods for expanding a URI template with variables.
UriUtils
Utility methods for URI encoding and decoding based on RFC 3986.
UrlPathHelper
Helper class for URL path matching.
WebAppRootListener
Listener that sets a system property to the web application root directory.
WebUtils
Miscellaneous utilities for web applications.