Package org.ejbca.core.model.services

Examples of org.ejbca.core.model.services.ActionException


      reciverAddress = properties.getProperty(PROP_RECIEVERADDRESS);
    }
       
    if(reciverAddress == null || reciverAddress.trim().equals("")){
      String msg = intres.getLocalizedMessage("services.mailaction.errorreceiveraddress");
      throw new ActionException(msg);
    }
           
        try {
          MailSender.sendMailOrThrow(senderAddress, Arrays.asList(reciverAddress), MailSender.NO_CC, mailActionInfo.getSubject(), mailActionInfo.getMessage(), MailSender.NO_ATTACHMENTS);
          if (mailActionInfo.isLoggingEnabled()) {
View Full Code Here


   * @throws ActionException
   */
  private void checkConfig(ActionInfo actionInfo) throws ActionException {
    if(!(actionInfo instanceof MailActionInfo)){
      String msg = intres.getLocalizedMessage("services.mailaction.erroractioninfo");
      throw new ActionException(msg);
    }
    String senderAddress = properties.getProperty(PROP_SENDERADDRESS);
    if(senderAddress == null || senderAddress.trim().equals("")){
      String msg = intres.getLocalizedMessage("services.mailaction.errorsenderaddress");
      throw new ActionException(msg);
    }
  }
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.services.ActionException

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.