Class ScanURL
java.lang.Object
|
+--ScanURL
- public class ScanURL
- extends java.lang.Object
This class extracts an URL into protocol, host and path.
- Version:
- 1.0
- Author:
- Thomas Dreibholz (Dreibholz@bigfoot.com)
Constructor Summary |
ScanURL()
Constructor. |
Method Summary |
java.lang.String |
getHost()
|
java.lang.String |
getPath()
|
java.lang.String |
getProtocol()
|
boolean |
scanURL(java.lang.String location,
java.lang.String defaultProtocol)
Scan an URL string and extract URL into protocol, host and path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScanURL
public ScanURL()
- Constructor.
scanURL
public boolean scanURL(java.lang.String location,
java.lang.String defaultProtocol)
- Scan an URL string and extract URL into protocol, host and path.
- Parameters:
location
- String with URL (e.g. rtpa://gaffel:7500/Test.list).protocol
- Default protocol.- Returns:
- true, if URL scan was successful; false otherwise.
getProtocol
public java.lang.String getProtocol()
getHost
public java.lang.String getHost()
getPath
public java.lang.String getPath()