Package com.mangofactory.swagger.scanners

Examples of com.mangofactory.swagger.scanners.ResourceGroup


  @Override
  public Set<ResourceGroup> getResourceGroups(RequestMappingInfo requestMappingInfo, HandlerMethod handlerMethod) {
    String group = getClassOrApiAnnotationValue(handlerMethod).toLowerCase().replaceAll(" ", "-");
    Integer position = getResourcePosition(requestMappingInfo, handlerMethod);
    return newHashSet(new ResourceGroup(group.toLowerCase(), position));
  }
View Full Code Here


      Set<ResourceGroup> groups = newHashSet();
      //noinspection ConstantConditions
      for (String groupFromReqMapping : asList(requestMapping.get().value())) {
        if (!isNullOrEmpty(groupFromReqMapping)) {
          String groupName = maybeChompLeadingSlash(firstPathSegment(groupFromReqMapping));
          groups.add(new ResourceGroup(groupName));
        }
      }
      if (groups.size() > 0) {
        return groups;
      }
    }
    return newHashSet(new ResourceGroup(maybeChompLeadingSlash(defaultGroup.toLowerCase())));
  }
View Full Code Here

TOP

Related Classes of com.mangofactory.swagger.scanners.ResourceGroup

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.