Skip navigation links
A C D E G H I L M N O P Q R S T V 

A

addAddress(String) - Method in class com.pessetto.origamismtp.commandhandlers.RCPTHandler
Adds an email address
addDeleteMessageListener(DeleteMessageListener) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Inbox
Adds a delte message listener to inbox
addMessage(Message) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Inbox
Adds a message to inbox and notifies all listeners
addNewMessageListener(NewMessageListener) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Inbox
Adds new message listener to inbox
addStatusListener(StatusListener) - Method in class com.pessetto.origamismtp.OrigamiSMTP
Adds a status listener
Attachment - Class in com.pessetto.origamismtp.filehandlers.inbox
Represents an attachment
Attachment(String, byte[], int) - Constructor for class com.pessetto.origamismtp.filehandlers.inbox.Attachment
Creates a new attachment
AUTHHandler - Class in com.pessetto.origamismtp.commandhandlers
Represents a handler for the AUTH command
AUTHHandler(String) - Constructor for class com.pessetto.origamismtp.commandhandlers.AUTHHandler
Creates an auth handler
AuthStatus - Enum in com.pessetto.origamismtp.status
Enum representing the possible authentication states

C

call() - Method in class com.pessetto.origamismtp.testing.TestSMTPMessageListener
Returns the newest message
closeServer() - Method in class com.pessetto.origamismtp.testing.TestSMTPServer
Closes the SMTP server
closeSMTP() - Method in class com.pessetto.origamismtp.OrigamiSMTP
Closes the SMTP connection
com.pessetto.origamismtp - package com.pessetto.origamismtp
 
com.pessetto.origamismtp.commandhandlers - package com.pessetto.origamismtp.commandhandlers
 
com.pessetto.origamismtp.commandhandlers.interfaces - package com.pessetto.origamismtp.commandhandlers.interfaces
 
com.pessetto.origamismtp.constants - package com.pessetto.origamismtp.constants
 
com.pessetto.origamismtp.filehandlers - package com.pessetto.origamismtp.filehandlers
 
com.pessetto.origamismtp.filehandlers.inbox - package com.pessetto.origamismtp.filehandlers.inbox
 
com.pessetto.origamismtp.status - package com.pessetto.origamismtp.status
 
com.pessetto.origamismtp.testing - package com.pessetto.origamismtp.testing
 
com.pessetto.origamismtp.threads - package com.pessetto.origamismtp.threads
 
CommandHandler - Class in com.pessetto.origamismtp.commandhandlers
Represents a handler able to pass commands to other classes
CommandHandler(DataOutputStream, Scanner) - Constructor for class com.pessetto.origamismtp.commandhandlers.CommandHandler
Creates a new CommandHandler
ConnectionHandler - Class in com.pessetto.origamismtp.threads
Represents a class to handle connections
ConnectionHandler(Socket) - Constructor for class com.pessetto.origamismtp.threads.ConnectionHandler
Creates new instance of the ConnectionHandler on socket
Constants - Class in com.pessetto.origamismtp.constants
Class containing all constants for Origami SMTP
Constants() - Constructor for class com.pessetto.origamismtp.constants.Constants
 
CR - Static variable in class com.pessetto.origamismtp.constants.Constants
Constant for carriage return
CRLF - Static variable in class com.pessetto.origamismtp.constants.Constants
Constant for Carriage return line feed

D

DataHandler - Class in com.pessetto.origamismtp.commandhandlers
Represents and handler for the Data command
DataHandler(RCPTHandler) - Constructor for class com.pessetto.origamismtp.commandhandlers.DataHandler
Creates a new instance of DataHandler
deleteMessage(int) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Inbox
Deletes the message with the given id
DeleteMessageListener - Interface in com.pessetto.origamismtp.filehandlers.inbox
An interface for any class that wants to listen for deletes

E

EHLOHandler - Class in com.pessetto.origamismtp.commandhandlers
Represents a handler for the EHLO command
EHLOHandler(String) - Constructor for class com.pessetto.origamismtp.commandhandlers.EHLOHandler
Creates a new instance of the EHLOHandler
EHLOHandler(String, boolean) - Constructor for class com.pessetto.origamismtp.commandhandlers.EHLOHandler
Creates a new instance of the EHLO command that allows secure if secure is true
EmailHandler - Class in com.pessetto.origamismtp.filehandlers
Represents a handler for the email message
EmailHandler(MAILHandler, RCPTHandler, DataHandler) - Constructor for class com.pessetto.origamismtp.filehandlers.EmailHandler
Creates new EmailHandler instance
ENABLE_START_TLS - Static variable in class com.pessetto.origamismtp.constants.Constants
Constant to enable SSL
enableTLS(Socket) - Method in class com.pessetto.origamismtp.commandhandlers.STARTTLSHandler
Enables SSL on the socket

G

getAttachmentCount() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Gets how many attachments the message has
getAttachments() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Returns list of attachments
getContent() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Attachment
Gets the content in (bytes)
getData() - Method in class com.pessetto.origamismtp.commandhandlers.DataHandler
Gets the data passed from client to server
getFileName() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Attachment
Gets the file name
getFrom() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Returns who the message is from
getHTMLMessage() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Gets the message formatted as HTML
getInstance() - Static method in class com.pessetto.origamismtp.filehandlers.inbox.Inbox
Gets the inbox instance
getLatestMessageFuture() - Method in class com.pessetto.origamismtp.testing.TestSMTPServer
Gets the message future for the latest message
getMessage(int) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Inbox
Gets the message at the specified index
getMessage() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Gets the message as a string
getMessageCount() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Inbox
Gets how many messages are in the inbox
getMessageRecieved() - Method in class com.pessetto.origamismtp.testing.TestSMTPMessageListener
Gets if the message was recieved
getMimeType() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Attachment
Gets the mime type of the attachment
getNewestMessage() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Inbox
Gets the last message to be recieved
getPlainMessage() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Gets the plain message of the message
getRecipient() - Method in class com.pessetto.origamismtp.commandhandlers.RCPTHandler
Gets the recipient this is going to
getResponse() - Method in class com.pessetto.origamismtp.commandhandlers.AUTHHandler
Gets the response to the client
getResponse() - Method in class com.pessetto.origamismtp.commandhandlers.DataHandler
Gets the response to send to client
getResponse() - Method in class com.pessetto.origamismtp.commandhandlers.EHLOHandler
Gets the response to send to client
getResponse() - Method in interface com.pessetto.origamismtp.commandhandlers.interfaces.Validatable
 
getResponse() - Method in class com.pessetto.origamismtp.commandhandlers.MAILHandler
Gets the response to send to the client
getResponse() - Method in class com.pessetto.origamismtp.commandhandlers.QUITHandler
 
getResponse() - Method in class com.pessetto.origamismtp.commandhandlers.RCPTHandler
Gets the response of the handler
getResponse() - Method in class com.pessetto.origamismtp.commandhandlers.RSETHandler
Handles the response to the client
getResponse() - Method in class com.pessetto.origamismtp.commandhandlers.STARTTLSHandler
The response to send to the client
getSender() - Method in class com.pessetto.origamismtp.commandhandlers.MAILHandler
Gets the sender
getSize() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Attachment
Gets the size of the attachment
getStatus() - Method in class com.pessetto.origamismtp.commandhandlers.AUTHHandler
Gets the current state of authentication
getSubject() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Gets the message subject
getTo() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Gets who the message is from

H

handleAuth(String) - Method in class com.pessetto.origamismtp.commandhandlers.CommandHandler
Handles the AUTH command
handleData() - Method in class com.pessetto.origamismtp.commandhandlers.CommandHandler
Handles the DATA command
handleEHLO(String) - Method in class com.pessetto.origamismtp.commandhandlers.CommandHandler
Handles the EHLO command
handleMAIL(String) - Method in class com.pessetto.origamismtp.commandhandlers.CommandHandler
Handles the Mail command
handleNotImplemented(String) - Method in class com.pessetto.origamismtp.commandhandlers.CommandHandler
Handles any command not implemented (missing) or not valid
handleQuit() - Method in class com.pessetto.origamismtp.commandhandlers.CommandHandler
Handles the QUIT command
handleRCPT(String) - Method in class com.pessetto.origamismtp.commandhandlers.CommandHandler
Handles the RCPT command
handleResponse(String) - Method in class com.pessetto.origamismtp.commandhandlers.CommandHandler
Handles the response to the client
handleRSET() - Method in class com.pessetto.origamismtp.commandhandlers.CommandHandler
Handles the RSET command
handleSTARTTLS(Socket) - Method in class com.pessetto.origamismtp.commandhandlers.CommandHandler
Handles the STARTTLS command

I

Inbox - Class in com.pessetto.origamismtp.filehandlers.inbox
Represents the inbox
INBOX_FILE - Static variable in class com.pessetto.origamismtp.constants.Constants
Constant for the inbox file
INBOX_FOLDER - Static variable in class com.pessetto.origamismtp.constants.Constants
Constant for the inbox folder
isRead() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Gets the read flag.

L

LF - Static variable in class com.pessetto.origamismtp.constants.Constants
Constant for line feed
LOG_FOLDER - Static variable in class com.pessetto.origamismtp.constants.Constants
Constant for the log folder

M

MAILHandler - Class in com.pessetto.origamismtp.commandhandlers
Represents a handler for the MAIL command
MAILHandler(String, Validatable) - Constructor for class com.pessetto.origamismtp.commandhandlers.MAILHandler
Creates a new instance of MailHandler
main(String[]) - Static method in class com.pessetto.origamismtp.OrigamiSMTP
Starts the server.
Message - Class in com.pessetto.origamismtp.filehandlers.inbox
Represents a message
Message() - Constructor for class com.pessetto.origamismtp.filehandlers.inbox.Message
Constructs a new instance of Message
messageRecieved() - Method in interface com.pessetto.origamismtp.filehandlers.inbox.NewMessageListener
Command to let listener know of new message
messageRecieved() - Method in class com.pessetto.origamismtp.testing.TestSMTPMessageListener
Listens for a message to be received
MULTIPART_MIME - Static variable in class com.pessetto.origamismtp.constants.Constants
Constant representing the multipart mime type

N

NewMessageListener - Interface in com.pessetto.origamismtp.filehandlers.inbox
Listener for a new message

O

OrigamiSMTP - Class in com.pessetto.origamismtp
The OrigamiSMTP main class
OrigamiSMTP(int) - Constructor for class com.pessetto.origamismtp.OrigamiSMTP
Creates an instance opened to the specified port
OrigamiSMTPServerThread - Class in com.pessetto.origamismtp.testing
Represents a test thread for the SMTP server
OrigamiSMTPServerThread(int) - Constructor for class com.pessetto.origamismtp.testing.OrigamiSMTPServerThread
 

P

PLAIN_MIME - Static variable in class com.pessetto.origamismtp.constants.Constants
Constant representing plain mime type
processMessage(Scanner) - Method in class com.pessetto.origamismtp.commandhandlers.DataHandler
Processes the data message
processMessage() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Processes the message

Q

QUITHandler - Class in com.pessetto.origamismtp.commandhandlers
 
QUITHandler(DataOutputStream, Scanner) - Constructor for class com.pessetto.origamismtp.commandhandlers.QUITHandler
 

R

RCPTHandler - Class in com.pessetto.origamismtp.commandhandlers
Represents a handler for the RCPT command
RCPTHandler(String, MAILHandler) - Constructor for class com.pessetto.origamismtp.commandhandlers.RCPTHandler
Creates an instance of the RCPTHandler
removeEmail(int) - Method in interface com.pessetto.origamismtp.filehandlers.inbox.DeleteMessageListener
Method to let listener know of deleted message
RSETHandler - Class in com.pessetto.origamismtp.commandhandlers
Represents a handler for the RSET command
RSETHandler(MAILHandler, RCPTHandler, DataHandler) - Constructor for class com.pessetto.origamismtp.commandhandlers.RSETHandler
Creates a new instance of the RSET Handler
run() - Method in class com.pessetto.origamismtp.testing.OrigamiSMTPServerThread
Runs the server thread
run() - Method in class com.pessetto.origamismtp.threads.ConnectionHandler
Runs the connection in a new thread

S

serialize() - Method in class com.pessetto.origamismtp.filehandlers.inbox.Inbox
Serializes the class to store on disk
setContent(byte[]) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Attachment
Sets the content
setfileName(String) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Attachment
Sets the file name of the attachment
setFrom(String) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Sets who the message is from
setInAndOutFromClient(Scanner, DataOutputStream) - Method in class com.pessetto.origamismtp.commandhandlers.CommandHandler
Sets the in and out streams to and from the client
setMessage(String) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Sets the message
setMimeType(String) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Attachment
Sets the mime type of the attachment
setRead(boolean) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Sets the read flag.
setSize(int) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Attachment
Sets the size of the attachment
setSubject(String) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Sets the subject of the message
setTo(String) - Method in class com.pessetto.origamismtp.filehandlers.inbox.Message
Gets who the message is to
smtpStarted() - Method in interface com.pessetto.origamismtp.status.StatusListener
 
smtpStopped() - Method in interface com.pessetto.origamismtp.status.StatusListener
 
startSMTP() - Method in class com.pessetto.origamismtp.OrigamiSMTP
Starts the SMTP server
STARTTLSHandler - Class in com.pessetto.origamismtp.commandhandlers
Represents a handler for the STARTTLS command
STARTTLSHandler(Socket) - Constructor for class com.pessetto.origamismtp.commandhandlers.STARTTLSHandler
Creates a new instance of the STARTTLSHandler
StatusListener - Interface in com.pessetto.origamismtp.status
Interface to listen if SMTP is started or stopped

T

TestSMTPMessageListener - Class in com.pessetto.origamismtp.testing
Thread to wait for a new message
TestSMTPMessageListener() - Constructor for class com.pessetto.origamismtp.testing.TestSMTPMessageListener
 
TestSMTPServer - Class in com.pessetto.origamismtp.testing
A test server for testing email
TestSMTPServer(int) - Constructor for class com.pessetto.origamismtp.testing.TestSMTPServer
Creates a new instance of a test server

V

Validatable - Interface in com.pessetto.origamismtp.commandhandlers.interfaces
 
validateOrNullify() - Method in class com.pessetto.origamismtp.commandhandlers.DataHandler
Validates the DataHandler or nullifies it if invalid
validateOrNullify() - Method in class com.pessetto.origamismtp.commandhandlers.EHLOHandler
Validates the handler or nullifies the handler
validateOrNullify() - Method in interface com.pessetto.origamismtp.commandhandlers.interfaces.Validatable
 
validateOrNullify() - Method in class com.pessetto.origamismtp.commandhandlers.MAILHandler
Validates or nullifies the MAILHandler
validateOrNullify() - Method in class com.pessetto.origamismtp.commandhandlers.QUITHandler
 
validateOrNullify() - Method in class com.pessetto.origamismtp.commandhandlers.RCPTHandler
Validates the RCPT handler or nullifies it
valueOf(String) - Static method in enum com.pessetto.origamismtp.status.AuthStatus
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.pessetto.origamismtp.status.AuthStatus
Returns an array containing the constants of this enum type, in the order they are declared.
A C D E G H I L M N O P Q R S T V 
Skip navigation links

Copyright © 2019. All rights reserved.