public class UrlParser extends Object
| Constructor and Description |
|---|
UrlParser(String url)
Instantiates a new url parser.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost()
Gets the host.
|
String |
getPath()
Gets the path.
|
int |
getPort()
Gets the port.
|
String |
getProtocol()
Gets the protocol.
|
void |
setHost(String host)
Sets the host.
|
void |
setPath(String path)
Sets the path.
|
void |
setPort(int port)
Sets the port.
|
void |
setProtocol(String protocol)
Sets the protocol.
|
public UrlParser(String url) throws MalformedURLException
url - the urlMalformedURLException - the malformed URL exceptionpublic String getProtocol()
public void setProtocol(String protocol)
protocol - the new protocolpublic String getHost()
public void setHost(String host)
host - the new hostpublic int getPort()
public void setPort(int port)
port - the new portpublic String getPath()
public void setPath(String path)
path - the new pathCopyright © 2009–2020 psi-probe. All rights reserved.