Examples of slash()


Examples of org.springframework.hateoas.LinkBuilder.slash()

      for (ParameterMetadata metadata : mapping.getParametersMetadata()) {
        variables = variables.concat(new TemplateVariable(metadata.getName(), VariableType.REQUEST_PARAM));
      }

      String href = builder.slash(mapping.getPath()).toString().concat(variables.toString());

      Link link = new Link(href, mapping.getRel());

      if (mapping.isPagingResource()) {
        link = assembler.appendPaginationParameterTemplates(link);
View Full Code Here

Examples of org.springframework.hateoas.LinkBuilder.slash()

    List<PersonResource> result = assembler.toResources(Arrays.asList(first, second));

    LinkBuilder builder = linkTo(PersonController.class);

    PersonResource firstResource = new PersonResource();
    firstResource.add(builder.slash(1L).withSelfRel());

    PersonResource secondResource = new PersonResource();
    secondResource.add(builder.slash(1L).withSelfRel());

    assertThat(result.size(), is(2));
View Full Code Here

Examples of org.springframework.hateoas.LinkBuilder.slash()

    PersonResource firstResource = new PersonResource();
    firstResource.add(builder.slash(1L).withSelfRel());

    PersonResource secondResource = new PersonResource();
    secondResource.add(builder.slash(1L).withSelfRel());

    assertThat(result.size(), is(2));
    assertThat(result, hasItems(firstResource, secondResource));
  }
View Full Code Here

Examples of st.gravel.support.compiler.ast.AbsoluteReference.$slash$()

            }
            _superclassReference = ((AbsoluteReference) _cm.superclassReference());
            if (_superclassReference == null) {
              throw new NonLocalReturn(_aBlock.value(), _temp2);
            }
            return (st.gravel.support.jvm.runtime.AlmostFinalValue) SystemMapping.this.classSharedSingletonHolderAtReference_ifAbsent_(_superclassReference.$slash$(_reference.name()), _aBlock);
          }
        }))));
      }
      return ((st.gravel.support.jvm.runtime.AlmostFinalValue) _temp1);
    } catch (NonLocalReturn nlr) {
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.