Package sk.antons.web.filter.limiter
Class StringConf<T>
- java.lang.Object
-
- sk.antons.web.filter.limiter.StringConf<T>
-
public class StringConf<T> extends Object
String value configuration- Author:
- antons
-
-
Constructor Summary
Constructors Constructor Description StringConf(T parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanallow(String value)Implements allow check for defined includes and excludes.Tand()Back to limiter instance.StringConfexclude(String value)Adds disallow value for configuration attribute.StringConfinclude(String value)Adds allow value for configuration attribute.
-
-
-
Constructor Detail
-
StringConf
public StringConf(T parent)
-
-
Method Detail
-
and
public T and()
Back to limiter instance.- Returns:
-
include
public StringConf include(String value)
Adds allow value for configuration attribute.- Parameters:
value- value to be accepted.- Returns:
- this configuration instance
-
exclude
public StringConf exclude(String value)
Adds disallow value for configuration attribute.- Parameters:
value- value to be rejected.- Returns:
- this configuration instance
-
allow
protected boolean allow(String value)
Implements allow check for defined includes and excludes.- Parameters:
value- value to be checked- Returns:
- true if value is allowed by defined includes and excludes;
-
-