java.lang.Object
i2p.susi.util.LogHelper

public class LogHelperextends Object
Shared rules for naming a message in the webmail log, so every class that writes about one shortens and brackets it the same way.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Groups static helpers, so nothing instantiates this; the constructor only states that an instance would carry no state.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    static String
    head(String uidl)
    Shortens a message id for the log.
    static String
    Names a message id at the end of a log message, brackets included, for the reader to find in the cache filename.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LogHelper

      public LogHelper()
      Groups static helpers, so nothing instantiates this; the constructor only states that an instance would carry no state.
  • Method Details

    • head

      public static String head(String uidl)
      Shortens a message id for the log. A UIDL is a base64 blob of up to 70 characters that nothing in the log viewer links, and it is already spelled out in the cache filename, so only its head is kept. Use this form when the message continues past the id and supplies its own brackets, so the brackets are not written twice.
      Parameters:
      uidl - the server-side unique message id, may be null
      Returns:
      the head of the id, never null
    • shortId

      public static String shortId(String uidl)
      Names a message id at the end of a log message, brackets included, for the reader to find in the cache filename.
      Parameters:
      uidl - the server-side unique message id, may be null
      Returns:
      the bracketed head of the id, never null