程序包 org.springframework.web.util
Miscellaneous web utility classes, such as HTML escaping, Log4j initialization, and cookie handling.
接口概要 接口 说明 UriBuilder Builder-style methods to prepare and expand a URI template with variables.UriBuilderFactory 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.UriComponents.UriTemplateVariables Defines the contract for URI Template variables.UriTemplateHandler Defines methods for expanding a URI template with variables.类概要 类 说明 AbstractUriTemplateHandler 已过时。 as of 5.0 in favor ofDefaultUriBuilderFactory
ContentCachingRequestWrapper HttpServletRequest
wrapper that caches all content read from the input stream and reader, and allows this content to be retrieved via abyte array
.ContentCachingResponseWrapper HttpServletResponse
wrapper that caches all content written to the output stream and writer, and allows this content to be retrieved via abyte 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 onUriComponentsBuilder
for the actual building of the URI.DefaultUriTemplateHandler 已过时。 as of 5.0 in favor ofDefaultUriBuilderFactory
.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'sJavaBeans Introspector
cache on web app shutdown.JavaScriptUtils Utility class for JavaScript escaping.ServletContextPropertyUtils Helper class for resolving placeholders in texts.TagUtils Utility class for tag library related code, exposing functionality such as translatingStrings
to web scopes.UriComponents Represents an immutable collection of URI components, mapping component type to String values.UriComponentsBuilder Builder forUriComponents
.UriTemplate Representation of a URI template that can be expanded with URI variables viaUriTemplate.expand(Map)
,UriTemplate.expand(Object[])
, or matched to a URL viaUriTemplate.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.枚举概要 枚举 说明 DefaultUriBuilderFactory.EncodingMode Enum to represent multiple URI encoding strategies.异常错误概要 异常错误 说明 NestedServletException Subclass ofServletException
that properly handles a root cause in terms of message and stacktrace, just like NestedChecked/RuntimeException does.