public final class MatchingService extends Object
Implementation note: all fields are immutable.
Constructor and Description |
---|
MatchingService(Service service,
URIPattern pattern,
URIResolveResult result)
Creates a new matching service.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCacheable()
Indicates whether this response is cacheable.
|
URIPattern |
pattern()
Always returns the matching URI pattern.
|
URIResolveResult |
result()
Always returns the resolved URI variables.
|
Service |
service()
Always returns the matched service (always a value).
|
public MatchingService(Service service, URIPattern pattern, URIResolveResult result)
service
- The matched service.pattern
- The URI pattern it matched.result
- The resolved URI variables.public boolean isCacheable()
A response is cacheable only is the service has been found and all its generators are cacheable.
true
if this response is cacheable;
false
otherwise.public Service service()
null
).public URIPattern pattern()
null
).public URIResolveResult result()
null
).Copyright © 2016 Allette Systems. All rights reserved.