Class RoleMapperExpressionParser


  • public final class RoleMapperExpressionParser
    extends java.lang.Object
    Parses the JSON (XContent) based boolean expression DSL into a tree of RoleMapperExpression objects. Note: As this is client side parser, it mostly validates the structure of DSL being parsed it does not enforce rules like allowing "except" within "except" or "any" expressions.
    • Constructor Detail

      • RoleMapperExpressionParser

        public RoleMapperExpressionParser()
    • Method Detail

      • parse

        public RoleMapperExpression parse​(java.lang.String name,
                                          XContentParser parser)
                                   throws java.io.IOException
        Parameters:
        name - The name of the expression tree within its containing object. Used to provide descriptive error messages.
        parser - A parser over the XContent (typically JSON) DSL representation of the expression
        Throws:
        java.io.IOException