B C D E G H I M N O P Q R S U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
B
- build() - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Builds the
SmtpServer.
C
- ch.astorm.smtp4j - package ch.astorm.smtp4j
- ch.astorm.smtp4j.core - package ch.astorm.smtp4j.core
- ch.astorm.smtp4j.protocol - package ch.astorm.smtp4j.protocol
- clear() - Method in class ch.astorm.smtp4j.core.SmtpMessageStorage
-
Clears all the messages.
- clearReceivedMessages() - Method in class ch.astorm.smtp4j.SmtpServer
-
Clears all the received messages.
- close() - Method in class ch.astorm.smtp4j.SmtpServer
-
Closes this
SmtpServerinstance and releases all the resources associated to it. - CODE_BAD_COMMAND_SEQUENCE - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Error code when a bad sequence of command has been received.
- CODE_COMMAND_UNKNOWN - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Error code when a command is unknown.
- CODE_CONNECT - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Code of the first reply of the SMTP server.
- CODE_INTERMEDIATE_REPLY - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Code when the command is accepted, but in intermediate state (data).
- CODE_NOT_SUPPORTED - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Code when the command is not supported.
- CODE_OK - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Code when the command is accepted by the server.
- COLON - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Colon separator.
- create(String, List<String>, String) - Static method in class ch.astorm.smtp4j.core.SmtpMessage
-
Creates a new
SmtpMessagewith the specified parameters. - CRLF - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Line/command break.
D
- DATA - ch.astorm.smtp4j.protocol.SmtpCommand.Type
- DEFAULT_PORT - Static variable in class ch.astorm.smtp4j.SmtpServer
-
Default SMTP port.
- DOT - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Data dot-line separator.
E
- EHLO - ch.astorm.smtp4j.protocol.SmtpCommand.Type
- EXPAND - ch.astorm.smtp4j.protocol.SmtpCommand.Type
G
- getAttachments() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the attachments of the MIME message.
- getBody() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the content of the MIME message.
- getBufferSize() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns the socket buffer size (in bytes).
- getContentType() - Method in class ch.astorm.smtp4j.core.SmtpAttachment
-
Returns the Content Type.
- getFilename() - Method in class ch.astorm.smtp4j.core.SmtpAttachment
-
Returns the file name.
- getFrom() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the
Fromheader of the MIME message. - getMessageHandler() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns the current
SmtpMessageHandler. - getMessages() - Method in class ch.astorm.smtp4j.core.SmtpMessageStorage
-
Returns a
Listwith all the received messages. - getMimeMessage() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the
MimeMessageparsed from the content. - getParameter() - Method in class ch.astorm.smtp4j.protocol.SmtpCommand
-
Returns the command's parameter.
- getPort() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns the port on which the
SmtpServerlisten to. - getRawMimeContent() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the internal raw content received by the SMTP server to parse as
MimeMessage. - getReceivedMessages() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns all the received messages.
- getRecipients(Message.RecipientType) - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns all the recipients of the given
type. - getSentDate() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the sent date.
- getSourceFrom() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the
Fromparameter specified during the protocol exchange. - getSourceRecipients() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the list of
Toparameters specified during the protocol exchange. - getSubject() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the
Subjectheader of the MIME message. - getType() - Method in class ch.astorm.smtp4j.protocol.SmtpCommand
-
Returns the command's type.
H
- handle(SmtpMessage) - Method in interface ch.astorm.smtp4j.core.SmtpMessageHandler
-
Handles the specified transaction.
- handle(SmtpMessage) - Method in class ch.astorm.smtp4j.core.SmtpMessageStorage
- handle(Socket, BufferedReader, PrintWriter, SmtpMessageHandler) - Static method in class ch.astorm.smtp4j.protocol.SmtpTransactionHandler
-
Handles the SMTP protocol communication.
- HELP - ch.astorm.smtp4j.protocol.SmtpCommand.Type
I
- isClosed() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns true if the server has been closed or is not started yet.
M
- MAIL_FROM - ch.astorm.smtp4j.protocol.SmtpCommand.Type
- matches(String) - Method in enum ch.astorm.smtp4j.protocol.SmtpCommand.Type
N
- NOOP - ch.astorm.smtp4j.protocol.SmtpCommand.Type
O
- openStream() - Method in class ch.astorm.smtp4j.core.SmtpAttachment
-
Opens a new
InputStreamon this attachment. - openStream() - Method in interface ch.astorm.smtp4j.core.SmtpAttachment.StreamProvider
P
- parse(String) - Static method in class ch.astorm.smtp4j.protocol.SmtpCommand
-
Parses the
lineand creates a newSmtpCommand.
Q
- QUIT - ch.astorm.smtp4j.protocol.SmtpCommand.Type
R
- RECIPIENT - ch.astorm.smtp4j.protocol.SmtpCommand.Type
- RESET - ch.astorm.smtp4j.protocol.SmtpCommand.Type
S
- setBufferSize(int) - Method in class ch.astorm.smtp4j.SmtpServer
-
Defines the socket buffer size (in bytes).
- setMessageHandler(SmtpMessageHandler) - Method in class ch.astorm.smtp4j.SmtpServer
-
Defines the
SmtpMessageHandlerthat will receive all the incoming messages. - SmtpAttachment - Class in ch.astorm.smtp4j.core
-
Attachment of an
SmtpMessage. - SmtpAttachment(String, String, SmtpAttachment.StreamProvider) - Constructor for class ch.astorm.smtp4j.core.SmtpAttachment
-
Creates a new
SmtpAttachementwith the specified parameters. - SmtpAttachment.StreamProvider - Interface in ch.astorm.smtp4j.core
-
Provides an
InputStreamto read the attachment content. - SmtpCommand - Class in ch.astorm.smtp4j.protocol
-
List of SMTP commands.
- SmtpCommand(SmtpCommand.Type, String) - Constructor for class ch.astorm.smtp4j.protocol.SmtpCommand
-
Creates a new
SmtpCommand. - SmtpCommand.Type - Enum in ch.astorm.smtp4j.protocol
-
Represents the SMTP command types.
- SmtpMessage - Class in ch.astorm.smtp4j.core
-
Represents an SMTP message.
- SmtpMessage(String, List<String>, MimeMessage, String) - Constructor for class ch.astorm.smtp4j.core.SmtpMessage
-
Creates a new
SmtpMessagewith the specified parameters. - SmtpMessageHandler - Interface in ch.astorm.smtp4j.core
-
Represents a message handler that will process any incoming message.
- SmtpMessageStorage - Class in ch.astorm.smtp4j.core
-
Simple
SmtpMessageHandlerthat stores the received messages in a list. - SmtpMessageStorage() - Constructor for class ch.astorm.smtp4j.core.SmtpMessageStorage
- SmtpProtocolConstants - Class in ch.astorm.smtp4j.protocol
-
Constants for the SMTP protocol.
- SmtpProtocolConstants() - Constructor for class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
- SmtpProtocolException - Exception in ch.astorm.smtp4j.protocol
-
Exception thrown when there is an error during the protocol exchange.
- SmtpProtocolException(String) - Constructor for exception ch.astorm.smtp4j.protocol.SmtpProtocolException
- SmtpProtocolException(String, Throwable) - Constructor for exception ch.astorm.smtp4j.protocol.SmtpProtocolException
- SmtpServer - Class in ch.astorm.smtp4j
-
Simple SMTP server.
- SmtpServer(int) - Constructor for class ch.astorm.smtp4j.SmtpServer
-
Creates a new
SmtpServer. - SmtpServerBuilder - Class in ch.astorm.smtp4j
-
Helper to build a new
SmtpServer. - SmtpServerBuilder() - Constructor for class ch.astorm.smtp4j.SmtpServerBuilder
- SmtpTransactionHandler - Class in ch.astorm.smtp4j.protocol
-
Handles the SMTP protocol.
- SP - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Command-parameter separator.
- start() - Method in class ch.astorm.smtp4j.SmtpServer
-
Starts the server.
- start() - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Builds the
SmtpServerand starts it.
U
- UNKNOWN - ch.astorm.smtp4j.protocol.SmtpCommand.Type
V
- valueOf(String) - Static method in enum ch.astorm.smtp4j.protocol.SmtpCommand.Type
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum ch.astorm.smtp4j.protocol.SmtpCommand.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VERIFY - ch.astorm.smtp4j.protocol.SmtpCommand.Type
W
- withBufferSize(int) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines the buffer size of the underlying socket.
- withMessageHandler(SmtpMessageHandler) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines the
SmtpMessageHandlerto be applied for the received messages. - withPort(int) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines the port on which the
SmtpServerwill listen to.
All Classes All Packages