Package | Description |
---|---|
com.hubspot.smtp.client |
This package contains classes to create and maintain connections to SMTP servers.
|
Modifier and Type | Method and Description |
---|---|
SmtpSessionConfig |
SmtpSessionConfig.Builder.build()
Builds a new
SmtpSessionConfig . |
SmtpSessionConfig |
SmtpSessionConfig.withConnectionId(String connectionId)
Copy the current immutable object by setting a value for the
connectionId attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withConnectionTimeout(Duration connectionTimeout)
Copy the current immutable object by setting a value for the
connectionTimeout attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withDisabledExtensions(EnumSet<Extension> disabledExtensions)
Copy the current immutable object by setting a value for the
disabledExtensions attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withExceptionHandler(Consumer<Throwable> value)
Copy the current immutable object by setting a present value for the optional
exceptionHandler attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withExceptionHandler(Optional<Consumer<Throwable>> optional)
Copy the current immutable object by setting an optional value for the
exceptionHandler attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withInitialResponseReadTimeout(Duration value)
Copy the current immutable object by setting a present value for the optional
initialResponseReadTimeout attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withInitialResponseReadTimeout(Optional<Duration> optional)
Copy the current immutable object by setting an optional value for the
initialResponseReadTimeout attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withKeepAliveTimeout(Duration value)
Copy the current immutable object by setting a present value for the optional
keepAliveTimeout attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withKeepAliveTimeout(Optional<Duration> optional)
Copy the current immutable object by setting an optional value for the
keepAliveTimeout attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withLocalAddress(InetSocketAddress value)
Copy the current immutable object by setting a present value for the optional
localAddress attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withLocalAddress(Optional<InetSocketAddress> optional)
Copy the current immutable object by setting an optional value for the
localAddress attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withReadTimeout(Duration value)
Copy the current immutable object by setting a present value for the optional
readTimeout attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withReadTimeout(Optional<Duration> optional)
Copy the current immutable object by setting an optional value for the
readTimeout attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withRemoteAddress(InetSocketAddress remoteAddress)
Copy the current immutable object by setting a value for the
remoteAddress attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withSendInterceptor(Optional<SendInterceptor> optional)
Copy the current immutable object by setting an optional value for the
sendInterceptor attribute. |
SmtpSessionConfig |
SmtpSessionConfig.withSendInterceptor(SendInterceptor value)
Copy the current immutable object by setting a present value for the optional
sendInterceptor attribute. |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<SmtpClientResponse> |
SmtpSessionFactory.connect(SmtpSessionConfig config)
Connects to a remote server.
|
SmtpSessionConfig.Builder |
SmtpSessionConfig.Builder.from(SmtpSessionConfig instance)
Fill a builder with attribute values from the provided
SmtpSessionConfig instance. |
Copyright © 2018. All rights reserved.