package ch.qos.logback.access.net;

import ch.qos.logback.access.boolex.JaninoEventEvaluator;

public class DefaultSMTPEvaluator extends JaninoEventEvaluator {
  
  private String url;
  
  public DefaultSMTPEvaluator() { 
  }
  
  public void setUrl(String url) {
    this.url = url;
  }
  
  @Override
  public void start() {
    if (getContext() == null) {
      System.out.println("CONTEXT NULL");
    }
    setExpression("request.getRequestURL().toString().contains(\"" + url + "\")");
    super.start();
  }
}
