Uses of Class
org.springframework.web.util.UrlPathHelper
Package
Description
This package contains classes used to determine the requested the media types in a request.
Support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor
strategy.Annotation-based setup for Spring MVC.
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
Standard controller implementations for the Servlet MVC framework that comes with
Spring.
Common MVC logic for matching incoming requests based on conditions.
Servlet-based infrastructure for handler method processing,
building on the
org.springframework.web.method
package.MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.Support classes for serving static resources.
Support classes for Spring's web MVC framework.
Support for annotation-based WebSocket setup in configuration classes.
Miscellaneous web utility classes, such as HTML escaping and cookie handling.
-
Uses of UrlPathHelper in org.springframework.web.accept
Modifier and TypeMethodDescriptionvoid
PathExtensionContentNegotiationStrategy.setUrlPathHelper
(UrlPathHelper urlPathHelper) Deprecated.Configure aUrlPathHelper
to use inPathExtensionContentNegotiationStrategy.getMediaTypeKey(org.springframework.web.context.request.NativeWebRequest)
in order to derive the lookup path for a target request URL path. -
Uses of UrlPathHelper in org.springframework.web.cors
Modifier and TypeMethodDescriptionvoid
UrlBasedCorsConfigurationSource.setUrlPathHelper
(UrlPathHelper urlPathHelper) Configure theUrlPathHelper
to resolve the lookupPath. -
Uses of UrlPathHelper in org.springframework.web.servlet.config.annotation
Modifier and TypeMethodDescriptionPathMatchConfigurer.getUrlPathHelper()
protected UrlPathHelper
PathMatchConfigurer.getUrlPathHelperOrDefault()
Return the configured UrlPathHelper or a default, shared instance otherwise.WebMvcConfigurationSupport.mvcUrlPathHelper()
Return a globalUrlPathHelper
instance which is used to resolve the request mapping path for an application.Modifier and TypeMethodDescriptionPathMatchConfigurer.setUrlPathHelper
(UrlPathHelper urlPathHelper) Set the UrlPathHelper to use to resolve the mapping path for the application.ModifierConstructorDescriptionResourceHandlerRegistry
(ApplicationContext applicationContext, ServletContext servletContext, ContentNegotiationManager contentNegotiationManager, UrlPathHelper pathHelper) A variant ofResourceHandlerRegistry(ApplicationContext, ServletContext, ContentNegotiationManager)
that also accepts theUrlPathHelper
used for mapping requests to static resources. -
Uses of UrlPathHelper in org.springframework.web.servlet.handler
Modifier and TypeMethodDescriptionAbstractHandlerMapping.getUrlPathHelper()
Return theconfigured
UrlPathHelper
.Modifier and TypeMethodDescriptionvoid
AbstractHandlerMapping.setUrlPathHelper
(UrlPathHelper urlPathHelper) Configure the UrlPathHelper to use for resolution of lookup paths. -
Uses of UrlPathHelper in org.springframework.web.servlet.mvc
Modifier and TypeMethodDescriptionprotected UrlPathHelper
AbstractUrlViewController.getUrlPathHelper()
Return the UrlPathHelper to use for the resolution of lookup paths.Modifier and TypeMethodDescriptionvoid
AbstractUrlViewController.setUrlPathHelper
(UrlPathHelper urlPathHelper) Set the UrlPathHelper to use for the resolution of lookup paths.void
WebContentInterceptor.setUrlPathHelper
(UrlPathHelper urlPathHelper) Deprecated. -
Uses of UrlPathHelper in org.springframework.web.servlet.mvc.condition
ModifierConstructorDescriptionPatternsRequestCondition
(String[] patterns, UrlPathHelper urlPathHelper, PathMatcher pathMatcher, boolean useTrailingSlashMatch) Deprecated.as of 5.3 in favor ofPatternsRequestCondition(String[], boolean, PathMatcher)
.PatternsRequestCondition
(String[] patterns, UrlPathHelper urlPathHelper, PathMatcher pathMatcher, boolean useSuffixPatternMatch, boolean useTrailingSlashMatch) Deprecated.as of 5.2.4.PatternsRequestCondition
(String[] patterns, UrlPathHelper urlPathHelper, PathMatcher pathMatcher, boolean useSuffixPatternMatch, boolean useTrailingSlashMatch, List<String> fileExtensions) Deprecated.as of 5.2.4. -
Uses of UrlPathHelper in org.springframework.web.servlet.mvc.method
Modifier and TypeMethodDescriptionRequestMappingInfo.BuilderConfiguration.getUrlPathHelper()
Deprecated.as of 5.3, the path is resolved externally and obtained withServletRequestPathUtils.getCachedPathValue(ServletRequest)
; this method always returnsdefaultInstance
.Modifier and TypeMethodDescriptionvoid
RequestMappingInfo.BuilderConfiguration.setUrlPathHelper
(UrlPathHelper urlPathHelper) Deprecated.as of 5.3, the path is resolved externally and obtained withServletRequestPathUtils.getCachedPathValue(ServletRequest)
-
Uses of UrlPathHelper in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeMethodDescriptionvoid
ServletCookieValueMethodArgumentResolver.setUrlPathHelper
(UrlPathHelper urlPathHelper) Set theUrlPathHelper
to use to decode cookie values with viadecodeRequestString(HttpServletRequest, String)
. -
Uses of UrlPathHelper in org.springframework.web.servlet.resource
Modifier and TypeMethodDescriptionPathResourceResolver.getUrlPathHelper()
The configuredUrlPathHelper
.ResourceHttpRequestHandler.getUrlPathHelper()
The configuredUrlPathHelper
.ResourceUrlProvider.getUrlPathHelper()
Return the configuredUrlPathHelper
.Modifier and TypeMethodDescriptionvoid
PathResourceResolver.setUrlPathHelper
(UrlPathHelper urlPathHelper) Provide a reference to theUrlPathHelper
used to map requests to static resources.void
ResourceHttpRequestHandler.setUrlPathHelper
(UrlPathHelper urlPathHelper) Provide a reference to theUrlPathHelper
used to map requests to static resources.void
ResourceUrlProvider.setUrlPathHelper
(UrlPathHelper urlPathHelper) Configure aUrlPathHelper
to use inResourceUrlProvider.getForRequestUrl(jakarta.servlet.http.HttpServletRequest, String)
in order to derive the lookup path for a target request URL path. -
Uses of UrlPathHelper in org.springframework.web.servlet.support
Modifier and TypeMethodDescriptionAbstractFlashMapManager.getUrlPathHelper()
Return the UrlPathHelper implementation to use.RequestContext.getUrlPathHelper()
Return the UrlPathHelper used for context path and request URI decoding.Modifier and TypeMethodDescriptionvoid
AbstractFlashMapManager.setUrlPathHelper
(UrlPathHelper urlPathHelper) Set the UrlPathHelper to use to match FlashMap instances to requests.void
RequestContext.setUrlPathHelper
(UrlPathHelper urlPathHelper) Set the UrlPathHelper to use for context path and request URI decoding. -
Uses of UrlPathHelper in org.springframework.web.socket.config.annotation
Modifier and TypeMethodDescriptionServletWebSocketHandlerRegistry.getUrlPathHelper()
protected UrlPathHelper
WebMvcStompEndpointRegistry.getUrlPathHelper()
Modifier and TypeMethodDescriptionvoid
ServletWebSocketHandlerRegistry.setUrlPathHelper
(UrlPathHelper urlPathHelper) Set the UrlPathHelper to configure on theSimpleUrlHandlerMapping
used to map handshake requests.void
StompEndpointRegistry.setUrlPathHelper
(UrlPathHelper urlPathHelper) Configure a customizedUrlPathHelper
for the STOMP endpointHandlerMapping
.void
WebMvcStompEndpointRegistry.setUrlPathHelper
(UrlPathHelper urlPathHelper) Set the UrlPathHelper to configure on theHandlerMapping
used to map handshake requests. -
Uses of UrlPathHelper in org.springframework.web.util
Modifier and TypeFieldDescriptionstatic final UrlPathHelper
UrlPathHelper.defaultInstance
Shared, read-only instance with defaults.static final UrlPathHelper
UrlPathHelper.rawPathInstance
Shared, read-only instance for the full, encoded path.
ServletRequestPathUtils.getCachedPathValue(ServletRequest)