com.stormpath.spring.util.SpringPatternMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stormpath-spring-webmvc Show documentation
Show all versions of stormpath-spring-webmvc Show documentation
Web MVC support for Stormpath-enabled Spring applications.
package com.stormpath.spring.util;
import com.stormpath.sdk.servlet.util.PatternMatcher;
import org.springframework.util.PathMatcher;
/**
* A {@code PatternMatcher} implementation that delegates to a Spring {@link PathMatcher} instance/
*
* @since 1.0.0
*/
public class SpringPatternMatcher implements PatternMatcher {
private final PathMatcher pathMatcher;
public SpringPatternMatcher(PathMatcher pathMatcher) {
this.pathMatcher = pathMatcher;
}
@Override
public boolean matches(String pattern, String source) {
return this.pathMatcher.match(pattern, source);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy