Пример #1
0
 @Override
 public final LinkBuilder memberBuilder(
     final Rel rel,
     final MemberType memberType,
     final ObjectMember objectMember,
     final RepresentationType representationType,
     final String... parts) {
   final StringBuilder buf = linkRef(new StringBuilder());
   buf.append("/").append(memberType.getUrlPart()).append(objectMember.getId());
   for (final String part : parts) {
     if (part == null) {
       continue;
     }
     buf.append("/").append(part);
   }
   final String url = buf.toString();
   return LinkBuilder.newBuilder(rendererContext, rel.getName(), representationType, url);
 }
Пример #2
0
 public String getMemberName() {
   return member.getId();
 }