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.withConnectionListener(ConnectionListener connectionListener) Sets the specifiedconnectionListener.SmtpServerBuilder.withConnectionString(String str) Defines a custom connection string when a new client connects.SmtpServerBuilder.withDebugStream(PrintStream stream) Defines thePrintStreamto use for debugging.SmtpServerBuilder.withEHLOResponseFunction(Function<String, String> func) Defines a custom function to generate theSmtpCommand.Type.EHLOresponse.SmtpServerBuilder.withExecutorService(Supplier<ExecutorService> executorSupplier) Defines theExecutorServicesupplier to use to handle the SMTP messages.SmtpServerBuilder.withListener(SmtpServerListener listener) Adds the specifiedlisteneronce de server is built.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.withSmtpTransactionHandlerFactory(SmtpTransactionHandlerFactory factory) Defines theSmtpTransactionHandlerFactoryto use to handle SMTP transactions.SmtpServerBuilder.withSocketTimeout(int timeout) Defines the specifiedtimeout(in milliseconds) for theread()operations on socket input.SmtpServerBuilder.withSSLContextProvider(SSLContextProvider provider) Defines theSSLContextProviderto use when negotiating SSL.SmtpServerBuilder.withStartTLSRequired(boolean tlsRequired) Defines if secure transport layer is required (false by default).SmtpServerBuilder.withStartTLSSupport(boolean startTlsSupport) Defines if theSTARTTLSsupport is enabled (false by default).Adds the givenuserto the repository.