Class DecodeMonitor

java.lang.Object
org.apache.james.mime4j.codec.DecodeMonitor
Direct Known Subclasses:
LoggingMonitor

public class DecodeMonitor extends Object
This class is used to drive how decoder/parser should deal with malformed and unexpected data. 2 basic implementations are provided:
  • STRICT return "true" on any occurrence
  • SILENT ignores any problem
  • Field Details

    • STRICT

      public static final DecodeMonitor STRICT
      The STRICT monitor throws an exception on every event.
    • SILENT

      public static final DecodeMonitor SILENT
      The SILENT monitor ignore requests.
  • Constructor Details

    • DecodeMonitor

      public DecodeMonitor()
  • Method Details

    • warn

      public boolean warn(String error, String dropDesc)
    • isListening

      public boolean isListening()