summaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2018-01-16 21:55:09 +0100
committerJon Bratseth <bratseth@yahoo-inc.com>2018-01-16 21:55:09 +0100
commitff593a0ce8745cbccf86eb538e705a63b94b55e1 (patch)
tree8582941ee9f19aee612094f235007d6ab447dc62 /configserver
parentd9e17187fe49f662520d282c38e5cf779cbb8195 (diff)
Access files through application package
Diffstat (limited to 'configserver')
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/http/HttpGetConfigHandler.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/http/HttpGetConfigHandler.java b/configserver/src/main/java/com/yahoo/vespa/config/server/http/HttpGetConfigHandler.java
index 94707635950..8ac992821fd 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/http/HttpGetConfigHandler.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/http/HttpGetConfigHandler.java
@@ -2,25 +2,24 @@
package com.yahoo.vespa.config.server.http;
import com.google.inject.Inject;
+import com.yahoo.config.provision.ApplicationId;
import com.yahoo.container.jdisc.HttpRequest;
import com.yahoo.container.jdisc.HttpResponse;
-import com.yahoo.container.logging.AccessLog;
import com.yahoo.log.LogLevel;
import com.yahoo.vespa.config.protocol.ConfigResponse;
import com.yahoo.vespa.config.server.RequestHandler;
import com.yahoo.vespa.config.server.tenant.Tenants;
-import com.yahoo.config.provision.ApplicationId;
import java.util.Optional;
-import java.util.concurrent.Executor;
/**
* HTTP handler for a v2 getConfig operation
*
- * @author lulf
- * @since 5.1
+ * @author Ulf Lilleengen
*/
+// TODO: Make this API discoverable
public class HttpGetConfigHandler extends HttpHandler {
+
private final RequestHandler requestHandler;
public HttpGetConfigHandler(HttpHandler.Context ctx, RequestHandler requestHandler) {
@@ -28,11 +27,12 @@ public class HttpGetConfigHandler extends HttpHandler {
this.requestHandler = requestHandler;
}
+ @SuppressWarnings("unused") // injected
@Inject
public HttpGetConfigHandler(HttpHandler.Context ctx, Tenants tenants) {
this(ctx, tenants.defaultTenant().getRequestHandler());
}
-
+
@Override
public HttpResponse handleGET(HttpRequest req) {
HttpConfigRequest request = HttpConfigRequest.createFromRequestV1(req);