Examples of rel()


Examples of org.springframework.data.rest.core.annotation.RestResource.rel()

  public static String findRel(Class<?> type) {

    RestResource anno = findAnnotation(type, RestResource.class);
    if (anno != null) {
      if (hasText(anno.rel())) {
        return anno.rel();
      }
    }

    return uncapitalize(type.getSimpleName().replaceAll("Repository", ""));
  }
View Full Code Here

Examples of org.springframework.data.rest.core.annotation.RestResource.rel()

  public static String findRel(Method method) {

    RestResource anno = findAnnotation(method, RestResource.class);

    if (anno != null) {
      if (hasText(anno.rel())) {
        return anno.rel();
      }
    }

    return method.getName();
View Full Code Here

Examples of org.springframework.data.rest.core.annotation.RestResource.rel()

    RestResource anno = findAnnotation(method, RestResource.class);

    if (anno != null) {
      if (hasText(anno.rel())) {
        return anno.rel();
      }
    }

    return method.getName();
  }
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.