Example #1
0
 public void configure() throws ConfigurationException {
   super.configure();
   if (StringUtils.isEmpty(getFunctionName())) {
     if (StringUtils.isEmpty(getFunctionNameParam())) {
       throw new ConfigurationException(
           getLogPrefix()
               + "if attribute functionName is not specified, value of attribute functionNameParam must indicate parameter to obtain functionName from");
     }
     if (paramList == null || paramList.findParameter(getFunctionNameParam()) == null) {
       throw new ConfigurationException(
           getLogPrefix()
               + "functionName must be specified, either in attribute functionName, or via parameter ["
               + getFunctionNameParam()
               + "]");
     }
   } else {
     if (StringUtils.isNotEmpty(getFunctionNameParam())
         && paramList != null
         && paramList.findParameter(getFunctionNameParam()) != null) {
       throw new ConfigurationException(
           getLogPrefix()
               + "functionName cannot be specified both in attribute functionName ["
               + getFunctionName()
               + "] and via parameter ["
               + getFunctionNameParam()
               + "]");
     }
   }
 }
Example #2
0
 public void close() {
   super.close();
 }
Example #3
0
 public void setSynchronous(boolean b) {
   super.setSynchronous(b);
 }
Example #4
0
 public void open() throws SenderException {
   super.open();
 }