public class DiscoveryClient extends Object
| Constructor and Description |
|---|
DiscoveryClient(UaStackClient stackClient) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<DiscoveryClient> |
connect() |
CompletableFuture<DiscoveryClient> |
disconnect() |
static CompletableFuture<List<ApplicationDescription>> |
findServers(String endpointUrl)
Query the FindServers service at the
endpointUrl. |
CompletableFuture<FindServersResponse> |
findServers(String endpointUrl,
String[] localeIds,
String[] serverUris)
Query the FindServers service at the
endpointUrl. |
static CompletableFuture<List<EndpointDescription>> |
getEndpoints(String endpointUrl)
Query the GetEndpoints service at
endpointUrl. |
CompletableFuture<GetEndpointsResponse> |
getEndpoints(String endpointUrl,
String[] localeIds,
String[] profileUris)
Query the GetEndpoints service at
endpointUrl. |
public DiscoveryClient(UaStackClient stackClient)
public CompletableFuture<DiscoveryClient> connect()
public CompletableFuture<DiscoveryClient> disconnect()
public CompletableFuture<FindServersResponse> findServers(String endpointUrl, String[] localeIds, String[] serverUris)
endpointUrl.
The endpoint URL(s) for each server ApplicationDescription in the response can then be used in a
getEndpoints(String) call to discover the endpoints for that server.
endpointUrl - the endpoint URL to find servers at.localeIds - list of locales to use. The server should return the applicationName in the
ApplicationDescription using one of locales specified. If the server supports more than one of
the requested locales then the server shall use the locale that appears first in this list. If
the server does not support any of the requested locales it chooses an appropriate default
locale. The server chooses an appropriate default locale if this list is empty.serverUris - list of servers to return. All known servers are returned if the list is empty.FindServersResponses returned by the FindServers service.public CompletableFuture<GetEndpointsResponse> getEndpoints(String endpointUrl, String[] localeIds, String[] profileUris)
endpointUrl.endpointUrl - the endpoint URL to get endpoints from.localeIds - list of locales to use. Specifies the locale to use when returning human readable strings.profileUris - list of Transport Profile that the returned Endpoints shall support. All Endpoints are
returned if the list is empty.GetEndpointsResponse returned by the GetEndpoints service.public static CompletableFuture<List<ApplicationDescription>> findServers(String endpointUrl)
endpointUrl.
The discovery URL(s) for each server ApplicationDescription in the response can then be used in a
getEndpoints(String) call to discover the endpoints for that server.
endpointUrl - the endpoint URL to find servers at.ApplicationDescriptions returned by the FindServers service.public static CompletableFuture<List<EndpointDescription>> getEndpoints(String endpointUrl)
endpointUrl.endpointUrl - the endpoint URL to get endpoints from.EndpointDescriptions returned by the GetEndpoints service.Copyright © 2021. All rights reserved.