Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1738

Relax case sensitivity in Predicate Language for ease of use

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.1.3.Final
    • Core, Predicate Language
    • None

      The following parts of the predicate langauge are case sensitive:

      • Predicate names
      • Handler names
      • Parameter names
      • Keywords like and, or, else

      While this may seem familiar for Java developers, coming from a naturally case inconsistent JVM language (CFML), this is really just more annoying and makes the predicate language harder to use.  Since the predicate DSL is not Java, but something designed to be easy to read and write, let's make it not as pedantic.  

      There doesn't seem to be a compelling reason why a predicate/handler written like this can't work.  

      PATH(box.json) AND TRUE -> Response-Code( Value=404 )
      

      Since the possible keywords, parameters, and handler/predicate names are limited in our DSL, there really is no ambiguity here.  

              bdw429s Brad Wood (Inactive)
              bdw429s Brad Wood (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: