Package org.springframework.web.util
@NullMarked
package org.springframework.web.util
Miscellaneous web utility classes, such as HTML escaping and cookie handling.
-
ClassDescriptionUtility methods to resolve a list of
MessageSourceResolvable
s, and optionally join them.HttpServletRequest
wrapper that caches all content read from the input stream and reader, and allows this content to be retrieved via abyte array
.HttpServletResponse
wrapper that caches all content written to the output stream and writer, and allows this content to be retrieved via a byte array.Deprecated, for removal: This API element is subject to removal in a future version.UriBuilderFactory
that relies onUriComponentsBuilder
for the actual building of the URI.Enum to represent multiple URI encoding strategies.Utility methods to assist with identifying and logging exceptions that indicate the client has gone away.Utility class to assist with processing "Forwarded" and "X-Forwarded-*" headers.Utility class for HTML escaping.Servlet HttpSessionListener that automatically exposes the session mutex when an HttpSession gets created.Listener that flushes the JDK'sJavaBeans Introspector
cache on web app shutdown.Thrown when a URL string cannot be parsed.Utility class for JavaScript escaping.Deprecated.as of 6.0, in favor of standardServletException
nestingHelper class for resolving placeholders in texts.Utility class to assist with preparation and access to the lookup path for request mapping purposes.Utility class for tag library related code, exposing functionality such as translatingStrings
to web scopes.Builder-style methods to prepare and expand a URI template with variables.Factory to createUriBuilder
instances with shared configuration such as a base URI, an encoding mode strategy, and others across all URI builder instances created through a factory.Represents an immutable collection of URI components, mapping component type to String values.Defines the contract for URI Template variables.Builder forUriComponents
.Enum to provide a choice of URI parsers to use inUriComponentsBuilder.fromUriString(String, ParserType)
.Representation of a URI template that can be expanded with URI variables viaUriTemplate.expand(Map)
orUriTemplate.expand(Object[])
, or matched to a URL viaUriTemplate.match(String)
.Defines methods for expanding a URI template with variables.Utility methods for URI encoding and decoding based on RFC 3986.Helper class for URL path matching.Listener that sets a system property to the web application root directory.Miscellaneous utilities for web applications.
ResponseCookie
for removal in 7.1