|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.unamur.inference.web.RegExpUserRequestFilter<T>
T - The UserRequest to filter.public class RegExpUserRequestFilter<T extends UserRequest>
This class is used to filter UserRequest based on their client,
resource, request type and time values.
UserRequest| Constructor Summary | |
|---|---|
RegExpUserRequestFilter()
Creates a new filter |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegExpUserRequestFilter()
| Method Detail |
|---|
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.Pattern
public 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.Pattern
public 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)
UserRequestFilter
filter in interface UserRequestFilter<T extends UserRequest>request - The request to consider.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||