@NonNullApi @NonNullFields

# Package org.springframework.web.util

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

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  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.UriTemplateVariables | Defines the contract for URI Template variables.
  UriTemplateHandler | Defines methods for expanding a URI template with variables.

- Class Summary
  Class | Description
  --- | ---
  AbstractUriTemplateHandler | Deprecated as of 5.0 in favor of `DefaultUriBuilderFactory`
  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 | 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.
  DefaultUriBuilderFactory | `UriBuilderFactory` that relies on `UriComponentsBuilder` for the actual building of the URI.
  DefaultUriTemplateHandler | Deprecated as of 5.0 in favor of `DefaultUriBuilderFactory`.
  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.
  JavaScriptUtils | Utility class for JavaScript escaping.
  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.
  UriComponents | Represents an immutable collection of URI components, mapping component type to String values.
  UriComponentsBuilder | Builder for `UriComponents`.
  UriTemplate | Representation of a URI template that can be expanded with URI variables via `UriTemplate.expand(Map)`, `UriTemplate.expand(Object[])`, or matched to a URL via `UriTemplate.match(String)`.
  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.

- Enum Summary
  Enum | Description
  --- | ---
  DefaultUriBuilderFactory.EncodingMode | Enum to represent multiple URI encoding strategies.

- Exception Summary
  Exception | Description
  --- | ---
  NestedServletException | Subclass of `ServletException` that properly handles a root cause in terms of message and stacktrace, just like NestedChecked/RuntimeException does.

## Package org.springframework.web.util Description

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