Class PathRequest
- java.lang.Object
- org.springframework.boot.autoconfigure.security.servlet.PathRequest
public final class PathRequest extends Object
Factory that can be used to create aRequestMatcherfor commonly used paths.- Since:
- 2.0.0
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPathRequest.H2ConsoleRequestMatcherThe request matcher used to match against h2 console path.
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathRequest.H2ConsoleRequestMatchertoH2Console()Returns a matcher that includes the H2 console location.static StaticResourceRequesttoStaticResources()Returns aStaticResourceRequestthat can be used to create a matcher forlocations.
Method Detail
toStaticResources
public static StaticResourceRequest toStaticResources()
Returns aStaticResourceRequestthat can be used to create a matcher forlocations.- Returns:
- a
StaticResourceRequest
toH2Console
public static PathRequest.H2ConsoleRequestMatcher toH2Console()
Returns a matcher that includes the H2 console location. For example:PathRequest.toH2Console()
- Returns:
- the configured
RequestMatcher