Top Description Interfaces Classes
module spring.web

Package org.springframework.web.util

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Miscellaneous web utility classes, such as HTML escaping and cookie handling.

Interface Summary

Modifier and TypeInterface and Description
public interface
UriBuilder

Builder-style methods to prepare and expand a URI template with variables.

public interface
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.

public interface
UriTemplateHandler

Defines methods for expanding a URI template with variables.

Class Summary

Modifier and TypeClass and Description
public abstract class
BindErrorUtils

Utility methods to resolve a list of MessageSourceResolvables, and optionally join them.

public class
ContentCachingRequestWrapper

jakarta.servlet.http.HttpServletRequest wrapper that caches all content read from the input stream and reader, and allows this content to be retrieved via a byte array.

public class
ContentCachingResponseWrapper

jakarta.servlet.http.HttpServletResponse wrapper that caches all content written to the output stream and writer, and allows this content to be retrieved via a byte array.

public class
CookieGenerator

Deprecated as of 6.0 in favor of org.springframework.http.ResponseCookie
Helper class for cookie generation, carrying cookie descriptor settings as bean properties and being able to add and remove cookie to/from a given response.
public class
DefaultUriBuilderFactory

UriBuilderFactory that relies on UriComponentsBuilder for the actual building of the URI.

public class
DisconnectedClientHelper

Utility methods to assist with identifying and logging exceptions that indicate the client has gone away.

public abstract class
ForwardedHeaderUtils

Utility class to assist with processing "Forwarded" and "X-Forwarded-*" headers.

pack-priv class
HierarchicalUriComponents

Extension of UriComponents for hierarchical URIs.

pack-priv class
HtmlCharacterEntityDecoder

Helper for decoding HTML Strings by replacing character entity references with the referred character.

pack-priv class
HtmlCharacterEntityReferences

Represents a set of character entity references defined by the HTML 4.0 standard.

public abstract class
HtmlUtils

Utility class for HTML escaping.

public class
HttpSessionMutexListener

Servlet HttpSessionListener that automatically exposes the session mutex when an HttpSession gets created.

public class
IntrospectorCleanupListener

Listener that flushes the JDK's JavaBeans Introspector cache on web app shutdown.

public abstract class
JavaScriptUtils

Utility class for JavaScript escaping.

public class
NestedServletException

Deprecated since 6.0. as of 6.0, in favor of standard ServletException nesting
Legacy subclass of ServletException that handles a root cause in terms of message and stacktrace.
pack-priv class
OpaqueUriComponents

Extension of UriComponents for opaque URIs.

public abstract class
ServletContextPropertyUtils

Helper class for resolving placeholders in texts.

public abstract class
ServletRequestPathUtils

Utility class to assist with preparation and access to the lookup path for request mapping purposes.

public abstract class
TagUtils

Utility class for tag library related code, exposing functionality such as translating Strings to web scopes.

public abstract class
UriComponents

Represents an immutable collection of URI components, mapping component type to String values.

public class
public class
UriTemplate

Representation of a URI template that can be expanded with URI variables via expand(Map), expand(Object[]), or matched to a URL via match(String).

public abstract class
UriUtils

Utility methods for URI encoding and decoding based on RFC 3986.

public class
UrlPathHelper

Helper class for URL path matching.

public class
WebAppRootListener

Listener that sets a system property to the web application root directory.

pack-priv class
WebUtilRuntimeHints

RuntimeHintsRegistrar implementation that registers resource hints for web util resources.

public abstract class
WebUtils

Miscellaneous utilities for web applications.