public class PathConf<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PathConf.Combo |
static class |
PathConf.ComboConf |
| Modifier and Type | Field and Description |
|---|---|
protected List<PathConf.Combo> |
excludes |
protected List<PathConf.Combo> |
includes |
| Modifier and Type | Method and Description |
|---|---|
T |
and()
Back to limiter instance.
|
PathConf<T> |
exclude(String pattern)
Add exclude path matcher
|
PathConf<T> |
exclude(String pattern,
String method)
Add exclude path matcher
|
PathConf<T> |
exclude(String pattern,
String method,
String ip,
String host,
String contenttype,
ResponseStatusCheck responseStatusCheck)
Add exclude path matcher
|
PathConf<T> |
include(String pattern)
Add include path matcher
|
PathConf<T> |
include(String pattern,
String method)
Add include path matcher
|
PathConf<T> |
include(String pattern,
String method,
String ip,
String host,
String contenttype,
ResponseStatusCheck responseStatusCheck)
Add include path matcher
|
PathConf<T> |
reset(int max)
Clears all setting for path configuration.
|
protected List<PathConf.Combo> includes
protected List<PathConf.Combo> excludes
protected PathConf(T parent)
public T and()
public PathConf<T> reset(int max)
max - maximal number of path element which may occure.public PathConf<T> include(String pattern)
pattern - pattern for path matcher (mandatory)public PathConf<T> include(String pattern, String method)
pattern - pattern for path matcher (mandatory)method - method applied together with matcher if is is not nullpublic PathConf<T> include(String pattern, String method, String ip, String host, String contenttype, ResponseStatusCheck responseStatusCheck)
pattern - pattern for path matcher (mandatory)method - method applied together with matcher if is is not nullip - ip address applied together with matcher if is is not nullhost - host name applied together with matcher if is is not nullcontenttype - content type applied together with matcher if is is not nullresponseStatusCheck - method applied together with matcher if is is not nullpublic PathConf<T> exclude(String pattern)
pattern - pattern for path matcher (mandatory)public PathConf<T> exclude(String pattern, String method)
pattern - pattern for path matcher (mandatory)method - method applied together with matcher if is is not nullpublic PathConf<T> exclude(String pattern, String method, String ip, String host, String contenttype, ResponseStatusCheck responseStatusCheck)
pattern - pattern for path matcher (mandatory)method - method applied together with matcher if is is not nullip - ip address applied together with matcher if is is not nullhost - host name applied together with matcher if is is not nullcontenttype - content type applied together with matcher if is is not nullresponseStatusCheck - method applied together with matcher if is is not nullCopyright © 2020. All rights reserved.