Package com.linkedin.restli.common

Examples of com.linkedin.restli.common.CollectionMetadata


  private void buildCollectionResponseWithPagingAndCustomMetadata(List<List<? extends Object>> ret)
  {
    List<ResourceMethod> validTypes = Arrays.asList(FINDER, GET_ALL);
    for (ResourceMethod type : ResourceMethod.values())
    {
      ret.add(Arrays.asList(type, null, null, Arrays.asList(Foo.createFoo("foo", "bar")), new CollectionMetadata(),
                            Foo.createFoo("md", "val"), null, ImmutableMap.of("key", "value"),
                            HttpStatus.S_202_ACCEPTED, !validTypes.contains(type)));
    }
  }
View Full Code Here

TOP

Related Classes of com.linkedin.restli.common.CollectionMetadata

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.