public interface UrlParser
Modifier and Type | Method and Description |
---|---|
String |
getHost()
Gets the host.
|
List<String> |
getHosts()
Gets the hosts.
|
Integer |
getPort()
Gets the port.
|
List<Integer> |
getPorts()
Gets the ports.
|
String |
getUrl()
Gets the url.
|
void |
setHost(String host)
Sets the host.
|
void |
setHosts(List<String> hosts)
Sets the hosts.
|
void |
setPort(Integer port)
Sets the port.
|
void |
setPorts(List<Integer> ports)
Sets the ports.
|
void |
setUrl(String url)
Sets the url and default port.
|
void |
validate()
Validate.
|
void setUrl(String url) throws Exception
url
- the new urlException
- the exceptionvoid validate() throws Exception
Exception
- the exceptionString getUrl()
void setHost(String host)
host
- the new hostvoid setHosts(List<String> hosts)
hosts
- the new hostsvoid setPort(Integer port)
port
- the new portvoid setPorts(List<Integer> ports)
ports
- the new portsString getHost()
List<String> getHosts()
Integer getPort()
List<Integer> getPorts()
Copyright © 2010-2020 Toolsverse. All Rights Reserved.