Class RecipientsBuilder

java.lang.Object
org.simplejavamail.recipient.RecipientsBuilder
All Implemented Interfaces:
org.simplejavamail.api.email.IRecipientsBuilder

public class RecipientsBuilder extends Object implements org.simplejavamail.api.email.IRecipientsBuilder
See Also:
  • IRecipientsBuilder
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Collection<org.simplejavamail.api.email.Recipient>
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
    withDefaultSmimeCertificate(@NotNull X509Certificate smimeCertificate)
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
    withFixedSmimeCertificate(@NotNull X509Certificate smimeCertificate)
     
    org.simplejavamail.api.email.IRecipientsBuilder
    withRecipient(@NotNull String singleAddress, jakarta.mail.Message.RecipientType recipientType)
     
    org.simplejavamail.api.email.IRecipientsBuilder
    withRecipient(@Nullable String name, boolean fixedName, @NotNull String singleAddress, jakarta.mail.Message.RecipientType recipientType)
     
    org.simplejavamail.api.email.IRecipientsBuilder
    withRecipient(@Nullable String name, @NotNull String singleAddress, jakarta.mail.Message.RecipientType recipientType)
     
    org.simplejavamail.api.email.IRecipientsBuilder
    withRecipient(@NotNull org.simplejavamail.api.email.Recipient recipient)
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
    withRecipients(@Nullable String name, boolean fixedName, jakarta.mail.Message.RecipientType recipientType, @NotNull String @NotNull ... oneOrMoreAddressesEach)
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
    withRecipients(@Nullable String name, boolean fixedName, @NotNull Collection<String> oneOrMoreAddressesEach, jakarta.mail.Message.RecipientType recipientType)
     
    org.simplejavamail.api.email.IRecipientsBuilder
    withRecipients(@NotNull Collection<org.simplejavamail.api.email.Recipient> recipients)
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
    withRecipients(@NotNull Collection<org.simplejavamail.api.email.Recipient> recipients, jakarta.mail.Message.RecipientType fixedRecipientType)
     
    org.simplejavamail.api.email.IRecipientsBuilder
    withRecipients(@NotNull org.simplejavamail.api.email.Recipient @NotNull ... recipients)
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
    withRecipientsFromAddresses(@Nullable String name, boolean fixedName, @NotNull Collection<jakarta.mail.internet.InternetAddress> addresses, jakarta.mail.Message.RecipientType recipientType)
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
    withRecipientsFromAddressesWithDefaultName(@Nullable String defaultName, @NotNull Collection<jakarta.mail.internet.InternetAddress> addresses, jakarta.mail.Message.RecipientType recipientType)
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
    withRecipientsFromAddressesWithFixedName(@Nullable String fixedName, @NotNull Collection<jakarta.mail.internet.InternetAddress> addresses, jakarta.mail.Message.RecipientType recipientType)
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
    withRecipientsWithDefaultName(@Nullable String name, jakarta.mail.Message.RecipientType recipientType, @NotNull String @NotNull ... oneOrMoreAddressesEach)
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
    withRecipientsWithDefaultName(@Nullable String defaultName, @NotNull Collection<String> oneOrMoreAddressesEach, jakarta.mail.Message.RecipientType recipientType)
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
    withRecipientsWithFixedName(@Nullable String name, jakarta.mail.Message.RecipientType recipientType, @NotNull String @NotNull ... oneOrMoreAddressesEach)
     
    @NotNull org.simplejavamail.api.email.IRecipientsBuilder
    withRecipientsWithFixedName(@Nullable String fixedName, @NotNull Collection<String> oneOrMoreAddressesEach, jakarta.mail.Message.RecipientType recipientType)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RecipientsBuilder

      public RecipientsBuilder()
  • Method Details

    • buildRecipients

      @NotNull public @NotNull Collection<org.simplejavamail.api.email.Recipient> buildRecipients()
      Specified by:
      buildRecipients in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.buildRecipients()
    • withDefaultSmimeCertificate

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder withDefaultSmimeCertificate(@NotNull @NotNull X509Certificate smimeCertificate)
      Specified by:
      withDefaultSmimeCertificate in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withDefaultSmimeCertificate(java.security.cert.X509Certificate)
    • withFixedSmimeCertificate

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder withFixedSmimeCertificate(@NotNull @NotNull X509Certificate smimeCertificate)
      Specified by:
      withFixedSmimeCertificate in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withFixedSmimeCertificate(java.security.cert.X509Certificate)
    • clearingSmimeCertificates

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder clearingSmimeCertificates()
      Specified by:
      clearingSmimeCertificates in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.clearingSmimeCertificates()
    • withRecipientsWithDefaultName

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder withRecipientsWithDefaultName(@Nullable @Nullable String defaultName, @NotNull @NotNull Collection<String> oneOrMoreAddressesEach, @Nullable jakarta.mail.Message.RecipientType recipientType)
      Specified by:
      withRecipientsWithDefaultName in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
    • withRecipientsWithFixedName

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder withRecipientsWithFixedName(@Nullable @Nullable String fixedName, @NotNull @NotNull Collection<String> oneOrMoreAddressesEach, @Nullable jakarta.mail.Message.RecipientType recipientType)
      Specified by:
      withRecipientsWithFixedName in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipientsWithFixedName(String, Collection, Message.RecipientType)
    • withRecipientsWithDefaultName

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder withRecipientsWithDefaultName(@Nullable @Nullable String name, @Nullable jakarta.mail.Message.RecipientType recipientType, @NotNull @NotNull String @NotNull ... oneOrMoreAddressesEach)
      Specified by:
      withRecipientsWithDefaultName in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipientsWithDefaultName(String, Message.RecipientType, String...)
    • withRecipientsWithFixedName

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder withRecipientsWithFixedName(@Nullable @Nullable String name, @Nullable jakarta.mail.Message.RecipientType recipientType, @NotNull @NotNull String @NotNull ... oneOrMoreAddressesEach)
      Specified by:
      withRecipientsWithFixedName in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipientsWithFixedName(String, Message.RecipientType, String...)
    • withRecipients

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder withRecipients(@Nullable @Nullable String name, boolean fixedName, @Nullable jakarta.mail.Message.RecipientType recipientType, @NotNull @NotNull String @NotNull ... oneOrMoreAddressesEach)
      Specified by:
      withRecipients in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipients(String, boolean, Message.RecipientType, String...)
    • withRecipients

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder withRecipients(@Nullable @Nullable String name, boolean fixedName, @NotNull @NotNull Collection<String> oneOrMoreAddressesEach, @Nullable jakarta.mail.Message.RecipientType recipientType)
      Specified by:
      withRecipients in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipients(String, boolean, Collection, Message.RecipientType)
    • withRecipientsFromAddressesWithDefaultName

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder withRecipientsFromAddressesWithDefaultName(@Nullable @Nullable String defaultName, @NotNull @NotNull Collection<jakarta.mail.internet.InternetAddress> addresses, @Nullable jakarta.mail.Message.RecipientType recipientType)
      Specified by:
      withRecipientsFromAddressesWithDefaultName in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipientsFromAddressesWithDefaultName(String, Collection, Message.RecipientType)
    • withRecipientsFromAddressesWithFixedName

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder withRecipientsFromAddressesWithFixedName(@Nullable @Nullable String fixedName, @NotNull @NotNull Collection<jakarta.mail.internet.InternetAddress> addresses, @Nullable jakarta.mail.Message.RecipientType recipientType)
      Specified by:
      withRecipientsFromAddressesWithFixedName in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipientsFromAddressesWithFixedName(String, Collection, Message.RecipientType)
    • withRecipientsFromAddresses

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder withRecipientsFromAddresses(@Nullable @Nullable String name, boolean fixedName, @NotNull @NotNull Collection<jakarta.mail.internet.InternetAddress> addresses, @Nullable jakarta.mail.Message.RecipientType recipientType)
      Specified by:
      withRecipientsFromAddresses in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipientsFromAddresses(String, boolean, Collection, Message.RecipientType)
    • withRecipients

      public org.simplejavamail.api.email.IRecipientsBuilder withRecipients(@NotNull @NotNull Collection<org.simplejavamail.api.email.Recipient> recipients)
      Specified by:
      withRecipients in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipients(Collection)
    • withRecipients

      public org.simplejavamail.api.email.IRecipientsBuilder withRecipients(@NotNull @NotNull org.simplejavamail.api.email.Recipient @NotNull ... recipients)
      Specified by:
      withRecipients in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipients(Recipient...)
    • withRecipients

      @NotNull public @NotNull org.simplejavamail.api.email.IRecipientsBuilder withRecipients(@NotNull @NotNull Collection<org.simplejavamail.api.email.Recipient> recipients, @Nullable jakarta.mail.Message.RecipientType fixedRecipientType)
      Specified by:
      withRecipients in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipients(Collection, Message.RecipientType)
    • withRecipient

      public org.simplejavamail.api.email.IRecipientsBuilder withRecipient(@NotNull @NotNull String singleAddress, @Nullable jakarta.mail.Message.RecipientType recipientType)
      Specified by:
      withRecipient in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipient(String, Message.RecipientType)
    • withRecipient

      public org.simplejavamail.api.email.IRecipientsBuilder withRecipient(@Nullable @Nullable String name, @NotNull @NotNull String singleAddress, @Nullable jakarta.mail.Message.RecipientType recipientType)
      Specified by:
      withRecipient in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipient(String, String, Message.RecipientType)
    • withRecipient

      public org.simplejavamail.api.email.IRecipientsBuilder withRecipient(@Nullable @Nullable String name, boolean fixedName, @NotNull @NotNull String singleAddress, @Nullable jakarta.mail.Message.RecipientType recipientType)
      Specified by:
      withRecipient in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipient(String, boolean, String, Message.RecipientType)
    • withRecipient

      public org.simplejavamail.api.email.IRecipientsBuilder withRecipient(@NotNull @NotNull org.simplejavamail.api.email.Recipient recipient)
      Specified by:
      withRecipient in interface org.simplejavamail.api.email.IRecipientsBuilder
      See Also:
      • IRecipientsBuilder.withRecipient(Recipient)