public BlacklistEntry(String urlPattern,int statusCode,String httpMethodPattern){
  this.urlPattern=Pattern.compile(urlPattern);
  this.statusCode=statusCode;
  if (httpMethodPattern == null || httpMethodPattern.isEmpty()) {
    this.httpMethodPattern=null;
  }
 else {
    this.httpMethodPattern=Pattern.compile(httpMethodPattern);
  }
}

public BlacklistEntry ( String urlPattern , int statusCode , String httpMethodPattern ) { this . urlPattern = Pattern . compile ( urlPattern ) ; this . statusCode = statusCode ; if ( httpMethodPattern == null || httpMethodPattern . isEmpty ( ) ) { this . httpMethodPattern = null ; } else { this . httpMethodPattern = Pattern . compile ( httpMethodPattern ) ; } }
creates a new blacklistentry which will match both a url and an http method
