Package com.threepillar.labs.meeting.exception

Examples of com.threepillar.labs.meeting.exception.ConfigurationException


  @Override
  public void validate() throws ConfigurationException {
    LOG.info("Validating configuration properties for email");
    if (properties == null) {
      throw new ConfigurationException("Properties can not be null");
    }
    if (properties.get(CLIENT_ID) == null) {
      throw new ConfigurationException(CLIENT_ID + "can not be null");
    }
    if (properties.get(CLIENT_SECRET) == null) {
      throw new ConfigurationException(CLIENT_SECRET + "can not be null");
    }
    if (properties.get(ACCESS_TOKEN) == null) {
      throw new ConfigurationException(ACCESS_TOKEN + "can not be null");
    }
    if (properties.get(REFRESH_TOKEN) == null) {
      throw new ConfigurationException(REFRESH_TOKEN + "can not be null");
    }
    if (properties.get(EXPIRY_TIME_IN_MILLIS) == null) {
      throw new ConfigurationException(EXPIRY_TIME_IN_MILLIS
          + "can not be null");
    }

  }
View Full Code Here


  @Override
  public void validate() throws ConfigurationException {
    LOG.info("Validating configuration properties for email");
    if (properties == null) {
      throw new ConfigurationException("Properties can not be null");
    }
    if (properties.get("mail.smtp.host") == null) {
      throw new ConfigurationException(
          "Property mail.smtp.host is not given");
    }
    if (properties.get("mail.smtp.port") == null) {
      throw new ConfigurationException(
          "Property mail.smtp.port is not given");
    }
    if ("true".equals(properties.get("mail.smtp.auth"))) {
      if (properties.get("username") == null) {
        throw new ConfigurationException("Username is not given");
      }
      if (properties.get("password") == null) {
        throw new ConfigurationException("Password is not given");
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.threepillar.labs.meeting.exception.ConfigurationException

Copyright © 2018 www.massapicom. 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.