content: package burp;
  
  import java.net.URL;
  
  class CustomScanIssue implements IScanIssue {
      private IHttpService httpService;
      private URL url;
      private IHttpRequestResponse[] httpMessages;
      private String name;
      private String detail;
      private String severity;
      private String confidence;
  
      enum severity {
          High,
          Medium,
          Low,
          Information
      }
  
      public CustomScanIssue(IHttpService httpService, URL url, IHttpRequestResponse[] httpMessages, String name, String detail, String confidence, CustomScanIssue.severity severity) {
          this.httpService = httpService;
          this.url = url;
          this.httpMessages = httpMessages;
          this.name = name;
          this.detail = detail + "<br/><br/>Please report any false-positives to <a href=\"https://github.com/albinowax/ActiveScanPlusPlus\">https://github.com/albinowax/ActiveScanPlusPlus</a>";
          this.severity = severity.name();
          this.confidence = confidence;
          System.out.println("Reported: " + name + " on " + url);
      }
  
      @Override
      public URL getUrl() {
          return url;
      }
  
      @Override
      public String getIssueName() {
          return name;
      }
  
      @Override
      public int getIssueType() {
          return 0;
      }
  
      @Override
      public String getSeverity() {
          return severity;
      }
  
      @Override
      public String getConfidence() {
          return confidence;
      }
  
      @Override
      public String getIssueBackground() {
          return null;
      }
  
      @Override
      public String getRemediationBackground() {
          return null;
      }
  
      @Override
      public String getIssueDetail() {
          return detail;
      }
  
      @Override
      public String getRemediationDetail() {
          return null;
      }
  
      @Override
      public IHttpRequestResponse[] getHttpMessages() {
          return httpMessages;
      }
  
      @Override
      public IHttpService getHttpService() {
          return httpService;
      }
  }