public class ServiceURI extends Object
This file is based on
https://github.com/apache/bookkeeper/blob/master/bookkeeper-common/src/main/java/org/apache/bookkeeper/common/net/ServiceURI.java
| Constructor and Description |
|---|
ServiceURI() |
| Modifier and Type | Method and Description |
|---|---|
static ServiceURI |
create(String uriStr)
Create a service uri instance from a uri string.
|
static ServiceURI |
create(URI uri)
Create a service uri instance from a
URI instance. |
String[] |
getServiceHosts() |
String[] |
getServiceInfos() |
String |
getServiceScheme() |
String |
selectOne()
Create a new URI from the service URI which only specifies one of the hosts.
|
public static ServiceURI create(String uriStr)
uriStr - service uri stringNullPointerExceptionFieldParser - if uriStr is nullIllegalArgumentException - if the given string violates RFC 2396public static ServiceURI create(URI uri)
URI instance.uri - URI instanceNullPointerException - if uriStr is nullIllegalArgumentException - if the given string violates RFC 2396public String[] getServiceInfos()
public String[] getServiceHosts()
public String getServiceScheme()
public String selectOne()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.