A B C D E F G H I J L M N O P Q R S T U V W

A

accept(String, String) - Method in interface org.subethamail.smtp.helper.SimpleMessageListener
Called once for every RCPT TO during a SMTP exchange.
accept(String, String) - Method in class org.subethamail.smtp.test.util.ServerTestCase.TestWiser
 
accept(String, String) - Method in class org.subethamail.wiser.Wiser
Always accept everything
addCommand(Command) - Method in class org.subethamail.smtp.server.CommandHandler
 
addFactory(AuthenticationHandlerFactory) - Method in class org.subethamail.smtp.auth.MultipleAuthenticationHandlerFactory
 
addRecipient() - Method in class org.subethamail.smtp.server.Session
 
auth(String) - Method in interface org.subethamail.smtp.AuthenticationHandler
Initially called using an input string in the RFC2554 form: "AUTH [initial-response]".
AUTH_CANCEL_COMMAND - Static variable in class org.subethamail.smtp.command.AuthCommand
 
AuthCommand - Class in org.subethamail.smtp.command
 
AuthCommand() - Constructor for class org.subethamail.smtp.command.AuthCommand
Creates a new instance of AuthCommand
AuthenticationHandler - Interface in org.subethamail.smtp
The interface that enables challenge-response communication necessary for SMTP AUTH.
AuthenticationHandlerFactory - Interface in org.subethamail.smtp
 
AuthTest - Class in org.subethamail.smtp.test.command
 
AuthTest(String) - Constructor for class org.subethamail.smtp.test.command.AuthTest
 

B

Base64 - Class in org.subethamail.smtp.util
A very fast and memory efficient class to encode and decode to and from BASE64 in full accordance with RFC 2045.

On Windows XP sp1 with 1.4.2_04 and later ;), this encoder and decoder is about 10 times faster on small arrays (10 - 1000 bytes) and 2-3 times as fast on larger arrays (10000 - 1000000 bytes) compared to sun.misc.Encoder()/Decoder().

On byte arrays the encoder is about 20% faster than Jakarta Commons Base64 Codec for encode and about 50% faster for decoding large arrays.
Base64() - Constructor for class org.subethamail.smtp.util.Base64
 
BaseCommand - Class in org.subethamail.smtp.server
 
BaseCommand(String, String) - Constructor for class org.subethamail.smtp.server.BaseCommand
 
BaseCommand(String, String, String) - Constructor for class org.subethamail.smtp.server.BaseCommand
 
BigAttachmentTest - Class in org.subethamail.smtp.test
This class tests the transfer speed of emails that carry attached files.
BigAttachmentTest(String) - Constructor for class org.subethamail.smtp.test.BigAttachmentTest
 

C

c - Variable in class org.subethamail.smtp.test.util.ServerTestCase
 
CharTerminatedInputStream - Class in org.subethamail.smtp.server.io
An InputStream class that terminates the stream when it encounters a particular byte sequence.
CharTerminatedInputStream(InputStream, char[]) - Constructor for class org.subethamail.smtp.server.io.CharTerminatedInputStream
A constructor for this object that takes a stream to be wrapped and a terminating character sequence.
checkThreshold(int) - Method in class org.subethamail.smtp.server.io.ThresholdingOutputStream
Checks whether reading count bytes would cross the limit.
Client - Class in org.subethamail.smtp.test.util
A crude telnet client that can be used to send SMTP messages and test the responses.
Client(String, int) - Constructor for class org.subethamail.smtp.test.util.Client
Establishes a connection to host and port.
close() - Method in class org.subethamail.smtp.server.io.CRLFTerminatedReader
 
close() - Method in class org.subethamail.smtp.server.io.DeferredFileOutputStream
 
close() - Method in class org.subethamail.smtp.server.io.ThresholdingOutputStream
 
close() - Method in class org.subethamail.smtp.test.util.Client
 
closeServerSocket() - Method in class org.subethamail.smtp.server.SMTPServer
Closes the serverSocket in an orderly way
closeSocket() - Method in class org.subethamail.smtp.server.Session
Close the client socket if it is open
Command - Interface in org.subethamail.smtp.server
Describes a SMTP command
CommandException - Exception in org.subethamail.smtp.server
 
CommandException(String, Throwable) - Constructor for exception org.subethamail.smtp.server.CommandException
 
CommandException(String) - Constructor for exception org.subethamail.smtp.server.CommandException
 
CommandException() - Constructor for exception org.subethamail.smtp.server.CommandException
 
CommandException(Throwable) - Constructor for exception org.subethamail.smtp.server.CommandException
 
CommandHandler - Class in org.subethamail.smtp.server
This class manages execution of a SMTP command.
CommandHandler() - Constructor for class org.subethamail.smtp.server.CommandHandler
 
CommandHandler(Collection<Command>) - Constructor for class org.subethamail.smtp.server.CommandHandler
 
CommandRegistry - Enum in org.subethamail.smtp.server
Enumerates all the Commands made available in this release.
CommandTest - Class in org.subethamail.smtp.test.command
 
CommandTest(String) - Constructor for class org.subethamail.smtp.test.command.CommandTest
 
containsCommand(String) - Method in class org.subethamail.smtp.server.CommandHandler
 
counter - Variable in class org.subethamail.smtp.test.StartStopTest
 
create() - Method in class org.subethamail.smtp.auth.LoginAuthenticationHandlerFactory
 
create() - Method in class org.subethamail.smtp.auth.MultipleAuthenticationHandlerFactory
 
create() - Method in class org.subethamail.smtp.auth.PlainAuthenticationHandlerFactory
 
create() - Method in interface org.subethamail.smtp.AuthenticationHandlerFactory
 
create(MessageContext) - Method in class org.subethamail.smtp.helper.SimpleMessageListenerAdapter
 
create(MessageContext) - Method in interface org.subethamail.smtp.MessageHandlerFactory
Called for the exchange of a single message during an SMTP conversation.
createServerSocket() - Method in class org.subethamail.smtp.server.SMTPServer
Override this method if you want to create your own server sockets.
CRLFTerminatedReader - Class in org.subethamail.smtp.server.io
A Reader for use with SMTP or other protocols in which lines must end with CRLF.
CRLFTerminatedReader(InputStream) - Constructor for class org.subethamail.smtp.server.io.CRLFTerminatedReader
 
CRLFTerminatedReader(InputStream, String) - Constructor for class org.subethamail.smtp.server.io.CRLFTerminatedReader
 
CRLFTerminatedReader.MaxLineLengthException - Exception in org.subethamail.smtp.server.io
 
CRLFTerminatedReader.MaxLineLengthException() - Constructor for exception org.subethamail.smtp.server.io.CRLFTerminatedReader.MaxLineLengthException
 
CRLFTerminatedReader.MaxLineLengthException(String) - Constructor for exception org.subethamail.smtp.server.io.CRLFTerminatedReader.MaxLineLengthException
 
CRLFTerminatedReader.TerminationException - Exception in org.subethamail.smtp.server.io
 
CRLFTerminatedReader.TerminationException(int) - Constructor for exception org.subethamail.smtp.server.io.CRLFTerminatedReader.TerminationException
 
CRLFTerminatedReader.TerminationException(String, int) - Constructor for exception org.subethamail.smtp.server.io.CRLFTerminatedReader.TerminationException
 

D

data(InputStream) - Method in interface org.subethamail.smtp.MessageHandler
Called when the DATA part of the SMTP exchange begins.
DataCommand - Class in org.subethamail.smtp.command
 
DataCommand() - Constructor for class org.subethamail.smtp.command.DataCommand
 
DataTest - Class in org.subethamail.smtp.test.command
 
DataTest(String) - Constructor for class org.subethamail.smtp.test.command.DataTest
 
decode(char[]) - Static method in class org.subethamail.smtp.util.Base64
Decodes a BASE64 encoded char array.
decode(byte[]) - Static method in class org.subethamail.smtp.util.Base64
Decodes a BASE64 encoded byte array.
decode(String) - Static method in class org.subethamail.smtp.util.Base64
Decodes a BASE64 encoded String.
decodeFast(char[]) - Static method in class org.subethamail.smtp.util.Base64
Decodes a BASE64 encoded char array that is known to be resonably well formatted.
decodeFast(byte[]) - Static method in class org.subethamail.smtp.util.Base64
Decodes a BASE64 encoded byte array that is known to be resonably well formatted.
decodeFast(String) - Static method in class org.subethamail.smtp.util.Base64
Decodes a BASE64 encoded string that is known to be resonably well formatted.
DeferredFileOutputStream - Class in org.subethamail.smtp.server.io
This works like a ByteArrayOutputStream until a certain size is reached, then creates a temp file and acts like a buffered FileOutputStream.
DeferredFileOutputStream(int) - Constructor for class org.subethamail.smtp.server.io.DeferredFileOutputStream
 
deliver(String, String, InputStream) - Method in interface org.subethamail.smtp.helper.SimpleMessageListener
When message data arrives, this method will be called for every recipient this listener accepted.
deliver(String, String, InputStream) - Method in class org.subethamail.wiser.Wiser
Cache the messages in memory
DotUnstuffingInputStream - Class in org.subethamail.smtp.server.io
Removes the dot-stuffing happening during the NNTP and SMTP message transfer
DotUnstuffingInputStream(InputStream) - Constructor for class org.subethamail.smtp.server.io.DotUnstuffingInputStream
 

E

EasyAuthenticationHandlerFactory - Class in org.subethamail.smtp.auth
This a convenient class that saves you setting up the factories that we know about; you can always add more afterwards.
EasyAuthenticationHandlerFactory(UsernamePasswordValidator) - Constructor for class org.subethamail.smtp.auth.EasyAuthenticationHandlerFactory
 
EhloCommand - Class in org.subethamail.smtp.command
 
EhloCommand() - Constructor for class org.subethamail.smtp.command.EhloCommand
 
EmailUtils - Class in org.subethamail.smtp.util
 
EmailUtils() - Constructor for class org.subethamail.smtp.util.EmailUtils
 
encodeToByte(byte[], boolean) - Static method in class org.subethamail.smtp.util.Base64
Encodes a raw byte array into a BASE64 byte[] representation i accordance with RFC 2045.
encodeToChar(byte[], boolean) - Static method in class org.subethamail.smtp.util.Base64
Encodes a raw byte array into a BASE64 char[] representation i accordance with RFC 2045.
encodeToString(byte[], boolean) - Static method in class org.subethamail.smtp.util.Base64
Encodes a raw byte array into a BASE64 String representation i accordance with RFC 2045.
equals(Object) - Method in class org.subethamail.smtp.server.HelpMessage
 
execute(String, Session) - Method in class org.subethamail.smtp.command.AuthCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.command.DataCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.command.EhloCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.command.HelloCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.command.HelpCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.command.MailCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.command.NoopCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.command.QuitCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.command.ReceiptCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.command.ResetCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.command.StartTLSCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.command.VerifyCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.server.BaseCommand
This is the main method that you need to override in order to implement a command.
execute(String, Session) - Method in interface org.subethamail.smtp.server.Command
 
expect(String) - Method in class org.subethamail.smtp.test.util.Client
Throws an exception if the response does not start with the specified string.
expect(String) - Method in class org.subethamail.smtp.test.util.ServerTestCase
 
extractEmailAddress(String, int) - Static method in class org.subethamail.smtp.util.EmailUtils
Extracts the email address within a <> after a specified offset.

F

flush() - Method in class org.subethamail.smtp.server.io.ThresholdingOutputStream
 
from(String) - Method in interface org.subethamail.smtp.MessageHandler
Called first, after the MAIL FROM during a SMTP exchange.

G

getArgPredicate(String) - Method in class org.subethamail.smtp.server.BaseCommand
 
getArgs(String) - Method in class org.subethamail.smtp.server.BaseCommand
 
getAuthenticationHandler() - Method in interface org.subethamail.smtp.MessageContext
 
getAuthenticationHandler() - Method in class org.subethamail.smtp.server.Session
 
getAuthenticationHandlerFactory() - Method in class org.subethamail.smtp.server.SMTPServer
 
getAuthenticationMechanisms() - Method in class org.subethamail.smtp.auth.LoginAuthenticationHandlerFactory
 
getAuthenticationMechanisms() - Method in class org.subethamail.smtp.auth.MultipleAuthenticationHandlerFactory
 
getAuthenticationMechanisms() - Method in class org.subethamail.smtp.auth.PlainAuthenticationHandlerFactory
 
getAuthenticationMechanisms() - Method in interface org.subethamail.smtp.AuthenticationHandlerFactory
If your handler supports RFC 2554 at some degree, then it must return all the supported mechanisms here.
getBacklog() - Method in class org.subethamail.smtp.server.SMTPServer
The backlog is the Socket backlog.
getBindAddress() - Method in class org.subethamail.smtp.server.SMTPServer
null means all interfaces
getCode() - Method in exception org.subethamail.smtp.RejectException
 
getCommand() - Method in enum org.subethamail.smtp.server.CommandRegistry
 
getCommandHandler() - Method in class org.subethamail.smtp.server.SMTPServer
The CommandHandler manages handling the SMTP commands such as QUIT, MAIL, RCPT, DATA, etc.
getConnectionTimeout() - Method in class org.subethamail.smtp.server.SMTPServer
 
getData() - Method in class org.subethamail.wiser.WiserMessage
Get's the raw message DATA.
getEnvelopeReceiver() - Method in class org.subethamail.wiser.WiserMessage
Get's the RCPT TO:
getEnvelopeSender() - Method in class org.subethamail.wiser.WiserMessage
Get's the MAIL FROM:
getFormattedTopicList(SMTPServer) - Method in class org.subethamail.smtp.command.HelpCommand
 
getHasMailFrom() - Method in class org.subethamail.smtp.server.Session
Simple state
getHelp() - Method in class org.subethamail.smtp.server.BaseCommand
 
getHelp() - Method in interface org.subethamail.smtp.server.Command
 
getHelp(String) - Method in class org.subethamail.smtp.server.CommandHandler
 
getHideTLS() - Method in class org.subethamail.smtp.server.SMTPServer
 
getHostName() - Method in class org.subethamail.smtp.server.SMTPServer
 
getImplementation() - Static method in class org.subethamail.smtp.Version
 
getInputStream() - Method in class org.subethamail.smtp.server.io.DeferredFileOutputStream
Closes the output stream and creates an InputStream on the same data.
getMaxConnections() - Method in class org.subethamail.smtp.server.SMTPServer
 
getMaxRecipients() - Method in class org.subethamail.smtp.server.SMTPServer
 
getMessageHandler() - Method in class org.subethamail.smtp.server.Session
 
getMessageHandlerFactory() - Method in class org.subethamail.smtp.server.SMTPServer
 
getMessages() - Method in class org.subethamail.wiser.Wiser
 
getMimeMessage() - Method in class org.subethamail.wiser.WiserMessage
Generate a JavaMail MimeMessage.
getName() - Method in class org.subethamail.smtp.server.BaseCommand
 
getName() - Method in interface org.subethamail.smtp.server.Command
 
getName() - Method in class org.subethamail.smtp.server.HelpMessage
 
getName() - Method in class org.subethamail.smtp.server.SMTPServer
 
getNameVersion() - Method in class org.subethamail.smtp.server.SMTPServer
 
getNumberOfConnections() - Method in class org.subethamail.smtp.server.SMTPServer
 
getPort() - Method in class org.subethamail.smtp.server.SMTPServer
 
getRawInput() - Method in class org.subethamail.smtp.server.Session
 
getReader() - Method in class org.subethamail.smtp.server.Session
 
getRecipientCount() - Method in class org.subethamail.smtp.server.Session
 
getRemoteAddress() - Method in interface org.subethamail.smtp.MessageContext
 
getRemoteAddress() - Method in class org.subethamail.smtp.server.Session
 
getServer() - Method in class org.subethamail.smtp.server.Session
 
getServer() - Method in class org.subethamail.wiser.Wiser
 
getSession() - Method in class org.subethamail.wiser.Wiser
Creates the JavaMail Session object for use in WiserMessage
getSessionGroup() - Method in class org.subethamail.smtp.server.SMTPServer
 
getSMTPServer() - Method in interface org.subethamail.smtp.MessageContext
 
getSMTPServer() - Method in class org.subethamail.smtp.server.Session
 
getSocket() - Method in class org.subethamail.smtp.server.Session
This method is only used by the start tls command
getSpecification() - Static method in class org.subethamail.smtp.Version
 
getThreshold() - Method in class org.subethamail.smtp.server.io.ThresholdingOutputStream
 
getValidator() - Method in class org.subethamail.smtp.auth.EasyAuthenticationHandlerFactory
 
getVerbs() - Method in class org.subethamail.smtp.server.CommandHandler
 

H

handleCommand(Session, String) - Method in class org.subethamail.smtp.server.CommandHandler
 
hashCode() - Method in class org.subethamail.smtp.server.HelpMessage
 
hasTooManyConnections() - Method in class org.subethamail.smtp.server.SMTPServer
 
HelloCommand - Class in org.subethamail.smtp.command
 
HelloCommand() - Constructor for class org.subethamail.smtp.command.HelloCommand
 
HelloTest - Class in org.subethamail.smtp.test.command
 
HelloTest(String) - Constructor for class org.subethamail.smtp.test.command.HelloTest
 
HelpCommand - Class in org.subethamail.smtp.command
Provides a help system for people to interact with.
HelpCommand() - Constructor for class org.subethamail.smtp.command.HelpCommand
 
HelpMessage - Class in org.subethamail.smtp.server
 
HelpMessage(String, String, String) - Constructor for class org.subethamail.smtp.server.HelpMessage
 
HelpMessage(String, String) - Constructor for class org.subethamail.smtp.server.HelpMessage
 

I

InvalidCommandNameException - Exception in org.subethamail.smtp.server
 
InvalidCommandNameException() - Constructor for exception org.subethamail.smtp.server.InvalidCommandNameException
 
InvalidCommandNameException(String) - Constructor for exception org.subethamail.smtp.server.InvalidCommandNameException
 
InvalidCommandNameException(String, Throwable) - Constructor for exception org.subethamail.smtp.server.InvalidCommandNameException
 
InvalidCommandNameException(Throwable) - Constructor for exception org.subethamail.smtp.server.InvalidCommandNameException
 
isAuthenticated() - Method in class org.subethamail.smtp.server.Session
 
isRunning() - Method in class org.subethamail.smtp.server.SMTPServer
Is the server running after start() has been called?
isValidEmailAddress(String) - Static method in class org.subethamail.smtp.util.EmailUtils
 

J

joinTogether(Collection<String>, String) - Static method in class org.subethamail.smtp.util.TextUtils
 

L

last - Variable in class org.subethamail.smtp.server.io.DotUnstuffingInputStream
An array to hold the last two bytes read off the stream.
login(String, String) - Method in interface org.subethamail.smtp.auth.UsernamePasswordValidator
 
LoginAuthenticationHandlerFactory - Class in org.subethamail.smtp.auth
Implements the SMTP AUTH LOGIN mechanism.
You are only required to plug your UsernamePasswordValidator implementation for username and password validation to take effect.
LoginAuthenticationHandlerFactory(UsernamePasswordValidator) - Constructor for class org.subethamail.smtp.auth.LoginAuthenticationHandlerFactory
 
LoginFailedException - Exception in org.subethamail.smtp.auth
Exception expected to be thrown by a validator (i.e UsernamePasswordValidator)
LoginFailedException() - Constructor for exception org.subethamail.smtp.auth.LoginFailedException
Creates a new instance of LoginFailedException
LoginFailedException(String) - Constructor for exception org.subethamail.smtp.auth.LoginFailedException
Creates a new instance of LoginFailedException

M

MailCommand - Class in org.subethamail.smtp.command
 
MailCommand() - Constructor for class org.subethamail.smtp.command.MailCommand
 
MailTest - Class in org.subethamail.smtp.test.command
 
MailTest(String) - Constructor for class org.subethamail.smtp.test.command.MailTest
 
main(String[]) - Static method in class org.subethamail.smtp.test.util.Practice
 
main(String[]) - Static method in class org.subethamail.smtp.Version
A simple main method that prints the version and exits
main(String[]) - Static method in class org.subethamail.wiser.Wiser
A main() for this class.
MessageContentTest - Class in org.subethamail.smtp.test
This class serves as a test case for both Wiser (since it is used internally here) as well as harder to reach code within the SMTP server that tests a roundtrip message through the DATA portion of the SMTP spec.
MessageContentTest(String) - Constructor for class org.subethamail.smtp.test.MessageContentTest
 
MessageContext - Interface in org.subethamail.smtp
Interface which provides context to the message handlers.
MessageHandler - Interface in org.subethamail.smtp
The interface that defines the conversational exchange of a single message on an SMTP connection.
MessageHandlerFactory - Interface in org.subethamail.smtp
The primary interface to be implemented by clients of the SMTP library.
MultipleAuthenticationHandlerFactory - Class in org.subethamail.smtp.auth
This handler combines the behavior of several other authentication handler factories.
MultipleAuthenticationHandlerFactory() - Constructor for class org.subethamail.smtp.auth.MultipleAuthenticationHandlerFactory
 
MultipleAuthenticationHandlerFactory(Collection<AuthenticationHandlerFactory>) - Constructor for class org.subethamail.smtp.auth.MultipleAuthenticationHandlerFactory
 

N

NoopCommand - Class in org.subethamail.smtp.command
 
NoopCommand() - Constructor for class org.subethamail.smtp.command.NoopCommand
 

O

org.subethamail.smtp - package org.subethamail.smtp
 
org.subethamail.smtp.auth - package org.subethamail.smtp.auth
 
org.subethamail.smtp.command - package org.subethamail.smtp.command
 
org.subethamail.smtp.helper - package org.subethamail.smtp.helper
 
org.subethamail.smtp.server - package org.subethamail.smtp.server
 
org.subethamail.smtp.server.io - package org.subethamail.smtp.server.io
 
org.subethamail.smtp.test - package org.subethamail.smtp.test
 
org.subethamail.smtp.test.command - package org.subethamail.smtp.test.command
 
org.subethamail.smtp.test.util - package org.subethamail.smtp.test.util
 
org.subethamail.smtp.util - package org.subethamail.smtp.util
 
org.subethamail.wiser - package org.subethamail.wiser
 
output - Variable in class org.subethamail.smtp.server.io.ThresholdingOutputStream
 

P

PlainAuthenticationHandlerFactory - Class in org.subethamail.smtp.auth
Implements the SMTP AUTH PLAIN mechanism.
You are only required to plug your UsernamePasswordValidator implementation for username and password validation to take effect.
PlainAuthenticationHandlerFactory(UsernamePasswordValidator) - Constructor for class org.subethamail.smtp.auth.PlainAuthenticationHandlerFactory
 
PORT - Static variable in class org.subethamail.smtp.test.MessageContentTest
 
PORT - Static variable in class org.subethamail.smtp.test.StartStopTest
 
PORT - Static variable in class org.subethamail.smtp.test.TimeoutTest
 
PORT - Static variable in class org.subethamail.smtp.test.util.Practice
 
PORT - Static variable in class org.subethamail.smtp.test.util.ServerTestCase
 
position() - Method in exception org.subethamail.smtp.server.io.CRLFTerminatedReader.TerminationException
 
Practice - Class in org.subethamail.smtp.test.util
A simple command-line tool that lets us practice with the smtp library.
Practice() - Constructor for class org.subethamail.smtp.test.util.Practice
 

Q

quit() - Method in class org.subethamail.smtp.server.Session
Triggers the shutdown of the thread and the closing of the connection.
QuitCommand - Class in org.subethamail.smtp.command
 
QuitCommand() - Constructor for class org.subethamail.smtp.command.QuitCommand
 
QuitTest - Class in org.subethamail.smtp.test.command
 
QuitTest(String) - Constructor for class org.subethamail.smtp.test.command.QuitTest
 

R

read() - Method in class org.subethamail.smtp.server.io.CharTerminatedInputStream
Read a byte off this stream.
read() - Method in class org.subethamail.smtp.server.io.CRLFTerminatedReader
 
read(char[], int, int) - Method in class org.subethamail.smtp.server.io.CRLFTerminatedReader
 
read() - Method in class org.subethamail.smtp.server.io.DotUnstuffingInputStream
Read through the stream, checking for '\r\n.'
read(byte[], int, int) - Method in class org.subethamail.smtp.server.io.DotUnstuffingInputStream
Read through the stream, checking for '\r\n.'
readLine() - Method in class org.subethamail.smtp.server.io.CRLFTerminatedReader
Read a line of text which is terminated by CRLF.
readResponse() - Method in class org.subethamail.smtp.test.util.Client
Get the complete response, including a multiline response.
ready() - Method in class org.subethamail.smtp.server.io.CRLFTerminatedReader
 
ReceiptCommand - Class in org.subethamail.smtp.command
 
ReceiptCommand() - Constructor for class org.subethamail.smtp.command.ReceiptCommand
 
ReceiptTest - Class in org.subethamail.smtp.test.command
 
ReceiptTest(String) - Constructor for class org.subethamail.smtp.test.command.ReceiptTest
 
recipient(String) - Method in interface org.subethamail.smtp.MessageHandler
Called once for every RCPT TO during a SMTP exchange.
RejectException - Exception in org.subethamail.smtp
Thrown to reject an SMTP command with a specific code.
RejectException() - Constructor for exception org.subethamail.smtp.RejectException
 
RejectException(int, String) - Constructor for exception org.subethamail.smtp.RejectException
 
ResetCommand - Class in org.subethamail.smtp.command
 
ResetCommand() - Constructor for class org.subethamail.smtp.command.ResetCommand
 
resetMessageState() - Method in class org.subethamail.smtp.server.Session
Some state is associated with each particular message (senders, recipients, the message handler).
run() - Method in class org.subethamail.smtp.server.Session
The thread for each session runs on this and shuts down when the shutdown member goes true.
run() - Method in class org.subethamail.smtp.server.SMTPServer
This method is called by this thread when it starts up.

S

send(String) - Method in class org.subethamail.smtp.test.util.Client
Sends a message to the server, ie "HELO foo.example.com".
send(String) - Method in class org.subethamail.smtp.test.util.ServerTestCase
 
sendResponse(String) - Method in class org.subethamail.smtp.server.Session
Sends the response to the client
ServerTestCase - Class in org.subethamail.smtp.test.util
A base class for testing the SMTP server at the raw protocol level.
ServerTestCase(String) - Constructor for class org.subethamail.smtp.test.util.ServerTestCase
 
ServerTestCase.TestWiser - Class in org.subethamail.smtp.test.util
Override the accept method in Wiser so we can test the accept method().
ServerTestCase.TestWiser() - Constructor for class org.subethamail.smtp.test.util.ServerTestCase.TestWiser
 
Session - Class in org.subethamail.smtp.server
The thread that handles a connection.
Session(SMTPServer, Socket) - Constructor for class org.subethamail.smtp.server.Session
Creates (but does not start) the thread object.
session - Variable in class org.subethamail.smtp.test.MessageContentTest
 
session - Variable in class org.subethamail.smtp.test.StartStopTest
 
setAuthenticationHandler(AuthenticationHandler) - Method in class org.subethamail.smtp.server.Session
This is called by the AuthCommand when a session is successfully authenticated.
setAuthenticationHandlerFactory(AuthenticationHandlerFactory) - Method in class org.subethamail.smtp.server.SMTPServer
 
setBacklog(int) - Method in class org.subethamail.smtp.server.SMTPServer
The backlog is the Socket backlog.
setBindAddress(InetAddress) - Method in class org.subethamail.smtp.server.SMTPServer
null means all interfaces
setConnectionTimeout(int) - Method in class org.subethamail.smtp.server.SMTPServer
Set the number of milliseconds that the server will wait for client input.
setHasMailFrom(boolean) - Method in class org.subethamail.smtp.server.Session
 
setHideTLS(boolean) - Method in class org.subethamail.smtp.server.SMTPServer
If set to true, TLS will not be advertised in the EHLO string.
setHostName(String) - Method in class org.subethamail.smtp.server.SMTPServer
The host name that will be reported to SMTP clients
setHostname(String) - Method in class org.subethamail.wiser.Wiser
The hostname that the server should listen on.
setMaxConnections(int) - Method in class org.subethamail.smtp.server.SMTPServer
Set's the maximum number of connections this server instance will accept.
setMaxRecipients(int) - Method in class org.subethamail.smtp.server.SMTPServer
Set the maximum number of recipients allowed for each message.
setMessageHandlerFactory(MessageHandlerFactory) - Method in class org.subethamail.smtp.server.SMTPServer
 
setPort(int) - Method in class org.subethamail.smtp.server.SMTPServer
 
setPort(int) - Method in class org.subethamail.wiser.Wiser
The port that the server should listen on.
setSocket(Socket) - Method in class org.subethamail.smtp.server.Session
Initializes our reader, writer, and the i/o filter chains based on the specified socket.
setUp() - Method in class org.subethamail.smtp.test.BigAttachmentTest
 
setUp() - Method in class org.subethamail.smtp.test.command.AuthTest
 
setUp() - Method in class org.subethamail.smtp.test.MessageContentTest
 
setUp() - Method in class org.subethamail.smtp.test.StartStopTest
 
setUp() - Method in class org.subethamail.smtp.test.TimeoutTest
 
setUp() - Method in class org.subethamail.smtp.test.util.ServerTestCase
 
setUp() - Method in class org.subethamail.smtp.test.WiserFailuresTest
 
SimpleMessageListener - Interface in org.subethamail.smtp.helper
This is an interface for processing the end-result messages that is higher-level than the MessageHandler and related factory.
SimpleMessageListenerAdapter - Class in org.subethamail.smtp.helper
MessageHandlerFactory implementation which adapts to a collection of MessageListeners.
SimpleMessageListenerAdapter(SimpleMessageListener) - Constructor for class org.subethamail.smtp.helper.SimpleMessageListenerAdapter
Initializes this factory with a single listener.
SimpleMessageListenerAdapter(Collection<SimpleMessageListener>) - Constructor for class org.subethamail.smtp.helper.SimpleMessageListenerAdapter
Initializes this factory with the listeners.
SimpleMessageListenerAdapter(Collection<SimpleMessageListener>, int) - Constructor for class org.subethamail.smtp.helper.SimpleMessageListenerAdapter
Initializes this factory with the listeners.
SMTPServer - Class in org.subethamail.smtp.server
Main SMTPServer class.
SMTPServer(MessageHandlerFactory) - Constructor for class org.subethamail.smtp.server.SMTPServer
The primary constructor.
SMTPServer(MessageHandlerFactory, AuthenticationHandlerFactory) - Constructor for class org.subethamail.smtp.server.SMTPServer
The primary constructor.
start() - Method in class org.subethamail.smtp.server.SMTPServer
Call this method to get things rolling after instantiating the SMTPServer.
start() - Method in class org.subethamail.wiser.Wiser
Starts the SMTP Server
StartStopTest - Class in org.subethamail.smtp.test
This class attempts to quickly start/stop 10 Wiser servers.
StartStopTest(String) - Constructor for class org.subethamail.smtp.test.StartStopTest
 
StartTLSCommand - Class in org.subethamail.smtp.command
 
StartTLSCommand() - Constructor for class org.subethamail.smtp.command.StartTLSCommand
 
StartTLSTest - Class in org.subethamail.smtp.test.command
 
StartTLSTest(String) - Constructor for class org.subethamail.smtp.test.command.StartTLSTest
 
stop() - Method in class org.subethamail.smtp.server.SMTPServer
Shut things down gracefully.
stop() - Method in class org.subethamail.wiser.Wiser
Stops the SMTP Server
stopAllSessions() - Method in class org.subethamail.smtp.server.SMTPServer
Grabs all instances of Sessions and attempts to close the socket if it is still open.
stopServerThread() - Method in class org.subethamail.smtp.server.SMTPServer
Shuts down the server thread and the associated server socket in an orderly fashion.
suite() - Static method in class org.subethamail.smtp.test.MessageContentTest
 
suite() - Static method in class org.subethamail.smtp.test.StartStopTest
 
suite() - Static method in class org.subethamail.smtp.test.TimeoutTest
 

T

tearDown() - Method in class org.subethamail.smtp.test.BigAttachmentTest
 
tearDown() - Method in class org.subethamail.smtp.test.command.AuthTest
 
tearDown() - Method in class org.subethamail.smtp.test.MessageContentTest
 
tearDown() - Method in class org.subethamail.smtp.test.StartStopTest
 
tearDown() - Method in class org.subethamail.smtp.test.TimeoutTest
 
tearDown() - Method in class org.subethamail.smtp.test.util.ServerTestCase
 
tearDown() - Method in class org.subethamail.smtp.test.WiserFailuresTest
 
testAlreadySpecified() - Method in class org.subethamail.smtp.test.command.MailTest
 
testAttachments() - Method in class org.subethamail.smtp.test.BigAttachmentTest
 
testAuthLogin() - Method in class org.subethamail.smtp.test.command.AuthTest
Test method for AUTH LOGIN.
testAuthPlain() - Method in class org.subethamail.smtp.test.command.AuthTest
Test method for AUTH PLAIN.
testBinaryEightBitMessage() - Method in class org.subethamail.smtp.test.MessageContentTest
 
testCommandHandling() - Method in class org.subethamail.smtp.test.command.CommandTest
 
testData() - Method in class org.subethamail.smtp.test.command.DataTest
 
testEmptyEmailFromCommand() - Method in class org.subethamail.smtp.test.command.MailTest
 
testEmptyFromCommand() - Method in class org.subethamail.smtp.test.command.MailTest
 
testHelloCommand() - Method in class org.subethamail.smtp.test.command.HelloTest
 
testHelloReset() - Method in class org.subethamail.smtp.test.command.HelloTest
 
testInvalidSenders() - Method in class org.subethamail.smtp.test.command.MailTest
 
testIso2022JPEightBitMessage() - Method in class org.subethamail.smtp.test.MessageContentTest
 
testIso885915EightBitMessage() - Method in class org.subethamail.smtp.test.MessageContentTest
 
testIso88591EightBitMessage() - Method in class org.subethamail.smtp.test.MessageContentTest
 
testLargeMessage() - Method in class org.subethamail.smtp.test.MessageContentTest
 
testMailFromAfterReset() - Method in class org.subethamail.smtp.test.WiserFailuresTest
See http://sourceforge.net/tracker/index.php?func=detail&aid=1474700&group_id=78413&atid=553186 for discussion about this bug
testMailFromWithInitialReset() - Method in class org.subethamail.smtp.test.WiserFailuresTest
See http://sourceforge.net/tracker/index.php?func=detail&aid=1474700&group_id=78413&atid=553186 for discussion about this bug
testMailNoHello() - Method in class org.subethamail.smtp.test.command.MailTest
 
testMailWithoutWhitespace() - Method in class org.subethamail.smtp.test.command.MailTest
 
testMalformedMailCommand() - Method in class org.subethamail.smtp.test.command.MailTest
 
testMultipleRecipients() - Method in class org.subethamail.smtp.test.MessageContentTest
 
testMultipleStartStop() - Method in class org.subethamail.smtp.test.StartStopTest
 
testNeedMail() - Method in class org.subethamail.smtp.test.command.DataTest
 
testNeedRcpt() - Method in class org.subethamail.smtp.test.command.DataTest
 
testQuit() - Method in class org.subethamail.smtp.test.command.QuitTest
 
testQuit() - Method in class org.subethamail.smtp.test.command.StartTLSTest
 
testReceiptAccept() - Method in class org.subethamail.smtp.test.command.ReceiptTest
 
testReceiptBeforeMail() - Method in class org.subethamail.smtp.test.command.ReceiptTest
 
testReceiptErrorInParams() - Method in class org.subethamail.smtp.test.command.ReceiptTest
 
testReceiptNoWhiteSpace() - Method in class org.subethamail.smtp.test.command.ReceiptTest
 
testRsetAfterData() - Method in class org.subethamail.smtp.test.command.DataTest
 
testSendEncodedMessage() - Method in class org.subethamail.smtp.test.WiserFailuresTest
 
testSendMessageWithCarriageReturn() - Method in class org.subethamail.smtp.test.WiserFailuresTest
 
testSendTwoMessagesSameConnection() - Method in class org.subethamail.smtp.test.WiserFailuresTest
 
testSendTwoMsgsWithLogin() - Method in class org.subethamail.smtp.test.WiserFailuresTest
 
testTimeout() - Method in class org.subethamail.smtp.test.TimeoutTest
 
testUtf16EightBitMessage() - Method in class org.subethamail.smtp.test.MessageContentTest
 
testUtf8EightBitMessage() - Method in class org.subethamail.smtp.test.MessageContentTest
 
TextUtils - Class in org.subethamail.smtp.util
 
TextUtils() - Constructor for class org.subethamail.smtp.util.TextUtils
 
ThresholdingOutputStream - Class in org.subethamail.smtp.server.io
This is an OutputStream wrapper which takes notice when a threshold (number of bytes) is about to be written.
ThresholdingOutputStream(OutputStream, int) - Constructor for class org.subethamail.smtp.server.io.ThresholdingOutputStream
 
thresholdReached(int, int) - Method in class org.subethamail.smtp.server.io.DeferredFileOutputStream
 
thresholdReached(int, int) - Method in class org.subethamail.smtp.server.io.ThresholdingOutputStream
Called when the threshold is about to be exceeded.
TimeoutTest - Class in org.subethamail.smtp.test
This class attempts to quickly start/stop 10 Wiser servers.
TimeoutTest(String) - Constructor for class org.subethamail.smtp.test.TimeoutTest
 
TMPFILE_PREFIX - Static variable in class org.subethamail.smtp.server.io.DeferredFileOutputStream
 
TMPFILE_SUFFIX - Static variable in class org.subethamail.smtp.server.io.DeferredFileOutputStream
 
TooMuchDataException - Exception in org.subethamail.smtp
Thrown by message listeners if an input stream provides more data than the listener can handle.
TooMuchDataException() - Constructor for exception org.subethamail.smtp.TooMuchDataException
 
TooMuchDataException(String) - Constructor for exception org.subethamail.smtp.TooMuchDataException
 
toOutputString() - Method in class org.subethamail.smtp.server.HelpMessage
 

U

UnknownCommandException - Exception in org.subethamail.smtp.server
 
UnknownCommandException() - Constructor for exception org.subethamail.smtp.server.UnknownCommandException
 
UnknownCommandException(String) - Constructor for exception org.subethamail.smtp.server.UnknownCommandException
 
UnknownCommandException(String, Throwable) - Constructor for exception org.subethamail.smtp.server.UnknownCommandException
 
UnknownCommandException(Throwable) - Constructor for exception org.subethamail.smtp.server.UnknownCommandException
 
UsernamePasswordValidator - Interface in org.subethamail.smtp.auth
Use this when your authentication scheme uses a username and a password.

V

valueOf(String) - Static method in enum org.subethamail.smtp.server.CommandRegistry
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.subethamail.smtp.server.CommandRegistry
Returns an array containing the constants of this enum type, in the order they are declared.
VERB - Static variable in class org.subethamail.smtp.command.AuthCommand
 
VerifyCommand - Class in org.subethamail.smtp.command
 
VerifyCommand() - Constructor for class org.subethamail.smtp.command.VerifyCommand
 
Version - Class in org.subethamail.smtp
Provides version information from the manifest.
Version() - Constructor for class org.subethamail.smtp.Version
 

W

wiser - Variable in class org.subethamail.smtp.test.MessageContentTest
 
wiser - Variable in class org.subethamail.smtp.test.util.ServerTestCase
 
Wiser - Class in org.subethamail.wiser
Wiser is a tool for unit testing applications that send mail.
Wiser() - Constructor for class org.subethamail.wiser.Wiser
Create a new SMTP server with this class as the listener.
Wiser(boolean) - Constructor for class org.subethamail.wiser.Wiser
 
WiserFailuresTest - Class in org.subethamail.smtp.test
 
WiserFailuresTest(String) - Constructor for class org.subethamail.smtp.test.WiserFailuresTest
 
WiserMessage - Class in org.subethamail.wiser
This class wraps a received message and provides a way to generate a JavaMail MimeMessage from the data.
write(byte[], int, int) - Method in class org.subethamail.smtp.server.io.ThresholdingOutputStream
 
write(byte[]) - Method in class org.subethamail.smtp.server.io.ThresholdingOutputStream
 
write(int) - Method in class org.subethamail.smtp.server.io.ThresholdingOutputStream
 

A B C D E F G H I J L M N O P Q R S T U V W

Copyright © 2009 SubEthaSMTP. All Rights Reserved. Build version: UNVERSIONED