Package com.khs.sherpa.annotation

Examples of com.khs.sherpa.annotation.Action


    }
    return method;
  }
 
  public static String getMethodName(Method method) {
    Action action = MethodUtil.getActionAnnotation(method);
    if(action != null) {
      if(action.value().trim().length() > 0) {
        return action.value().trim();
      }
    }
   
    return method.getName();
  }
View Full Code Here


    if(token == null) {
      token = request.getParameter("token");
    }
   
    this.hasPermission(method, userid, token);
    Action annotation = method.getAnnotation(Action.class);
    if (annotation == null) {
      throw new SherpaRuntimeException("Error executing"+target+" @Action annotation required for not endpoint methods"  );
    }
    if(annotation.contentType() != null) {
      response.setContentType(method.getAnnotation(Action.class).contentType().type);
    }
    return this.invokeMethod(target, method)
  }
View Full Code Here

TOP

Related Classes of com.khs.sherpa.annotation.Action

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.