Package name.pehl.karaka.client.rest

Examples of name.pehl.karaka.client.rest.UrlBuilder



    @Override
    protected Resource resourceFor(GetProjectsAction action)
    {
        return new Resource(new UrlBuilder().module("rest").path("projects").toUrl());
    }
View Full Code Here



    @Override
    protected Resource resourceFor(GetRunningActivityAction action)
    {
        return new Resource(new UrlBuilder().module("rest").path("activities", "running").toUrl());
    }
View Full Code Here


    @Override
    protected Resource resourceFor(GetDurationsAction action)
    {
        return new Resource(new UrlBuilder().module("rest").path("activities", "current", "durations").toUrl());
    }
View Full Code Here


    @Override
    protected Resource resourceFor(GetYearsAction action)
    {
        return new Resource(new UrlBuilder().module("rest").path("activities", "years").toUrl());
    }
View Full Code Here


    @Override
    protected Resource resourceFor(GetSettingsAction action)
    {
        return new Resource(new UrlBuilder().module("rest").path("settings").toUrl());
    }
View Full Code Here


    @Override
    protected Resource resourceFor(final GetClientsAction action)
    {
        return new Resource(new UrlBuilder().module("rest").path("clients").toUrl());
    }
View Full Code Here


    @Override
    protected Resource resourceFor(TickActivityAction action)
    {
        UrlBuilder urlBuilder = new UrlBuilder().module("rest").path("activities", action.getActivity().getId(), "tick");
        return new Resource(urlBuilder.toUrl());
    }
View Full Code Here

    }

    @Override
    protected Resource resourceFor(CopyActivityAction action)
    {
        UrlBuilder urlBuilder = new UrlBuilder().module("rest")
                .path("activities", action.getActivity().getId(), "copy", action.getPeriod());
        return new Resource(urlBuilder.toUrl());
    }
View Full Code Here


    @Override
    protected Resource resourceFor(GetLatestActivityAction action)
    {
        return new Resource(new UrlBuilder().module("rest").path("activities", "latest").toUrl());
    }
View Full Code Here

    final String url;


    public ActivitiesRequest(PlaceRequest placeRequest)
    {
        this(placeRequest, new UrlBuilder().module("rest").path("activities"));
    }
View Full Code Here

TOP

Related Classes of name.pehl.karaka.client.rest.UrlBuilder

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.