| Constructor and Description |
|---|
GenericUrlParser(Integer defPort)
Instantiates a new generic url parser.
|
GenericUrlParser(Integer defPort,
boolean withPrefix)
Instantiates a new generic url parser.
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getActualPort()
Gets the actual port.
|
String |
getHost()
Gets the host.
|
List<String> |
getHosts()
Gets the hosts.
|
String |
getHostsAndPorts() |
String |
getPath()
Gets the path.
|
Integer |
getPort()
Gets the port.
|
List<Integer> |
getPorts()
Gets the ports.
|
String |
getProtocol()
Gets the protocol.
|
String |
getQuery()
Gets the query.
|
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.
|
public GenericUrlParser(Integer defPort)
defPort - the def portpublic GenericUrlParser(Integer defPort,
boolean withPrefix)
defPort - the def portpublic void setUrl(String url)
throws Exception
UrlParserpublic void validate()
throws Exception
UrlParserpublic String getUrl()
UrlParserpublic String getHostsAndPorts()
public void setHost(String host)
UrlParserpublic void setPort(Integer port)
UrlParserpublic String getHost()
UrlParserpublic Integer getPort()
UrlParserpublic Integer getActualPort()
public String getProtocol()
public String getPath()
public String getQuery()
public void setHosts(List<String> hosts)
UrlParserpublic void setPorts(List<Integer> ports)
UrlParserpublic List<String> getHosts()
UrlParserCopyright © 2010-2020 Toolsverse. All Rights Reserved.