Package com.khs.sherpa.annotation

Examples of com.khs.sherpa.annotation.Action.contentType()


    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
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.