All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.co.autotrader.traverson.Traverson Maven / Gradle / Ivy

Go to download

The kernel of traverson4j. This provides the main API for a client to traverse a Hypermedia REST service

The newest version!
package uk.co.autotrader.traverson;

import uk.co.autotrader.traverson.http.TraversonClient;

/**
 * Suitable as an Injectable singleton
 */
public class Traverson {
    private TraversonClient traversonClient;

    /**
     * Creates the traverson client
     * @param traversonClient - Traverson client with your custom settings
     */
    public Traverson(TraversonClient traversonClient) {
        this.traversonClient = traversonClient;
    }

    /**
     * Start the navigation here
     * @param startingUrl - Starting Url for the project
     * @return a new stateful TraversonBuilder
     */
    public TraversonBuilder from(String startingUrl) {
        return new TraversonBuilder(traversonClient).from(startingUrl);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy