Package org.swisspush.gateleen.logging
Class RequestPropertyFilter
- java.lang.Object
-
- org.swisspush.gateleen.logging.RequestPropertyFilter
-
public class RequestPropertyFilter extends Object
Class RequestPropertyFilter provides methods to filterProperty requests.- Author:
- https://github.com/mcweba [Marc-Andre Weber]
-
-
Constructor Summary
Constructors Constructor Description RequestPropertyFilter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilterResultfilterProperty(io.vertx.core.http.HttpServerRequest request, String filterPropertyKey, String filterPropertyValue, boolean reject)Check the provided request against the filterProperty values (key, value) and return aFilterResultdefining whether to filterProperty the request or not.
-
-
-
Field Detail
-
URL
public static final String URL
- See Also:
- Constant Field Values
-
METHOD
public static final String METHOD
- See Also:
- Constant Field Values
-
-
Method Detail
-
filterProperty
public static FilterResult filterProperty(io.vertx.core.http.HttpServerRequest request, String filterPropertyKey, String filterPropertyValue, boolean reject)
Check the provided request against the filterProperty values (key, value) and return aFilterResultdefining whether to filterProperty the request or not.- Parameters:
request- the request to be checked to filterProperty or notfilterPropertyKey- the key of the filterProperty e.g. url, methodfilterPropertyValue- the value of the filterPropertyreject- boolean value from the filterProperty entry called "reject"- Returns:
- the
FilterResultfor the provided request
-
-