- get8bitCharacterProportion() - Method in class com.hubspot.smtp.messages.ByteBufMessageContent
-
- get8bitCharacterProportion() - Method in class com.hubspot.smtp.messages.InputStreamMessageContent
-
- get8bitCharacterProportion() - Method in class com.hubspot.smtp.messages.MessageContent
-
Estimates the proportion of characters in this MessageContent
that are eight-bit.
- getAllocator() - Method in class com.hubspot.smtp.client.SmtpSessionFactoryConfig
-
A Netty ByteBufAllocator
that will be used for all connections.
- getChannelClass() - Method in class com.hubspot.smtp.client.SmtpSessionFactoryConfig
-
A Netty Channel
implementation that will be used for all connections.
- getCloseFuture() - Method in class com.hubspot.smtp.client.SmtpSession
-
Returns a CompletableFuture
that will be completed when this session is closed.
- getConnectionId() - Method in class com.hubspot.smtp.client.SmtpSession
-
Returns the
connectionId
defined by the
SmtpSessionConfig
used when connecting to this server.
- getConnectionId() - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
An opaque string that will be logged with any errors on this connection.
- getConnectionTimeout() - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
The time to wait while connecting to a remote server.
- getContent() - Method in class com.hubspot.smtp.messages.ByteBufMessageContent
-
- getContent() - Method in class com.hubspot.smtp.messages.InputStreamMessageContent
-
- getContent() - Method in class com.hubspot.smtp.messages.MessageContent
-
Gets the raw message content in a form that can be written to a Netty channel.
- getContentAsString() - Method in class com.hubspot.smtp.messages.ByteBufMessageContent
-
- getContentAsString() - Method in class com.hubspot.smtp.messages.InputStreamMessageContent
-
- getContentAsString() - Method in class com.hubspot.smtp.messages.MessageContent
-
Gets the content interpreted as a UTF-8 string.
- getContentChunkIterator(ByteBufAllocator) - Method in class com.hubspot.smtp.messages.ByteBufMessageContent
-
Returns a singleton iterator that just contains the wrapped ByteBuf
.
- getContentChunkIterator(ByteBufAllocator) - Method in class com.hubspot.smtp.messages.InputStreamMessageContent
-
Returns an iterator that lazily reads chunks of content from the wrapped stream,
ensuring the last is terminated with CRLF.
- getContentChunkIterator(ByteBufAllocator) - Method in class com.hubspot.smtp.messages.MessageContent
-
Gets an iterator for chunks of content, suitable for use with the chunking SMTP extension.
- getDisabledExtensions() - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Extensions which should not be used when communicating with the remote server.
- getDotStuffedContent() - Method in class com.hubspot.smtp.messages.ByteBufMessageContent
-
- getDotStuffedContent() - Method in class com.hubspot.smtp.messages.InputStreamMessageContent
-
- getDotStuffedContent() - Method in class com.hubspot.smtp.messages.MessageContent
-
Gets the message content with dot-stuffing applied in a form that can be written to a Netty channel.
- getEhloDomain() - Method in class com.hubspot.smtp.client.EhloResponse
-
Gets the domain provided with the EHLO command (e.g.
- getEhloResponse() - Method in class com.hubspot.smtp.client.SmtpSession
-
Returns an
EhloResponse
representing the capabilities of the connection server.
- getEncoding() - Method in class com.hubspot.smtp.messages.ByteBufMessageContent
-
- getEncoding() - Method in class com.hubspot.smtp.messages.InputStreamMessageContent
-
- getEncoding() - Method in class com.hubspot.smtp.messages.MessageContent
-
- getEventLoopGroup() - Method in class com.hubspot.smtp.client.SmtpSessionFactoryConfig
-
A Netty EventLoopGroup
that will be used for all connections.
- getExceptionHandler() - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
A handler for exceptions that happen outside sending individual messages.
- getExecutor() - Method in class com.hubspot.smtp.client.SmtpSessionFactoryConfig
-
An Executor
that will be used to call CompletableFuture
callbacks.
- getInitialResponseReadTimeout() - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
The time to wait for the initial response from the server.
- getKeepAliveTimeout() - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
The time to wait before sending a NOOP command to keep an
otherwise idle connection alive.
- getLines(SmtpResponse) - Static method in class com.hubspot.smtp.utils.SmtpResponses
-
- getLocalAddress() - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
The local address and port to use when connecting to the remote server.
- getLowerCaseName() - Method in enum com.hubspot.smtp.client.Extension
-
- getMaxMessageSize() - Method in class com.hubspot.smtp.client.EhloResponse
-
Gets the maximum message size if specified by the server.
- getReadTimeout() - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
The time to wait for a response from the server.
- getRemoteAddress() - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
The host and port of the remote server.
- getResponses() - Method in class com.hubspot.smtp.client.SmtpClientResponse
-
Gets the SmtpResponse
s.
- getSendInterceptor() - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
A
SendInterceptor
that can intercept commands and data before
they are sent to the server.
- getSendInterceptors() - Method in class com.hubspot.smtp.client.CompositeSendInterceptor
-
- getSession() - Method in class com.hubspot.smtp.client.SmtpClientResponse
-
- getSslEngineSupplier() - Method in class com.hubspot.smtp.client.SmtpSessionFactoryConfig
-
Creates an SSLEngine
for use with STARTTLS connections.
- getSSLSession() - Method in class com.hubspot.smtp.client.SmtpSession
-
- getSupportedExtensions() - Method in class com.hubspot.smtp.client.EhloResponse
-
Gets the raw extensions returned by the server.
- send(String, String, MessageContent) - Method in class com.hubspot.smtp.client.SmtpSession
-
Sends an email as efficiently as possible, using the extended SMTP features supported by the remote server.
- send(String, String, MessageContent, SendInterceptor) - Method in class com.hubspot.smtp.client.SmtpSession
-
Sends an email as efficiently as possible, using the extended SMTP features supported by the remote server.
- send(String, Collection<String>, MessageContent) - Method in class com.hubspot.smtp.client.SmtpSession
-
Sends an email as efficiently as possible, using the extended SMTP features supported by the remote server.
- send(String, Collection<String>, MessageContent, SendInterceptor) - Method in class com.hubspot.smtp.client.SmtpSession
-
Sends an email as efficiently as possible, using the extended SMTP features supported by the remote server.
- send(SmtpRequest) - Method in class com.hubspot.smtp.client.SmtpSession
-
Sends a command to the remote server and waits for a response.
- send(MessageContent) - Method in class com.hubspot.smtp.client.SmtpSession
-
Sends message content to the remote server and waits for a response.
- sendChunk(ByteBuf, boolean) - Method in class com.hubspot.smtp.client.SmtpSession
-
Sends binary message content to the remote server and waits for a response.
- SendInterceptor - Interface in com.hubspot.smtp.client
-
An extension point that supports intercepting commands and data before they are sent.
- sendInterceptor(SendInterceptor) - Method in class com.hubspot.smtp.client.SmtpSessionConfig.Builder
-
Initializes the optional value sendInterceptor
to sendInterceptor.
- sendInterceptor(Optional<SendInterceptor>) - Method in class com.hubspot.smtp.client.SmtpSessionConfig.Builder
-
Initializes the optional value sendInterceptor
to sendInterceptor.
- sendPipelined(SmtpRequest...) - Method in class com.hubspot.smtp.client.SmtpSession
-
Sends a series of commands to the server without waiting for a response.
- sendPipelined(MessageContent, SmtpRequest...) - Method in class com.hubspot.smtp.client.SmtpSession
-
Sends a series of commands to the server without waiting for a response.
- size() - Method in class com.hubspot.smtp.messages.ByteBufMessageContent
-
- size() - Method in class com.hubspot.smtp.messages.InputStreamMessageContent
-
- size() - Method in class com.hubspot.smtp.messages.MessageContent
-
The size of the content, used to reject messages for servers that support the SIZE SMTP extension.
- SmtpClientResponse - Class in com.hubspot.smtp.client
-
Wraps the session and the responses to one or more SMTP commands.
- SmtpClientResponse(SmtpSession, SmtpResponse) - Constructor for class com.hubspot.smtp.client.SmtpClientResponse
-
- SmtpClientResponse(SmtpSession, Iterable<SmtpResponse>) - Constructor for class com.hubspot.smtp.client.SmtpClientResponse
-
- SmtpClientResponse(SmtpSession, List<SmtpResponse>) - Constructor for class com.hubspot.smtp.client.SmtpClientResponse
-
- SmtpException - Exception in com.hubspot.smtp.client
-
A base exception that incorporates a connection ID into the exception message.
- SmtpException(String, String) - Constructor for exception com.hubspot.smtp.client.SmtpException
-
- SmtpResponses - Class in com.hubspot.smtp.utils
-
Helps identify and print SmtpResponse
instances.
- SmtpSession - Class in com.hubspot.smtp.client
-
An open connection to an SMTP server which can be used to send messages and other commands.
- SmtpSessionConfig - Class in com.hubspot.smtp.client
-
Immutable implementation of AbstractSmtpSessionConfig
.
- SmtpSessionConfig.Builder - Class in com.hubspot.smtp.client
-
- SmtpSessionFactory - Class in com.hubspot.smtp.client
-
Creates
SmtpSession
instances by connecting to remote servers.
- SmtpSessionFactory(SmtpSessionFactoryConfig) - Constructor for class com.hubspot.smtp.client.SmtpSessionFactory
-
Creates a new factory with the provided configuration.
- SmtpSessionFactoryConfig - Class in com.hubspot.smtp.client
-
Immutable implementation of AbstractSmtpSessionFactoryConfig
.
- SmtpSessionFactoryConfig.Builder - Class in com.hubspot.smtp.client
-
- sslEngineSupplier(Supplier<SSLEngine>) - Method in class com.hubspot.smtp.client.SmtpSessionFactoryConfig.Builder
-
Initializes the value for the sslEngineSupplier
attribute.
- startTls() - Method in class com.hubspot.smtp.client.SmtpSession
-
Sends the STARTTLS command and tries to use TLS for this session.
- withAllocator(ByteBufAllocator) - Method in class com.hubspot.smtp.client.SmtpSessionFactoryConfig
-
Copy the current immutable object by setting a value for the allocator
attribute.
- withChannelClass(Class<? extends Channel>) - Method in class com.hubspot.smtp.client.SmtpSessionFactoryConfig
-
Copy the current immutable object by setting a value for the channelClass
attribute.
- withConnectionId(String) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting a value for the connectionId
attribute.
- withConnectionTimeout(Duration) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting a value for the connectionTimeout
attribute.
- withDisabledExtensions(EnumSet<Extension>) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting a value for the disabledExtensions
attribute.
- withEventLoopGroup(EventLoopGroup) - Method in class com.hubspot.smtp.client.SmtpSessionFactoryConfig
-
Copy the current immutable object by setting a value for the eventLoopGroup
attribute.
- withExceptionHandler(Consumer<Throwable>) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting a present value for the optional exceptionHandler
attribute.
- withExceptionHandler(Optional<Consumer<Throwable>>) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting an optional value for the exceptionHandler
attribute.
- withExecutor(Executor) - Method in class com.hubspot.smtp.client.SmtpSessionFactoryConfig
-
Copy the current immutable object by setting a value for the executor
attribute.
- withInitialResponseReadTimeout(Duration) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting a present value for the optional initialResponseReadTimeout
attribute.
- withInitialResponseReadTimeout(Optional<Duration>) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting an optional value for the initialResponseReadTimeout
attribute.
- withKeepAliveTimeout(Duration) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting a present value for the optional keepAliveTimeout
attribute.
- withKeepAliveTimeout(Optional<Duration>) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting an optional value for the keepAliveTimeout
attribute.
- withLocalAddress(InetSocketAddress) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting a present value for the optional localAddress
attribute.
- withLocalAddress(Optional<InetSocketAddress>) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting an optional value for the localAddress
attribute.
- withReadTimeout(Duration) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting a present value for the optional readTimeout
attribute.
- withReadTimeout(Optional<Duration>) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting an optional value for the readTimeout
attribute.
- withRemoteAddress(InetSocketAddress) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting a value for the remoteAddress
attribute.
- withSendInterceptor(SendInterceptor) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting a present value for the optional sendInterceptor
attribute.
- withSendInterceptor(Optional<SendInterceptor>) - Method in class com.hubspot.smtp.client.SmtpSessionConfig
-
Copy the current immutable object by setting an optional value for the sendInterceptor
attribute.
- withSslEngineSupplier(Supplier<SSLEngine>) - Method in class com.hubspot.smtp.client.SmtpSessionFactoryConfig
-
Copy the current immutable object by setting a value for the sslEngineSupplier
attribute.