Class AbstractConfigurationValidator

    • Field Detail

      • log

        protected final org.apache.logging.log4j.Logger log
      • mandatoryKeys

        protected final Set<String> mandatoryKeys
      • mandatoryOrKeys

        protected final Set<String> mandatoryOrKeys
      • missingMandatoryKeys

        protected final Set<String> missingMandatoryKeys
        Contain errorneous keys
      • invalidKeys

        protected final Set<String> invalidKeys
      • missingMandatoryOrKeys

        protected final Set<String> missingMandatoryOrKeys
      • lastException

        protected Exception lastException
      • payloadMandatory

        protected boolean payloadMandatory
        Behaviour regarding payload
      • payloadAllowed

        protected boolean payloadAllowed
      • method

        protected final org.elasticsearch.rest.RestRequest.Method method
      • content

        protected final org.elasticsearch.common.bytes.BytesReference content
      • esSettings

        protected final org.elasticsearch.common.settings.Settings esSettings
      • request

        protected final org.elasticsearch.rest.RestRequest request
      • param

        protected final Object[] param
    • Constructor Detail

      • AbstractConfigurationValidator

        public AbstractConfigurationValidator​(org.elasticsearch.rest.RestRequest request,
                                              org.elasticsearch.common.bytes.BytesReference ref,
                                              org.elasticsearch.common.settings.Settings esSettings,
                                              Object... param)
    • Method Detail

      • getContentAsNode

        public com.fasterxml.jackson.databind.JsonNode getContentAsNode()
      • validate

        public boolean validate()
        Returns:
        false if validation fails
      • errorsAsXContent

        public org.elasticsearch.xcontent.XContentBuilder errorsAsXContent​(org.elasticsearch.rest.RestChannel channel)
      • hasParams

        protected final boolean hasParams()