Package org.eweb4j.mvc.interceptor

Examples of org.eweb4j.mvc.interceptor.InterExecution


      parseBaseUrl(context);

      String reqMethod = this.parseMethod(request);// HTTP Method 解析
      context.setHttpMethod(reqMethod);

      InterExecution before_interExe = new InterExecution("before",
          context);// 4.前置拦截器
      if (before_interExe.findAndExecuteInter()) {
        before_interExe.showErr();
        return;
      }

      // method + uri,用来判断是否有Action与之绑定
      ActionExecution actionExe = new ActionExecution(uri, reqMethod,
View Full Code Here


      parseBaseUrl(context);

      String reqMethod = this.parseMethod(request);// HTTP Method 解析
      context.setHttpMethod(reqMethod);

      InterExecution before_interExe = new InterExecution("before",
          context);// 4.前置拦截器
      if (before_interExe.findAndExecuteInter()) {
        before_interExe.showErr();
        return;
      }

      // method + uri,用来判断是否有Action与之绑定
      ActionExecution actionExe = new ActionExecution(uri, reqMethod,
View Full Code Here

  private void excuteMethod(String methodName) throws Exception{

    /* 对于外部配置的前置拦截器,方法体内的前置拦截器较后执行  */
    Before before = method.getAnnotation(Before.class);
    if (before != null){
      InterExecution before_interExe = new InterExecution("before", context);
      before_interExe.execute(before.value());
      if (before_interExe.getError() != null){
        before_interExe.showErr();
        return ;
      }
    }
   
    boolean isTrans = false;
View Full Code Here

     
      /* 方法体内的后置拦截器先执行  */
      After after = method.getAnnotation(After.class);
      if (after != null){
        // 后置拦截器
        InterExecution after_interExe = new InterExecution("after", context);
        after_interExe.execute(after.value());
        if (after_interExe.getError() != null){
          after_interExe.showErr();
          return ;
        }
      }
     
      /* 外部配置的后置拦截器后执行 */
      InterExecution after_interExe = new InterExecution("after", this.context);// 7.后置拦截器
      if (after_interExe.findAndExecuteInter()) {
        after_interExe.showErr();
        return;
      }
     
      // 对Action执行返回结果的处理
      this.handleResult();
View Full Code Here

      IAction action = (IAction) actionObject;
      action.init(this.context);
      retn = action.execute();
    }

    InterExecution after_interExe = new InterExecution("after",
        this.context);// 7.后置拦截器
    if (after_interExe.findAndExecuteInter()) {
      after_interExe.showErr();
      return;
    }

    // 对Action执行返回结果的处理
    this.handleResult();
View Full Code Here

      parseBaseUrl(context);

      String reqMethod = this.parseMethod(request);// HTTP Method 解析
      context.setHttpMethod(reqMethod);

      InterExecution before_interExe = new InterExecution("before", context);// 4.前置拦截器
      if (before_interExe.findAndExecuteInter()) {
        before_interExe.showErr();
        return;
      }

      // method + uri,用来判断是否有Action与之绑定
      ActionExecution actionExe = new ActionExecution(uri, reqMethod, context);
View Full Code Here

      parseBaseUrl(context);

      String reqMethod = this.parseMethod(request);// HTTP Method 解析
      context.setHttpMethod(reqMethod);

      InterExecution before_interExe = new InterExecution("before", context);// 4.前置拦截器
      if (before_interExe.findAndExecuteInter()) {
        before_interExe.showErr();
        return;
      }

      // method + uri,用来判断是否有Action与之绑定
      ActionExecution actionExe = new ActionExecution(uri, reqMethod, context);
View Full Code Here

TOP

Related Classes of org.eweb4j.mvc.interceptor.InterExecution

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.