Uses of Class
cloud.opencode.base.email.protocol.ProtocolException

Packages that use ProtocolException
  • Uses of ProtocolException in cloud.opencode.base.email.protocol

    Modifier and Type
    Method
    Description
    void
    MailConnection.connect()
    Connect to the server 连接到服务器
    MailConnection.getInputStream()
    Get the underlying socket's InputStream for raw reads 获取底层套接字的InputStream用于原始读取
    MailConnection.readExact(int count)
    Read exactly the specified number of characters from the server.
    MailConnection.readLine()
    Read a single line from the server (CRLF-terminated) 从服务器读取一行(CRLF终止)
    void
    MailConnection.upgradeToTls()
    Upgrade the connection to TLS (STARTTLS) 升级连接到TLS(STARTTLS)
    void
    MailConnection.writeBytes(byte[] data)
    Write raw bytes to the server (no CRLF appended) 向服务器写入原始字节(不附加CRLF)
    void
    MailConnection.writeLine(String line)
    Write a line to the server (appends CRLF) 向服务器写入一行(附加CRLF)
    void
    MailConnection.writeRaw(String data)
    Write raw string to the server (no CRLF appended) 向服务器写入原始字符串(不附加CRLF)
  • Uses of ProtocolException in cloud.opencode.base.email.protocol.imap

    Modifier and Type
    Method
    Description
    void
    ImapClient.authenticateXOAuth2(String username, String token)
    Authenticate using XOAUTH2 mechanism 使用 XOAUTH2 机制进行认证
    void
    ImapClient.connect()
    Connect to the IMAP server and read the greeting 连接到 IMAP 服务器并读取问候语
    void
    ImapClient.copy(int msgSeq, String targetFolder)
    Copy a message to another folder 复制邮件到另一个文件夹
    int[]
    ImapClient.examine(String folder)
    Examine a folder for read-only access 以只读方式检查文件夹
    void
    ImapClient.expunge()
    Permanently remove messages marked with \Deleted flag 永久删除标记为 \Deleted 的邮件
    ImapClient.fetch(int msgSeq, String fetchItems)
    Fetch data for a single message 获取单条邮件的数据
    ImapClient.fetchRange(int from, int to, String fetchItems)
    Fetch data for a range of messages 获取一系列邮件的数据
    int
    ImapClient.getMessageCount()
    Get the total number of messages in the selected folder 获取所选文件夹中的邮件总数
    int
    ImapClient.getUnreadCount()
    Get the count of unread (unseen) messages in the selected folder 获取所选文件夹中未读(未查看)邮件的数量
    ImapClient.idle(Duration timeout)
    Enter IDLE mode and wait for server notifications 进入 IDLE 模式等待服务器通知
    ImapClient.list(String reference, String pattern)
    List folders matching a pattern 列出匹配模式的文件夹
    void
    ImapClient.login(String username, String password)
    Authenticate using LOGIN command 使用 LOGIN 命令进行认证
    void
    ImapClient.logout()
    Logout from the server and close the connection 从服务器注销并关闭连接
    void
    ImapClient.noop()
    Send NOOP command to keep the connection alive 发送 NOOP 命令以保持连接活跃
    ImapClient.search(String criteria)
    Search for messages matching the given criteria 搜索匹配给定条件的邮件
    int[]
    ImapClient.select(String folder)
    Select a folder for read-write access 选择文件夹以读写方式打开
    void
    ImapClient.store(int msgSeq, String action, String flags)
    Store flags on a message 设置邮件的标志
  • Uses of ProtocolException in cloud.opencode.base.email.protocol.pop3

    Modifier and Type
    Method
    Description
    void
    Pop3Client.authXOAuth2(String username, String token)
    Authenticate using AUTH XOAUTH2 使用AUTH XOAUTH2进行认证
    Pop3Client.connect()
    Connect to the POP3 server and read the greeting 连接到POP3服务器并读取问候语
    void
    Pop3Client.dele(int msgNum)
    DELE - mark a message for deletion DELE - 标记邮件待删除
    List<int[]>
    Pop3Client.list()
    LIST - get the size of all messages LIST - 获取所有邮件的大小
    int
    Pop3Client.list(int msgNum)
    LIST n - get the size of a specific message LIST n - 获取指定邮件的大小
    void
    Pop3Client.login(String username, String password)
    Authenticate using USER/PASS commands 使用USER/PASS命令进行认证
    void
    Pop3Client.noop()
    NOOP - keep the connection alive NOOP - 保持连接活跃
    void
    Pop3Client.quit()
    QUIT - commit deletions and close the connection QUIT - 提交删除操作并关闭连接
    Pop3Client.retr(int msgNum)
    RETR - retrieve a complete message RETR - 检索完整邮件
    void
    Pop3Client.rset()
    RSET - unmark all messages marked for deletion RSET - 取消所有标记为删除的邮件
    int[]
    Pop3Client.stat()
    STAT - get message count and total mailbox size in octets STAT - 获取邮件数量和邮箱总大小(字节)
    Pop3Client.top(int msgNum, int lines)
    TOP - retrieve message headers and the first n lines of the body TOP - 检索邮件头和正文的前n行
    Pop3Client.uidl()
    UIDL - get unique IDs for all messages UIDL - 获取所有邮件的唯一标识
    Pop3Client.uidl(int msgNum)
    UIDL n - get the unique ID of a specific message UIDL n - 获取指定邮件的唯一标识
  • Uses of ProtocolException in cloud.opencode.base.email.protocol.smtp

    Modifier and Type
    Method
    Description
    void
    SmtpClient.authLogin(String username, String password)
    Authenticate using the LOGIN mechanism 使用LOGIN机制认证
    void
    SmtpClient.authPlain(String username, String password)
    Authenticate using the PLAIN mechanism (RFC 4616) 使用PLAIN机制认证(RFC 4616)
    void
    SmtpClient.authXOAuth2(String username, String token)
    Authenticate using the XOAUTH2 mechanism (for Gmail/Outlook) 使用XOAUTH2机制认证(适用于Gmail/Outlook)
    SmtpClient.connect()
    Connect to the SMTP server and perform the EHLO handshake 连接到SMTP服务器并执行EHLO握手
    void
    SmtpClient.quit()
    Send QUIT command and close the connection 发送QUIT命令并关闭连接
    void
    SmtpClient.sendMessage(String sender, List<String> recipients, String rawMessage)
    Send a complete email message 发送完整的电子邮件