Package net.solosky.maplefetion

Examples of net.solosky.maplefetion.NotifyEventListener.fireEvent()


              this.fetionContext.getFetionUser(), this.fetionContext.getLocaleSetting(), alg, type);
         
          NotifyEventListener listener = this.fetionContext.getNotifyEventListener();
         
          if(listener!=null) {
            listener.fireEvent(new ImageVerifyEvent(ImageVerifyEvent.SSI_VERIFY, verifyImage, text, tips));
          }else {
            throw new IllegalArgumentException("SSI need verify, but found no notifyEventListener" +
                " to handle verify action, please set NotifyEventListener first.");
          }
        } catch (ParseException e) {
View Full Code Here


  {
    logger.debug("FireNotifyEvent:"+event);
    NotifyEventListener listener = this.context.getNotifyEventListener();
    if(listener!=null){
      try {
        listener.fireEvent(event);
      } catch (Throwable e) {
        logger.warn("Fire NotifyEvent error.", e);
      }
    }
  }
View Full Code Here

            }
     
            //通知设置的通知监听器处理这个验证码事件,如果没有设置监听器,将抛出异常
      NotifyEventListener listener = this.context.getNotifyEventListener();
      if(listener!=null) {
        listener.fireEvent(new ImageVerifyEvent(ImageVerifyEvent.SIPC_VERIFY,
            verifyImage, text, tips, response.getRequest(),
            this.dialog, this.listener));
      }else{
        throw new IllegalArgumentException("action need verify, but found no NotifyEventListener" +
          " to handle verify action, please set NotifyEventListener first.");
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.