public final class StaticResourceRequest extends Object
ServerWebExchangeMatcher for static resources in commonly used
 locations. Returned by PathRequest.toStaticResources().PathRequest| Modifier and Type | Class and Description | 
|---|---|
static class  | 
StaticResourceRequest.StaticResourceServerWebExchange
The server web exchange matcher used to match against resource
  
locations. | 
| Modifier and Type | Method and Description | 
|---|---|
StaticResourceRequest.StaticResourceServerWebExchange | 
at(Set<StaticResourceLocation> locations)
Returns a matcher that includes the specified  
Locations. | 
StaticResourceRequest.StaticResourceServerWebExchange | 
at(StaticResourceLocation first,
  StaticResourceLocation... rest)
Returns a matcher that includes the specified  
Locations. | 
StaticResourceRequest.StaticResourceServerWebExchange | 
atCommonLocations()
Returns a matcher that includes all commonly used  
Locations. | 
public StaticResourceRequest.StaticResourceServerWebExchange atCommonLocations()
Locations. The
 excluding method can be used to remove specific locations if required. For
 example: PathRequest.toStaticResources().atCommonLocations().excluding(StaticResourceLocation.CSS)
ServerWebExchangeMatcherpublic StaticResourceRequest.StaticResourceServerWebExchange at(StaticResourceLocation first, StaticResourceLocation... rest)
Locations. For example: PathRequest.toStaticResources().at(StaticResourceLocation.CSS, StaticResourceLocation.JAVA_SCRIPT)
first - the first location to includerest - additional locations to includeServerWebExchangeMatcherpublic StaticResourceRequest.StaticResourceServerWebExchange at(Set<StaticResourceLocation> locations)
Locations. For example: PathRequest.toStaticResources().at(locations)
locations - the locations to includeServerWebExchangeMatcher