public final class StaticResourceRequest extends Object
RequestMatcher
for static resources in
commonly used locations.Modifier and Type | Class and Description |
---|---|
static class |
StaticResourceRequest.Location |
static class |
StaticResourceRequest.StaticResourceRequestMatcher
The request matcher used to match against resource
Locations . |
Modifier and Type | Method and Description |
---|---|
static StaticResourceRequest.StaticResourceRequestMatcher |
to(Set<StaticResourceRequest.Location> locations)
Returns a matcher that includes the specified
Locations . |
static StaticResourceRequest.StaticResourceRequestMatcher |
to(StaticResourceRequest.Location first,
StaticResourceRequest.Location... rest)
Returns a matcher that includes the specified
Locations . |
static StaticResourceRequest.StaticResourceRequestMatcher |
toCommonLocations()
Returns a matcher that includes all commonly used
Locations . |
public static StaticResourceRequest.StaticResourceRequestMatcher toCommonLocations()
Locations
. The
excluding
method can be used to remove specific locations if required. For example:
StaticResourceRequest.toCommonLocations().excluding(Location.CSS)
RequestMatcher
public static StaticResourceRequest.StaticResourceRequestMatcher to(StaticResourceRequest.Location first, StaticResourceRequest.Location... rest)
Locations
. For
example: StaticResourceRequest.to(Location.CSS, Location.JAVA_SCRIPT)
first
- the first location to includerest
- additional locations to includeRequestMatcher
public static StaticResourceRequest.StaticResourceRequestMatcher to(Set<StaticResourceRequest.Location> locations)
Locations
. For
example: StaticResourceRequest.to(locations)
locations
- the locations to includeRequestMatcher
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.