Uses of Class
ch.astorm.smtp4j.SmtpServerBuilder
Packages that use SmtpServerBuilder
-
Uses of SmtpServerBuilder in ch.astorm.smtp4j
Methods in ch.astorm.smtp4j that return SmtpServerBuilderModifier and TypeMethodDescriptionSmtpServerBuilder.withAuthenticator(SmtpAuthenticatorHandler handler) Adds the givenhandlerto authenticate a client.SmtpServerBuilder.withConnectionString(String str) Defines a custom connection string when a new client connects.SmtpServerBuilder.withDebugStream(PrintStream stream) Defines thePrintStreamto use for debugging.If null, then no debug output will be printed.SmtpServerBuilder.withEHLOResponseFunction(Function<String, String> func) Defines a custom function to generate theSmtpCommand.Type.EHLOresponse.SmtpServerBuilder.withExecutorService(ExecutorService executor) Defines theExecutorServiceto use to handle the SMTP messages.SmtpServerBuilder.withListener(SmtpServerListener listener) Adds the specifiedlisteneronce de server is build.SmtpServerBuilder.withMaxMessageSize(int limit) Defines the maximum message size (in bytes).SmtpServerBuilder.withMessageHandler(SmtpMessageHandler messageHandler) Defines theSmtpMessageHandlerto be applied for the received messages.SmtpServerBuilder.withOptions(SmtpServerOptions options) Defines the SMTP server options..SmtpServerBuilder.withPort(int port) Defines the port on which theSmtpServerwill listen to.SmtpServerBuilder.withProtocol(SmtpServerOptions.Protocol protocol) Defines the protocol to used.SmtpServerBuilder.withSSLContextProvider(SSLContextProvider provider) Defines theSSLContextProviderto use when negotiating SSL.SmtpServerBuilder.withStartTLSRequired(boolean tlsRequired) Defines if secure transport layer is required.SmtpServerBuilder.withStartTLSSupport(boolean startTlsSupport) Defines if theSTARTTLSsupport is enabled (false by default).If true, then aSSL context providermust be set.Adds the givenuserto the repository.