From ff6efd31978d310bf6b4bda3f144d32e5a75728d Mon Sep 17 00:00:00 2001 From: Tim Speckhals Date: Sun, 24 Feb 2019 04:28:37 +0100 Subject: [PATCH] 1.0.0 --- README.md | 2 +- docs/allclasses-frame.html | 8 +- docs/allclasses-noframe.html | 6 +- docs/index-files/index-1.html | 5 +- docs/index-files/index-10.html | 4 + docs/index-files/index-11.html | 8 +- docs/index-files/index-12.html | 8 +- docs/index-files/index-13.html | 5 +- docs/index-files/index-15.html | 8 +- docs/index-files/index-16.html | 53 +- docs/index-files/index-17.html | 18 +- docs/index-files/index-18.html | 14 +- docs/index-files/index-2.html | 5 +- docs/index-files/index-3.html | 17 +- docs/index-files/index-4.html | 7 + docs/index-files/index-5.html | 2 - docs/index-files/index-6.html | 21 +- docs/index-files/index-7.html | 30 +- docs/index-files/index-8.html | 4 +- docs/index-files/index-9.html | 31 +- docs/overview-tree.html | 11 +- docs/serialized-form.html | 8 + docs/sh/hell/jsmtp/Main.html | 4 +- docs/sh/hell/jsmtp/SMTPAddress.html | 2 +- docs/sh/hell/jsmtp/client/SMTPClient.html | 321 ++-------- docs/sh/hell/jsmtp/client/SMTPResponse.html | 62 +- docs/sh/hell/jsmtp/content/SMTPAddress.html | 555 ++++++++++++++++ .../sh/hell/jsmtp/content/SMTPAttachment.html | 6 +- docs/sh/hell/jsmtp/content/SMTPContent.html | 71 +- docs/sh/hell/jsmtp/content/SMTPEncoding.html | 6 +- docs/sh/hell/jsmtp/content/SMTPMail.html | 605 ++++++++++++++++++ .../jsmtp/content/SMTPMultipartContent.html | 6 +- docs/sh/hell/jsmtp/content/package-frame.html | 2 + .../hell/jsmtp/content/package-summary.html | 13 +- docs/sh/hell/jsmtp/content/package-tree.html | 6 + .../exceptions/InvalidAddressException.html | 6 +- .../exceptions/InvalidHeaderException.html | 286 +++++++++ .../exceptions/InvalidStateException.html | 6 +- .../hell/jsmtp/exceptions/SMTPException.html | 7 +- .../hell/jsmtp/exceptions/package-frame.html | 2 + .../jsmtp/exceptions/package-summary.html | 9 +- .../hell/jsmtp/exceptions/package-tree.html | 3 + docs/sh/hell/jsmtp/package-frame.html | 1 - docs/sh/hell/jsmtp/package-summary.html | 4 - docs/sh/hell/jsmtp/package-tree.html | 1 - .../hell/jsmtp/server/SMTPEventHandler.html | 99 ++- docs/sh/hell/jsmtp/server/SMTPListener.html | 6 +- docs/sh/hell/jsmtp/server/SMTPMail.html | 2 +- docs/sh/hell/jsmtp/server/SMTPServer.html | 6 +- docs/sh/hell/jsmtp/server/package-frame.html | 1 - .../sh/hell/jsmtp/server/package-summary.html | 6 +- docs/sh/hell/jsmtp/server/package-tree.html | 1 - pom.xml | 2 +- src/sh/hell/jsmtp/Main.java | 2 +- src/sh/hell/jsmtp/client/SMTPClient.java | 209 ++---- src/sh/hell/jsmtp/client/SMTPResponse.java | 4 +- .../hell/jsmtp/{ => content}/SMTPAddress.java | 43 +- src/sh/hell/jsmtp/content/SMTPAttachment.java | 2 +- src/sh/hell/jsmtp/content/SMTPContent.java | 14 +- src/sh/hell/jsmtp/content/SMTPMail.java | 208 ++++++ .../jsmtp/content/SMTPMultipartContent.java | 4 +- .../hell/jsmtp/content/SMTPTextContent.java | 4 +- .../exceptions/InvalidHeaderException.java | 9 + .../hell/jsmtp/server/SMTPEventHandler.java | 25 +- src/sh/hell/jsmtp/server/SMTPMail.java | 51 -- src/sh/hell/jsmtp/server/SMTPSession.java | 197 ++++-- testsrc/Tests.java | 102 ++- 67 files changed, 2533 insertions(+), 723 deletions(-) create mode 100644 docs/sh/hell/jsmtp/content/SMTPAddress.html create mode 100644 docs/sh/hell/jsmtp/content/SMTPMail.html create mode 100644 docs/sh/hell/jsmtp/exceptions/InvalidHeaderException.html rename src/sh/hell/jsmtp/{ => content}/SMTPAddress.java (76%) create mode 100644 src/sh/hell/jsmtp/content/SMTPMail.java create mode 100644 src/sh/hell/jsmtp/exceptions/InvalidHeaderException.java delete mode 100644 src/sh/hell/jsmtp/server/SMTPMail.java diff --git a/README.md b/README.md index 2906735..575c0d2 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ jSMTP is using slf4j, so Maven is the best way to include jSMTP: sh.hell jsmtp - 0.5.0 + [1.0.0,2.0.0) diff --git a/docs/allclasses-frame.html b/docs/allclasses-frame.html index 2950a62..6db4b8e 100644 --- a/docs/allclasses-frame.html +++ b/docs/allclasses-frame.html @@ -12,9 +12,12 @@

All Classes

diff --git a/docs/index-files/index-2.html b/docs/index-files/index-2.html index 458e6c3..66c9dc8 100644 --- a/docs/index-files/index-2.html +++ b/docs/index-files/index-2.html @@ -72,7 +72,10 @@

B

-
bcc(SMTPAddress) - Method in class sh.hell.jsmtp.client.SMTPClient
+
bcc(SMTPAddress) + - Method in class sh.hell.jsmtp.content.SMTPMail
 
body - Variable in class sh.hell.jsmtp.content.SMTPTextContent
 
diff --git a/docs/index-files/index-3.html b/docs/index-files/index-3.html index d0b6ef4..0e15d96 100644 --- a/docs/index-files/index-3.html +++ b/docs/index-files/index-3.html @@ -72,7 +72,10 @@

C

-
cc(SMTPAddress) - Method in class sh.hell.jsmtp.client.SMTPClient
+
cc(SMTPAddress) + - Method in class sh.hell.jsmtp.content.SMTPMail
 
close() - Method in class sh.hell.jsmtp.client.SMTPClient
 
@@ -80,10 +83,16 @@

C

 
close(String) - Method in class sh.hell.jsmtp.server.SMTPSession
 
-
content - Variable in class sh.hell.jsmtp.server.SMTPMail
-
 
-
copy() - Method in class sh.hell.jsmtp.SMTPAddress
+
contents - + Variable in class sh.hell.jsmtp.content.SMTPMail
 
+
copy() - + Method in class sh.hell.jsmtp.content.SMTPAddress
+
+
Returns an unchanged copy of the SMTPAddress.
+
A B C D E F G H I L M N O P R S T V W  diff --git a/docs/index-files/index-4.html b/docs/index-files/index-4.html index eb9aa53..b5d6fab 100644 --- a/docs/index-files/index-4.html +++ b/docs/index-files/index-4.html @@ -72,6 +72,13 @@

D

+
data(SMTPContent) + - Method in class sh.hell.jsmtp.content.SMTPMail
+
+
Sets the contents of the email.
+
decode(String) - Method in enum sh.hell.jsmtp.content.SMTPEncoding
 
diff --git a/docs/index-files/index-5.html b/docs/index-files/index-5.html index 32bbed0..fe1ccdc 100644 --- a/docs/index-files/index-5.html +++ b/docs/index-files/index-5.html @@ -72,8 +72,6 @@

E

-
emailHeaders - Variable in class sh.hell.jsmtp.client.SMTPClient
-
 
encode(String) - Method in enum sh.hell.jsmtp.content.SMTPEncoding
 
extendedSMTP - Variable in class sh.hell.jsmtp.client.SMTPClient
diff --git a/docs/index-files/index-6.html b/docs/index-files/index-6.html index 29e5e2a..d00be93 100644 --- a/docs/index-files/index-6.html +++ b/docs/index-files/index-6.html @@ -76,13 +76,22 @@

F

 
flush() - Method in class sh.hell.jsmtp.client.SMTPClient
 
-
from(SMTPAddress) - Method in class sh.hell.jsmtp.client.SMTPClient
+
from(HashMap<String, String>, String) + - Static method in class sh.hell.jsmtp.content.SMTPContent
-
Specifies the given address as the email sender, and starts TLS if the server requires it.
+
Converts an email's headers & body into its SMTPContent representation.
-
from(HashMap<String, String>, String) - Static method in class sh.hell.jsmtp.content.SMTPContent
+
from(SMTPAddress) + - Method in class sh.hell.jsmtp.content.SMTPMail
 
-
fromAddress(SMTPAddress) - Static method in class sh.hell.jsmtp.client.SMTPClient
+
fromAddress(SMTPAddress) + - Static method in class sh.hell.jsmtp.client.SMTPClient
 
fromFile(File) - Static method in class sh.hell.jsmtp.content.SMTPAttachment
 
@@ -92,7 +101,9 @@

F

 
fromServer(String) - Static method in class sh.hell.jsmtp.client.SMTPClient
 
-
fromText(String) - Static method in class sh.hell.jsmtp.SMTPAddress
+
fromText(String) + - Static method in class sh.hell.jsmtp.content.SMTPAddress
 
A B C D E F G H I L M N O P R S T V W  diff --git a/docs/index-files/index-7.html b/docs/index-files/index-7.html index c4f477a..b40b896 100644 --- a/docs/index-files/index-7.html +++ b/docs/index-files/index-7.html @@ -80,18 +80,40 @@

G

 
getBody() - Method in class sh.hell.jsmtp.content.SMTPTextContent
 
-
getDomain() - Method in class sh.hell.jsmtp.SMTPAddress
+
getDomain() - Method in class + sh.hell.jsmtp.content.SMTPAddress
 
getHostname(SMTPSession) - Method in class sh.hell.jsmtp.server.SMTPEventHandler
 
-
getInboxName() - Method in class sh.hell.jsmtp.SMTPAddress
+
getInboxName() - Method in class + sh.hell.jsmtp.content.SMTPAddress
 
-
getMailServers() - Method in class sh.hell.jsmtp.SMTPAddress
+
getMailServers() + - Method in class sh.hell.jsmtp.content.SMTPAddress
Gets servers responsible for this address, even when no MX record is set.
-
getName() - Method in class sh.hell.jsmtp.SMTPAddress
+
getName() + - Method in class sh.hell.jsmtp.content.SMTPAddress
+
 
+
getRawContents() - Method in class + sh.hell.jsmtp.content.SMTPMail +
 
+
getSizeLimit(SMTPSession) + - Method in class sh.hell.jsmtp.server.SMTPEventHandler
+
+
Returns the size limit of emails in bytes.
+
getWelcomeMessage(SMTPSession) - Method in class sh.hell.jsmtp.server.SMTPEventHandler
 
diff --git a/docs/index-files/index-8.html b/docs/index-files/index-8.html index 6470226..b8b3d82 100644 --- a/docs/index-files/index-8.html +++ b/docs/index-files/index-8.html @@ -72,7 +72,9 @@

H

-
headers - Variable in class sh.hell.jsmtp.server.SMTPMail
+
headers - + Variable in class sh.hell.jsmtp.content.SMTPMail
 
hello(String) - Method in class sh.hell.jsmtp.client.SMTPClient
diff --git a/docs/index-files/index-9.html b/docs/index-files/index-9.html index a77a5f5..b79d1cd 100644 --- a/docs/index-files/index-9.html +++ b/docs/index-files/index-9.html @@ -76,6 +76,16 @@

I

 
InvalidAddressException() - Constructor for exception sh.hell.jsmtp.exceptions.InvalidAddressException
 
+
InvalidHeaderException - + Exception in sh.hell.jsmtp.exceptions
+
 
+
InvalidHeaderException(String) + - Constructor for exception sh.hell.jsmtp.exceptions.InvalidHeaderException
+
 
InvalidStateException - Exception in sh.hell.jsmtp.exceptions
 
InvalidStateException(String) - Constructor for exception sh.hell.jsmtp.exceptions.InvalidStateException
@@ -94,12 +104,27 @@

I

 
isOpen() - Method in class sh.hell.jsmtp.server.SMTPSession
 
-
isRecipientAccepted(SMTPSession, SMTPAddress) - Method in class sh.hell.jsmtp.server.SMTPEventHandler
+
isRecipientAccepted(SMTPSession, SMTPAddress) + - Method in class sh.hell.jsmtp.server.SMTPEventHandler
 
-
isSenderAccepted(SMTPSession, SMTPAddress) - Method in class sh.hell.jsmtp.server.SMTPEventHandler
+
isSenderAccepted(SMTPSession, SMTPAddress) + - Method in class sh.hell.jsmtp.server.SMTPEventHandler
 
-
isValid() - Method in class sh.hell.jsmtp.SMTPAddress
+
isValid() + - Method in class sh.hell.jsmtp.content.SMTPAddress
 
+
isVRFYallowed(SMTPSession) + - Method in class sh.hell.jsmtp.server.SMTPEventHandler
+
+
Returns whether VRFY commands are supported for the given session.
+
A B C D E F G H I L M N O P R S T V W  diff --git a/docs/overview-tree.html b/docs/overview-tree.html index 2d7cce5..9ee0e37 100644 --- a/docs/overview-tree.html +++ b/docs/overview-tree.html @@ -84,7 +84,9 @@

Class Hierarchy

  • java.lang.Object