public final class StaticResourceRequest extends Object
RequestMatcher for static resources in commonly used
locations. Returned by PathRequest.toStaticResources().PathRequest| Modifier and Type | Class and Description |
|---|---|
static class |
StaticResourceRequest.StaticResourceRequestMatcher
The request matcher used to match against resource
Locations. |
| Modifier and Type | Method and Description |
|---|---|
StaticResourceRequest.StaticResourceRequestMatcher |
at(Set<StaticResourceLocation> locations)
Returns a matcher that includes the specified
Locations. |
StaticResourceRequest.StaticResourceRequestMatcher |
at(StaticResourceLocation first,
StaticResourceLocation... rest)
Returns a matcher that includes the specified
Locations. |
StaticResourceRequest.StaticResourceRequestMatcher |
atCommonLocations()
Returns a matcher that includes all commonly used
Locations. |
public StaticResourceRequest.StaticResourceRequestMatcher atCommonLocations()
Locations. The
excluding method can be used to remove specific locations if required. For
example: PathRequest.toStaticResources().atCommonLocations().excluding(StaticResourceLocation.CSS)
RequestMatcherpublic StaticResourceRequest.StaticResourceRequestMatcher 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 includeRequestMatcherpublic StaticResourceRequest.StaticResourceRequestMatcher at(Set<StaticResourceLocation> locations)
Locations. For example: PathRequest.toStaticResources().at(locations)
locations - the locations to includeRequestMatcherCopyright © 2020 Pivotal Software, Inc.. All rights reserved.