Class RequestFilter


  • public class RequestFilter
    extends Object

    A request matcher that matches uris compatible to the JAX-RS syntax and extracts the arguments on match.

    Example uris: /some/url/{param1}/{param2}/{param3:.*} /some/url/{param1:foo}/.*
    Author:
    Daniel Meyer, nico.rehwaldt
    • Field Detail

      • methods

        protected String[] methods
      • pattern

        protected Pattern pattern
    • Constructor Detail

      • RequestFilter

        public RequestFilter​(String pattern,
                             String applicationPath,
                             String... methods)
    • Method Detail

      • isMethodMatched

        protected boolean isMethodMatched​(String requestMethod)
      • setPattern

        protected final void setPattern​(String pattern,
                                        String applicationPath)
        Sets the uri pattern for this matcher
        Parameters:
        pattern -