Class RequestPropertyFilter


  • public class RequestPropertyFilter
    extends Object
    Class RequestPropertyFilter provides methods to filterProperty requests.
    Author:
    https://github.com/mcweba [Marc-Andre Weber]
    • Constructor Detail

      • RequestPropertyFilter

        public RequestPropertyFilter()
    • 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 a FilterResult defining whether to filterProperty the request or not.
        Parameters:
        request - the request to be checked to filterProperty or not
        filterPropertyKey - the key of the filterProperty e.g. url, method
        filterPropertyValue - the value of the filterProperty
        reject - boolean value from the filterProperty entry called "reject"
        Returns:
        the FilterResult for the provided request