@Override
    public HttpResponse handleGET(HttpRequest request) {
        TenantName tenantName = Utils.getTenantNameFromApplicationsRequest(request);
        String urlBase = Utils.getUrlBase(request, "/application/v2/tenant/" + tenantName + "/application/");

        List<ApplicationId> applicationIds = listApplicationIds(tenantName);
        Collection<String> applicationUrls = Collections2.transform(applicationIds, new Function<>() {
            @Override
            public String apply(ApplicationId id) {
                return createUrlStringFromId(urlBase, id, zone);
            }
        });
        return new ListApplicationsResponse(Response.Status.OK, applicationUrls);
    }
Handler for listing currently active applications for a tenant.

@author Ulf Lilleengen
configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandler.java