Package org.springframework.hateoas.client

Examples of org.springframework.hateoas.client.FollowRelAction


  private static void getProductsOfPerson(Browser browser, int personId) throws GoalNotFoundException {

    Agent agent = new Agent(browser);

    // order of follow rel actions is significant
    agent.addFollowRelAction(new FollowRelAction("search"));
    agent.addFollowRelAction(new FollowRelAction("products"));

    // enable client to submit form when encountered
    agent.addSubmitFormAction(new SubmitFormAction("searchPerson", Args.of("personId", personId)));

    agent.setGoal(describedBy("http://example.com/doc#product").within(describedBy("http://example.com/doc#customer")));
View Full Code Here

TOP

Related Classes of org.springframework.hateoas.client.FollowRelAction

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.