Uses of Class
cloud.opencode.base.email.protocol.ProtocolException
Packages that use ProtocolException
Package
Description
-
Uses of ProtocolException in cloud.opencode.base.email.protocol
Methods in cloud.opencode.base.email.protocol that throw ProtocolExceptionModifier and TypeMethodDescriptionvoidMailConnection.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终止)voidMailConnection.upgradeToTls()Upgrade the connection to TLS (STARTTLS) 升级连接到TLS(STARTTLS)voidMailConnection.writeBytes(byte[] data) Write raw bytes to the server (no CRLF appended) 向服务器写入原始字节(不附加CRLF)voidWrite a line to the server (appends CRLF) 向服务器写入一行(附加CRLF)voidWrite raw string to the server (no CRLF appended) 向服务器写入原始字符串(不附加CRLF) -
Uses of ProtocolException in cloud.opencode.base.email.protocol.imap
Methods in cloud.opencode.base.email.protocol.imap that throw ProtocolExceptionModifier and TypeMethodDescriptionvoidImapClient.authenticateXOAuth2(String username, String token) Authenticate using XOAUTH2 mechanism 使用 XOAUTH2 机制进行认证voidImapClient.connect()Connect to the IMAP server and read the greeting 连接到 IMAP 服务器并读取问候语voidCopy a message to another folder 复制邮件到另一个文件夹int[]Examine a folder for read-only access 以只读方式检查文件夹voidImapClient.expunge()Permanently remove messages marked with \Deleted flag 永久删除标记为 \Deleted 的邮件Fetch data for a single message 获取单条邮件的数据ImapClient.fetchRange(int from, int to, String fetchItems) Fetch data for a range of messages 获取一系列邮件的数据intImapClient.getMessageCount()Get the total number of messages in the selected folder 获取所选文件夹中的邮件总数intImapClient.getUnreadCount()Get the count of unread (unseen) messages in the selected folder 获取所选文件夹中未读(未查看)邮件的数量Enter IDLE mode and wait for server notifications 进入 IDLE 模式等待服务器通知List folders matching a pattern 列出匹配模式的文件夹voidAuthenticate using LOGIN command 使用 LOGIN 命令进行认证voidImapClient.logout()Logout from the server and close the connection 从服务器注销并关闭连接voidImapClient.noop()Send NOOP command to keep the connection alive 发送 NOOP 命令以保持连接活跃Search for messages matching the given criteria 搜索匹配给定条件的邮件int[]Select a folder for read-write access 选择文件夹以读写方式打开voidStore flags on a message 设置邮件的标志 -
Uses of ProtocolException in cloud.opencode.base.email.protocol.pop3
Methods in cloud.opencode.base.email.protocol.pop3 that throw ProtocolExceptionModifier and TypeMethodDescriptionvoidPop3Client.authXOAuth2(String username, String token) Authenticate using AUTH XOAUTH2 使用AUTH XOAUTH2进行认证Pop3Client.connect()Connect to the POP3 server and read the greeting 连接到POP3服务器并读取问候语voidPop3Client.dele(int msgNum) DELE - mark a message for deletion DELE - 标记邮件待删除List<int[]> Pop3Client.list()LIST - get the size of all messages LIST - 获取所有邮件的大小intPop3Client.list(int msgNum) LIST n - get the size of a specific message LIST n - 获取指定邮件的大小voidAuthenticate using USER/PASS commands 使用USER/PASS命令进行认证voidPop3Client.noop()NOOP - keep the connection alive NOOP - 保持连接活跃voidPop3Client.quit()QUIT - commit deletions and close the connection QUIT - 提交删除操作并关闭连接Pop3Client.retr(int msgNum) RETR - retrieve a complete message RETR - 检索完整邮件voidPop3Client.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
Methods in cloud.opencode.base.email.protocol.smtp that throw ProtocolExceptionModifier and TypeMethodDescriptionvoidAuthenticate using the LOGIN mechanism 使用LOGIN机制认证voidAuthenticate using the PLAIN mechanism (RFC 4616) 使用PLAIN机制认证(RFC 4616)voidSmtpClient.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握手voidSmtpClient.quit()Send QUIT command and close the connection 发送QUIT命令并关闭连接voidSmtpClient.sendMessage(String sender, List<String> recipients, String rawMessage) Send a complete email message 发送完整的电子邮件