Package psiprobe.tools.url
Class UrlParser
- java.lang.Object
-
- psiprobe.tools.url.UrlParser
-
public class UrlParser extends Object
The Class UrlParser.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
UrlParser
public UrlParser(String url) throws MalformedURLException
Instantiates a new url parser.- Parameters:
url
- the url- Throws:
MalformedURLException
- the malformed URL exception
-
-
Method Detail
-
getProtocol
public String getProtocol()
Gets the protocol.- Returns:
- the protocol
-
setProtocol
public void setProtocol(String protocol)
Sets the protocol.- Parameters:
protocol
- the new protocol
-
getHost
public String getHost()
Gets the host.- Returns:
- the host
-
setHost
public void setHost(String host)
Sets the host.- Parameters:
host
- the new host
-
getPort
public int getPort()
Gets the port.- Returns:
- the port
-
setPort
public void setPort(int port)
Sets the port.- Parameters:
port
- the new port
-
getPath
public String getPath()
Gets the path.- Returns:
- the path
-
setPath
public void setPath(String path)
Sets the path.- Parameters:
path
- the new path
-
-