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 aRequestMatcher
for commonly used paths.- Since:
- 2.0.0
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PathRequest.H2ConsoleRequestMatcher
The request matcher used to match against h2 console path.
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathRequest.H2ConsoleRequestMatcher
toH2Console()
Returns a matcher that includes the H2 console location.static StaticResourceRequest
toStaticResources()
Returns aStaticResourceRequest
that can be used to create a matcher forlocations
.
Method Detail
toStaticResources
public static StaticResourceRequest toStaticResources()
Returns aStaticResourceRequest
that 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