blob: 9a4d3b1949bf3d1b629f29eeb3929cad460ecf64 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.document.restapi.resource;
import com.yahoo.component.annotation.Inject;
import com.yahoo.container.jdisc.HttpRequest;
import com.yahoo.container.jdisc.HttpResponse;
import com.yahoo.container.jdisc.ThreadedHttpRequestHandler;
import com.yahoo.jdisc.Metric;
/**
* Dummy for internal use.
*
* @author jonmv
*/
public class RestApi extends ThreadedHttpRequestHandler {
@Inject
public RestApi() {
super(ignored -> { throw new IllegalStateException("Not supposed to handle anything"); }, (Metric)null);
}
@Override
public HttpResponse handle(HttpRequest request) {
throw new IllegalStateException("Not supposed to handle anything");
}
}
|