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
UrlParser
public void validate() throws Exception
UrlParser
public String getUrl()
UrlParser
public String getHostsAndPorts()
public void setHost(String host)
UrlParser
public void setPort(Integer port)
UrlParser
public String getHost()
UrlParser
public Integer getPort()
UrlParser
public Integer getActualPort()
public String getProtocol()
public String getPath()
public String getQuery()
public void setHosts(List<String> hosts)
UrlParser
public void setPorts(List<Integer> ports)
UrlParser
public List<String> getHosts()
UrlParser
Copyright © 2010-2020 Toolsverse. All Rights Reserved.