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: StaticResourceRequest.atCommonLocations().excluding(StaticResourceLocation.CSS)
ServerWebExchangeMatcher
public StaticResourceRequest.StaticResourceServerWebExchange at(StaticResourceLocation first, StaticResourceLocation... rest)
Locations
. For example: at(StaticResourceLocation.CSS, StaticResourceLocation.JAVA_SCRIPT)
first
- the first location to includerest
- additional locations to includeServerWebExchangeMatcher
public StaticResourceRequest.StaticResourceServerWebExchange at(Set<StaticResourceLocation> locations)
Locations
. For example: at(locations)
locations
- the locations to includeServerWebExchangeMatcher
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.