public interface UriHandler
| Modifier and Type | Method and Description |
|---|---|
Optional<ClientTransport> |
buildClient(URI uri)
Returns an implementation of
ClientTransport unambiguously mapped to a URI,
otherwise Optional.EMPTY. |
Optional<ServerTransport> |
buildServer(URI uri)
Returns an implementation of
ServerTransport unambiguously mapped to a URI,
otherwise Optional.EMPTY. |
static ServiceLoader<UriHandler> |
loadServices()
Load all registered instances of
UriHandler. |
static ServiceLoader<UriHandler> loadServices()
UriHandler.UriHandlerOptional<ClientTransport> buildClient(URI uri)
ClientTransport unambiguously mapped to a URI,
otherwise Optional.EMPTY.uri - the uri to mapClientTransport unambiguously mapped to a URI, *
otherwise Optional.EMPTYNullPointerException - if uri is nullOptional<ServerTransport> buildServer(URI uri)
ServerTransport unambiguously mapped to a URI,
otherwise Optional.EMPTY.uri - the uri to mapServerTransport unambiguously mapped to a URI, *
otherwise Optional.EMPTYNullPointerException - if uri is null