T - The UserRequest to filter.public class RegExpUserRequestFilter<T extends UserRequest> extends Object implements UserRequestFilter<T>
UserRequest based on their client,
resource, request type and time values.UserRequest| Constructor and Description |
|---|
RegExpUserRequestFilter()
Creates a new filter
|
| Modifier and Type | Method and Description |
|---|---|
RegExpUserRequestFilter<T> |
after(Date time)
Sets the minimal date to consider for the time field of the request.
|
RegExpUserRequestFilter<T> |
before(Date time)
Sets the maximal date to consider for the time field of the request.
|
RegExpUserRequestFilter<T> |
clientMatches(String regExp)
Sets the regular expression used to match the client field of the
request.
|
boolean |
filter(T request)
Returns true if the given request has to be filtered.
|
RegExpUserRequestFilter<T> |
requestTypeMatches(String regExp)
Sets the regular expression used to match the request type field of the
request.
|
RegExpUserRequestFilter<T> |
resourceMatches(String regExp)
Sets the regular expression used to match the resource field of the
request.
|
public RegExpUserRequestFilter<T> clientMatches(String regExp) throws PatternSyntaxException
regExp - The regular expression applied to the client field.PatternSyntaxException - If the regular expression can not be
compiled.Patternpublic RegExpUserRequestFilter<T> resourceMatches(String regExp) throws PatternSyntaxException
regExp - The regular expression applied to the request field.PatternSyntaxException - If the regular expression can not be
compiled.Patternpublic RegExpUserRequestFilter<T> requestTypeMatches(String regExp) throws PatternSyntaxException
regExp - The regular expression applied to the request type field.PatternSyntaxException - If the regular expression can not be
compiled.Patternpublic RegExpUserRequestFilter<T> after(Date time)
time - The minimal date.public RegExpUserRequestFilter<T> before(Date time)
time - The maximal date.public boolean filter(T request)
UserRequestFilterfilter in interface UserRequestFilter<T extends UserRequest>request - The request to consider.Copyright © 2014–2018 University of Namur. All rights reserved.