public class MatchHelper extends Object
| Constructor and Description |
|---|
MatchHelper(ETagGenerator eTagGenerator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIfMatch(Resource r,
Request req)
Check if the resource has been modified based on etags
Returns true if the match comparison indicates that the resource has NOT
been modified
Ie, returning "true" means to continue with PUT processing.
|
boolean |
checkIfNoneMatch(Resource r,
Request req)
Returns true if none of the given etags match those given in the
if-none-match header
In the usual use case of GET returning false means "do nothing
different", ie continue processing.
|
boolean |
checkIfRange(Resource r,
Request request)
Only used if a Range header is in the request.
|
public MatchHelper(ETagGenerator eTagGenerator)
public boolean checkIfMatch(Resource r, Request req)
r - req - public boolean checkIfNoneMatch(Resource r, Request req)
r - req - public boolean checkIfRange(Resource r, Request request)
Copyright © 2021 McEvoy Software Ltd. All rights reserved.