public static final class StaticResourceRequest.StaticResourceRequestMatcher extends ApplicationContextRequestMatcher<ServerProperties>
Locations
.Modifier and Type | Method and Description |
---|---|
StaticResourceRequest.StaticResourceRequestMatcher |
excluding(Set<StaticResourceRequest.Location> locations)
Return a new
StaticResourceRequest.StaticResourceRequestMatcher based on this one but
excluding the specified locations. |
StaticResourceRequest.StaticResourceRequestMatcher |
excluding(StaticResourceRequest.Location first,
StaticResourceRequest.Location... rest)
Return a new
StaticResourceRequest.StaticResourceRequestMatcher based on this one but
excluding the specified locations. |
protected void |
initialized(ServerProperties serverProperties)
Called once the context has been initialized.
|
protected boolean |
matches(HttpServletRequest request,
ServerProperties context)
Decides whether the rule implemented by the strategy matches the supplied request.
|
matches
public StaticResourceRequest.StaticResourceRequestMatcher excluding(StaticResourceRequest.Location first, StaticResourceRequest.Location... rest)
StaticResourceRequest.StaticResourceRequestMatcher
based on this one but
excluding the specified locations.first
- the first location to excluderest
- additional locations to excludeStaticResourceRequest.StaticResourceRequestMatcher
public StaticResourceRequest.StaticResourceRequestMatcher excluding(Set<StaticResourceRequest.Location> locations)
StaticResourceRequest.StaticResourceRequestMatcher
based on this one but
excluding the specified locations.locations
- the locations to excludeStaticResourceRequest.StaticResourceRequestMatcher
protected void initialized(ServerProperties serverProperties)
ApplicationContextRequestMatcher
initialized
in class ApplicationContextRequestMatcher<ServerProperties>
serverProperties
- the initialized contextprotected boolean matches(HttpServletRequest request, ServerProperties context)
ApplicationContextRequestMatcher
matches
in class ApplicationContextRequestMatcher<ServerProperties>
request
- the source requestcontext
- the context instanceCopyright © 2017 Pivotal Software, Inc.. All rights reserved.