Package ai.vespa.hosted.cd
Interface Endpoint
-
public interface Endpoint
An endpoint in a Vespa applicationDeployment
, which allows document retrieval.- Author:
- jonmv
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default HttpRequest.Builder
request(String path)
Creates a request against the endpoint, with the given path.HttpRequest.Builder
request(String path, Map<String,String> properties)
Creates a request against the endpoint, with the given path and properties.default HttpResponse<String>
send(HttpRequest.Builder request)
Sends the given request with required authentication.<T> HttpResponse<T>
send(HttpRequest.Builder request, HttpResponse.BodyHandler<T> handler)
Sends the given request with required authentication.URI
uri()
Returns the URI of the endpoint, with scheme, host and port.
-
-
-
Method Detail
-
uri
URI uri()
Returns the URI of the endpoint, with scheme, host and port.
-
send
<T> HttpResponse<T> send(HttpRequest.Builder request, HttpResponse.BodyHandler<T> handler)
Sends the given request with required authentication.
-
send
default HttpResponse<String> send(HttpRequest.Builder request)
Sends the given request with required authentication.
-
request
HttpRequest.Builder request(String path, Map<String,String> properties)
Creates a request against the endpoint, with the given path and properties.
-
request
default HttpRequest.Builder request(String path)
Creates a request against the endpoint, with the given path.
-
-