Package org.apache.synapse.commons.evaluators

# Class AndEvaluator

java.lang.Object
org.apache.synapse.commons.evaluators.AndEvaluator

All Implemented Interfaces:
  `Evaluator`

public class AndEvaluator extends Object implements Evaluator
This encapsulates two or more boolean conditions. This acts as the "and" boolean operator. This evaluates all the boolean expressions and return the Boolean AND of those expressions.

     <and>
         two or more evaluators
     <and>

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AndEvaluator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `evaluate(EvaluatorContext context)`
  Evaluate a boolean expression
  `Evaluator[]`
  `getEvaluators()`
  `String`
  `getName()`
  Name of the evaluator
  `void`
  `setEvaluators(Evaluator[] evaluators)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AndEvaluator

    public AndEvaluator()

- ## Method Details

  - ### evaluate

    public boolean evaluate(EvaluatorContext context) throws EvaluatorException
    Description copied from interface: `Evaluator`
    Evaluate a boolean expression
    Specified by:
      `evaluate` in interface `Evaluator`
    Parameters:
      `context` - hold the information about the HTTP request
    Returns:
      result of evaluating the boolean expression
    Throws:
      `EvaluatorException` - if an error occurs while evaluating the HTTP request

  - ### getName

    public String getName()
    Description copied from interface: `Evaluator`
    Name of the evaluator
    Specified by:
      `getName` in interface `Evaluator`
    Returns:
      name of the evaluator

  - ### setEvaluators

    public void setEvaluators(Evaluator[] evaluators)

  - ### getEvaluators

    public Evaluator[] getEvaluators()