Examples of SmtpServerSettings


Examples of com.elastisys.scale.commons.net.smtp.SmtpServerSettings

    if (alertsConfig != null) {
      LOG.debug("configuring SMTP alerter.");
      SendSettings sendSettings = new SendSettings(
          alertsConfig.getRecipients(), alertsConfig.getSender(),
          alertsConfig.getSubject(), alertsConfig.getSeverityFilter());
      SmtpServerSettings mailServerSettings = alertsConfig
          .getMailServer().toSmtpServerSettings();
      this.smtpAlerter.set(new EmailAlerter(mailServerSettings,
          sendSettings, standardAlertTags()));
      this.eventBus.register(this.smtpAlerter.get());
    }
View Full Code Here

Examples of com.elastisys.scale.commons.net.smtp.SmtpServerSettings

     *
     * @throws CloudAdapterException
     */
    public void validate() throws CloudAdapterException {
      try {
        SmtpServerSettings settings = new SmtpServerSettings(
            getSmtpHost(), getSmtpPort(), getAuthentication(),
            isUseSsl());
        settings.validate();
      } catch (Exception e) {
        throw new CloudAdapterException(format(
            "failed to validate mailServerSettings: %s",
            e.getMessage()), e);
      }
View Full Code Here

Examples of com.elastisys.scale.commons.net.smtp.SmtpServerSettings

     * Convert to {@link SmtpServerSettings}.
     *
     * @return
     */
    public SmtpServerSettings toSmtpServerSettings() {
      return new SmtpServerSettings(getSmtpHost(), getSmtpPort(),
          getAuthentication(), isUseSsl());
    }
View Full Code Here

Examples of org.jclouds.vcloud.director.v1_5.domain.network.SmtpServerSettings

      String oldFromEmailAddress = emailSettings.getFromEmailAddress();
      String newFromEmailAddress = "test@test.com";
      String oldDefaultSubjectPrefix = emailSettings.getDefaultSubjectPrefix();
      String newDefaultSubjectPrefix = "new" + oldDefaultSubjectPrefix;
      boolean isAlertEmailToAllAdmins = emailSettings.isAlertEmailToAllAdmins();
      SmtpServerSettings oldSmtpServerSettings = emailSettings.getSmtpServerSettings();
      SmtpServerSettings newSmtpServerSettings = oldSmtpServerSettings.toBuilder()
               .useAuthentication(!oldSmtpServerSettings.useAuthentication())
               .host("new" + oldSmtpServerSettings.getHost()).username("new" + oldSmtpServerSettings.getUsername())
               .password("new" + oldSmtpServerSettings.getPassword()).build();

      try {
View Full Code Here

Examples of org.jclouds.vcloud.director.v1_5.domain.network.SmtpServerSettings

      String oldFromEmailAddress = emailSettings.getFromEmailAddress();
      String newFromEmailAddress = "test@test.com";
      String oldDefaultSubjectPrefix = emailSettings.getDefaultSubjectPrefix();
      String newDefaultSubjectPrefix = "new" + oldDefaultSubjectPrefix;
      boolean isAlertEmailToAllAdmins = emailSettings.isAlertEmailToAllAdmins();
      SmtpServerSettings oldSmtpServerSettings = emailSettings.getSmtpServerSettings();
      SmtpServerSettings newSmtpServerSettings = oldSmtpServerSettings.toBuilder()
               .useAuthentication(!oldSmtpServerSettings.useAuthentication())
               .host("new" + oldSmtpServerSettings.getHost()).username("new" + oldSmtpServerSettings.getUsername())
               .password("new" + oldSmtpServerSettings.getPassword()).build();

      try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.