Class POP3Store

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Direct Known Subclasses:
    POP3SSLStore

    public class POP3Store
    extends Store
    A POP3 Message Store. Contains only one folder, "INBOX". See the com.sun.mail.pop3 package documentation for further information on the POP3 protocol provider.

    Author:
    Bill Shannon, John Mani
    • Constructor Detail

      • POP3Store

        public POP3Store​(Session session,
                         URLName url,
                         java.lang.String name,
                         boolean isSSL)
    • Method Detail

      • isConnected

        public boolean isConnected()
        Check whether this store is connected. Override superclass method, to actually ping our server connection.
        Overrides:
        isConnected in class Service
      • capabilities

        public java.util.Map<java.lang.String,​java.lang.String> capabilities()
                                                                            throws MessagingException
        Return a Map of the capabilities the server provided, as per RFC 2449. If the server doesn't support RFC 2449, an emtpy Map is returned. The returned Map can not be modified. The key to the Map is the upper case capability name as a String. The value of the entry is the entire String capability line returned by the server.

        For example, to check if the server supports the STLS capability, use: if (store.capabilities().containsKey("STLS")) ...

        Returns:
        Map of capabilities
        Throws:
        MessagingException - for failures
        Since:
        JavaMail 1.4.3
      • isSSL

        public boolean isSSL()
        Is this POP3Store using SSL to connect to the server?
        Returns:
        true if using SSL
        Since:
        JavaMail 1.4.6
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class Service
        Throws:
        java.lang.Throwable