java.lang.Object
i2p.susi.webmail.MailCache.POP3Request
All Implemented Interfaces:
POP3MailBox.FetchRequest
Enclosing class:
MailCache

private static class MailCache.POP3Requestextends Object implements POP3MailBox.FetchRequest
Outgoing to POP3.
  • Field Summary

    Modifier and Type
    Field
    Description
    final Buffer
    The buffer the fetched message is written into.
    private boolean
    True to fetch only the message headers.
    final Mail
    The message this request fetches.
    private boolean
    True if the load finished without errors.
  • Constructor Summary

    Constructors
    Constructor
    Description
    POP3Request(Mail m, boolean hOnly, Buffer buffer)
    Creates a request for the message's headers or full body.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    Buffer holding the fetched data.
    boolean
    Whether only the headers have been fetched.
    boolean
    Whether the fetch succeeded.
    The message's unique ID listing id.
    void
    setHeaderOnly(boolean headerOnly)
    Set whether only the headers have been fetched.
    void
    setSuccess(boolean success)
    Record whether the fetch succeeded.

    Methods inherited from class Object

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

    • mail

      public final Mail mail
      The message this request fetches.
    • headerOnly

      private boolean headerOnly
      True to fetch only the message headers.
    • success

      private boolean success
      True if the load finished without errors.
    • buf

      public final Buffer buf
      The buffer the fetched message is written into.
  • Constructor Details

    • POP3Request

      public POP3Request(Mail m, boolean hOnly, Buffer buffer)
      Creates a request for the message's headers or full body.
      Parameters:
      m - the mail to fetch
      hOnly - if true, fetch headers only
      buffer - the buffer the fetched message is written into
  • Method Details

    • getUIDL

      public String getUIDL()
      The message's unique ID listing id.
      Specified by:
      getUIDL in interface POP3MailBox.FetchRequest
      Returns:
      the unique ID listing id of the mail in this request
    • setHeaderOnly

      public void setHeaderOnly(boolean headerOnly)
      Set whether only the headers have been fetched.
      Specified by:
      setHeaderOnly in interface POP3MailBox.FetchRequest
      Parameters:
      headerOnly - true to request headers only
    • getHeaderOnly

      public boolean getHeaderOnly()
      Whether only the headers have been fetched.
      Specified by:
      getHeaderOnly in interface POP3MailBox.FetchRequest
      Returns:
      true if headers-only
    • getBuffer

      public Buffer getBuffer()
      Buffer holding the fetched data.
      Specified by:
      getBuffer in interface POP3MailBox.FetchRequest
      Returns:
      the buffer the fetched data is read into, never null
    • setSuccess

      public void setSuccess(boolean success)
      Record whether the fetch succeeded.
      Specified by:
      setSuccess in interface POP3MailBox.FetchRequest
      Parameters:
      success - whether the server returned the message without error
    • getSuccess

      public boolean getSuccess()
      Whether the fetch succeeded.
      Returns:
      true if the fetch finished without errors