接口的使用
org.springframework.util.PathMatcher
使用PathMatcher的程序包 程序包 说明 org.springframework.core.io.support Support classes for Spring's resource abstraction.org.springframework.messaging.handler Basic abstractions for working with message handler methods.org.springframework.messaging.simp.annotation.support Support classes for handling messages from simple messaging protocols (like STOMP).org.springframework.messaging.simp.broker Provides a "simple" message broker implementation along with an abstract base class and other supporting types such as a registry for subscriptions.org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.messaging.simp.user Support for handling messages to "user" destinations (i.e. destinations that are unique to a user's sessions), primarily translating the destinations and then forwarding the updated message to the broker.org.springframework.util Miscellaneous utility classes, such as String manipulation utilities, a Log4J configurer, and a state holder for paged lists of objects.org.springframework.web.cors Support for CORS (Cross-Origin Resource Sharing), based on a commonCorsProcessorstrategy.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.handler Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.org.springframework.web.servlet.mvc Standard controller implementations for the Servlet MVC framework that comes with Spring.org.springframework.web.servlet.mvc.condition Common MVC logic for matching incoming requests based on conditions.org.springframework.web.servlet.mvc.method Servlet-based infrastructure for handler method processing, building on theorg.springframework.web.methodpackage.org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.core.io.support中PathMatcher的使用
返回PathMatcher的org.springframework.core.io.support中的方法 修饰符和类型 方法 说明 PathMatcherPathMatchingResourcePatternResolver. getPathMatcher()Return the PathMatcher that this resource pattern resolver uses.参数类型为PathMatcher的org.springframework.core.io.support中的方法 修饰符和类型 方法 说明 voidPathMatchingResourcePatternResolver. setPathMatcher(PathMatcher pathMatcher)Set the PathMatcher implementation to use for this resource pattern resolver.org.springframework.messaging.handler中PathMatcher的使用
参数类型为PathMatcher的org.springframework.messaging.handler中的构造器 构造器 说明 DestinationPatternsMessageCondition(String[] patterns, PathMatcher matcher)Constructor with patterns and aPathMatcherinstance.org.springframework.messaging.simp.annotation.support中PathMatcher的使用
返回PathMatcher的org.springframework.messaging.simp.annotation.support中的方法 修饰符和类型 方法 说明 PathMatcherSimpAnnotationMethodMessageHandler. getPathMatcher()Return the PathMatcher implementation to use for matching destinations.参数类型为PathMatcher的org.springframework.messaging.simp.annotation.support中的方法 修饰符和类型 方法 说明 voidSimpAnnotationMethodMessageHandler. setPathMatcher(PathMatcher pathMatcher)Set the PathMatcher implementation to use for matching destinations against configured destination patterns.org.springframework.messaging.simp.broker中PathMatcher的使用
返回PathMatcher的org.springframework.messaging.simp.broker中的方法 修饰符和类型 方法 说明 PathMatcherDefaultSubscriptionRegistry. getPathMatcher()Return the configuredPathMatcher.参数类型为PathMatcher的org.springframework.messaging.simp.broker中的方法 修饰符和类型 方法 说明 voidDefaultSubscriptionRegistry. setPathMatcher(PathMatcher pathMatcher)Specify thePathMatcherto use.voidSimpleBrokerMessageHandler. setPathMatcher(PathMatcher pathMatcher)When configured, the given PathMatcher is passed down to the underlying SubscriptionRegistry to use for matching destination to subscriptions.org.springframework.messaging.simp.config中PathMatcher的使用
返回PathMatcher的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 PathMatcherAbstractMessageBrokerConfiguration. getPathMatcher()Provide access to the configured PatchMatcher for access from other configuration classes.protected PathMatcherMessageBrokerRegistry. getPathMatcher()参数类型为PathMatcher的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 MessageBrokerRegistryMessageBrokerRegistry. setPathMatcher(PathMatcher pathMatcher)Configure the PathMatcher to use to match the destinations of incoming messages to@MessageMappingand@SubscribeMappingmethods.org.springframework.messaging.simp.user中PathMatcher的使用
参数类型为PathMatcher的org.springframework.messaging.simp.user中的方法 修饰符和类型 方法 说明 voidDefaultUserDestinationResolver. setPathMatcher(PathMatcher pathMatcher)已过时。as of 4.3.14 this property is no longer used and is replaced byDefaultUserDestinationResolver.setRemoveLeadingSlash(boolean)that indicates more explicitly whether to keep the leading slash which may or may not be the case regardless of how thePathMatcheris configured.org.springframework.util中PathMatcher的使用
实现PathMatcher的org.springframework.util中的类 修饰符和类型 类 说明 classAntPathMatcherPathMatcherimplementation for Ant-style path patterns.返回PathMatcher的org.springframework.util中的方法 修饰符和类型 方法 说明 PathMatcherSimpleRouteMatcher. getPathMatcher()Return the underlyingPathMatcherdelegate.参数类型为PathMatcher的org.springframework.util中的构造器 构造器 说明 SimpleRouteMatcher(PathMatcher pathMatcher)Create a newSimpleRouteMatcherfor the givenPathMatcherdelegate.org.springframework.web.cors中PathMatcher的使用
参数类型为PathMatcher的org.springframework.web.cors中的方法 修饰符和类型 方法 说明 voidUrlBasedCorsConfigurationSource. setPathMatcher(PathMatcher pathMatcher)Set the PathMatcher implementation to use for matching URL paths against registered URL patterns.org.springframework.web.servlet.config.annotation中PathMatcher的使用
返回PathMatcher的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 PathMatcherPathMatchConfigurer. getPathMatcher()PathMatcherWebMvcConfigurationSupport. mvcPathMatcher()Return a globalPathMatcherinstance for path matching patterns inHandlerMappings.参数类型为PathMatcher的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 InterceptorRegistrationInterceptorRegistration. pathMatcher(PathMatcher pathMatcher)A PathMatcher implementation to use with this interceptor.HandlerMappingWebMvcConfigurationSupport. resourceHandlerMapping(UrlPathHelper urlPathHelper, PathMatcher pathMatcher, ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)Return a handler mapping ordered at Integer.MAX_VALUE-1 with mapped resource handlers.PathMatchConfigurerPathMatchConfigurer. setPathMatcher(PathMatcher pathMatcher)Set the PathMatcher implementation to use for matching URL paths against registered URL patterns.HandlerMappingWebMvcConfigurationSupport. viewControllerHandlerMapping(PathMatcher pathMatcher, UrlPathHelper urlPathHelper, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)Return a handler mapping ordered at 1 to map URL paths directly to view names.org.springframework.web.servlet.handler中PathMatcher的使用
返回PathMatcher的org.springframework.web.servlet.handler中的方法 修饰符和类型 方法 说明 PathMatcherAbstractHandlerMapping. getPathMatcher()Return the PathMatcher implementation to use for matching URL paths against registered URL patterns.PathMatcherMappedInterceptor. getPathMatcher()The configured PathMatcher, ornullif none.参数类型为PathMatcher的org.springframework.web.servlet.handler中的方法 修饰符和类型 方法 说明 booleanMappedInterceptor. matches(String lookupPath, PathMatcher pathMatcher)Determine a match for the given lookup path.voidAbstractHandlerMapping. setPathMatcher(PathMatcher pathMatcher)Set the PathMatcher implementation to use for matching URL paths against registered URL patterns.voidMappedInterceptor. setPathMatcher(PathMatcher pathMatcher)Configure a PathMatcher to use with this MappedInterceptor instead of the one passed by default to theMappedInterceptor.matches(String, org.springframework.util.PathMatcher)method.参数类型为PathMatcher的org.springframework.web.servlet.handler中的构造器 构造器 说明 RequestMatchResult(String matchingPattern, String lookupPath, PathMatcher pathMatcher)Create an instance with a matching pattern.org.springframework.web.servlet.mvc中PathMatcher的使用
参数类型为PathMatcher的org.springframework.web.servlet.mvc中的方法 修饰符和类型 方法 说明 voidWebContentInterceptor. setPathMatcher(PathMatcher pathMatcher)Set the PathMatcher implementation to use for matching URL paths against registered URL patterns, for determining cache mappings.org.springframework.web.servlet.mvc.condition中PathMatcher的使用
参数类型为PathMatcher的org.springframework.web.servlet.mvc.condition中的构造器 构造器 说明 PatternsRequestCondition(String[] patterns, UrlPathHelper urlPathHelper, PathMatcher pathMatcher, boolean useTrailingSlashMatch)Alternative constructor with additional, optionalUrlPathHelper,PathMatcher, and whether to automatically match trailing slashes.PatternsRequestCondition(String[] patterns, UrlPathHelper urlPathHelper, PathMatcher pathMatcher, boolean useSuffixPatternMatch, boolean useTrailingSlashMatch)已过时。as of 5.2.4.PatternsRequestCondition(String[] patterns, UrlPathHelper urlPathHelper, PathMatcher pathMatcher, boolean useSuffixPatternMatch, boolean useTrailingSlashMatch, List<String> fileExtensions)已过时。as of 5.2.4.org.springframework.web.servlet.mvc.method中PathMatcher的使用
返回PathMatcher的org.springframework.web.servlet.mvc.method中的方法 修饰符和类型 方法 说明 PathMatcherRequestMappingInfo.BuilderConfiguration. getPathMatcher()Return a custom PathMatcher to use for the PatternsRequestCondition, if any.参数类型为PathMatcher的org.springframework.web.servlet.mvc.method中的方法 修饰符和类型 方法 说明 voidRequestMappingInfo.BuilderConfiguration. setPathMatcher(PathMatcher pathMatcher)Set a custom PathMatcher to use for the PatternsRequestCondition.org.springframework.web.servlet.resource中PathMatcher的使用
返回PathMatcher的org.springframework.web.servlet.resource中的方法 修饰符和类型 方法 说明 PathMatcherResourceUrlProvider. getPathMatcher()Return the configuredPathMatcher.参数类型为PathMatcher的org.springframework.web.servlet.resource中的方法 修饰符和类型 方法 说明 voidResourceUrlProvider. setPathMatcher(PathMatcher pathMatcher)Configure aPathMatcherto use when comparing target lookup path against resource mappings.