@Override
    protected HttpResponse handlePUT(HttpRequest request) {
        TenantName tenantName = validateTenant(request);
        long sessionId = getSessionIdFromRequest(request);
        ApplicationId app = applicationRepository.activate(tenantRepository.getTenant(tenantName),
                sessionId,
                getTimeoutBudget(request, Duration.ofMinutes(2)),
                shouldIgnoreSessionStaleFailure(request));
        return new MessageResponse("Session " + sessionId + " for " + app.toFullString() + " activated");
    }
* The implementation of the /application/v2 API.


@author hmusum
configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/ApplicationApiHandler.java