Module jakarta.mail

Interface IMAPFolder.ProtocolCommand

  • Enclosing class:
    IMAPFolder

    public static interface IMAPFolder.ProtocolCommand
    A simple interface for user-defined IMAP protocol commands.
    • Method Detail

      • doCommand

        java.lang.Object doCommand​(IMAPProtocol protocol)
                            throws ProtocolException
        Execute the user-defined command using the supplied IMAPProtocol object.
        Parameters:
        protocol - the IMAPProtocol for the connection
        Returns:
        the results of the command
        Throws:
        ProtocolException - for protocol errors