Class StaticResourceRequest
java.lang.Object
org.springframework.boot.autoconfigure.security.reactive.StaticResourceRequest
Used to create a 
ServerWebExchangeMatcher for static resources in commonly used
 locations. Returned by PathRequest.toStaticResources().- Since:
- 2.0.0
- Author:
- Madhura Bhave
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classThe server web exchange matcher used to match against resourcelocations.
- 
Method SummaryModifier and TypeMethodDescriptionat(Set<StaticResourceLocation> locations) Returns a matcher that includes the specifiedLocations.at(StaticResourceLocation first, StaticResourceLocation... rest) Returns a matcher that includes the specifiedLocations.Returns a matcher that includes all commonly usedLocations.
- 
Method Details- 
atCommonLocationsReturns a matcher that includes all commonly usedLocations. Theexcludingmethod can be used to remove specific locations if required. For example:PathRequest.toStaticResources().atCommonLocations().excluding(StaticResourceLocation.CSS) - Returns:
- the configured ServerWebExchangeMatcher
 
- 
atpublic StaticResourceRequest.StaticResourceServerWebExchange at(StaticResourceLocation first, StaticResourceLocation... rest) Returns a matcher that includes the specifiedLocations. For example:PathRequest.toStaticResources().at(StaticResourceLocation.CSS, StaticResourceLocation.JAVA_SCRIPT) - Parameters:
- first- the first location to include
- rest- additional locations to include
- Returns:
- the configured ServerWebExchangeMatcher
 
- 
atpublic StaticResourceRequest.StaticResourceServerWebExchange at(Set<StaticResourceLocation> locations) Returns a matcher that includes the specifiedLocations. For example:PathRequest.toStaticResources().at(locations) - Parameters:
- locations- the locations to include
- Returns:
- the configured ServerWebExchangeMatcher
 
 
-