Package org.jrest4guice.rest.annotations

Examples of org.jrest4guice.rest.annotations.ProduceMime


    String accept = RequestHelper.getAccepte(this.request);
    String mimeType = RequestHelper.getMimeType(this.request);

    // 获取服务方法上的数据返回类型
    if (method.isAnnotationPresent(ProduceMime.class)) {
      ProduceMime pmAnnotation = method.getAnnotation(ProduceMime.class);
      String[] mimeTypes = pmAnnotation.value();
      for (String mime : mimeTypes) {
        if (accept.indexOf(mime) != -1) {
          mimeType = mime;
          break;
        }
View Full Code Here

TOP

Related Classes of org.jrest4guice.rest.annotations.ProduceMime

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.