All Packages Class Hierarchy This Package Previous Next Index
Class uhr.core.dk.DKLib
java.lang.Object
|
+----uhr.core.dk.DKLib
- public class DKLib
- extends Object
This class container static library methods for use with DK.
These methods assume as standard URL of the format:
Protocol://Host/File
The Protocol is all preceeding the "://".
The Host is all between ";//" and the next "/".
The File is all after the Host + "/".
The File may have slashes and periods. A url example is:
jcresource://jcon.systems.AwardSystem/edit/docs/EditEmail.dk
The Protocol is "jcresource".
The Host is "jcon.systems.AwardSystem".
The File is "edit/docs/EditEmail.dk".
-
DKLib()
-
-
getFile(String)
- Returns the File from the url.
-
getHost(String)
- Returns the Host from the url.
-
getProtocol(String)
- Returns the Protocol from the url.
DKLib
public DKLib()
getProtocol
public static String getProtocol(String url)
- Returns the Protocol from the url.
- Parameters:
- url - the url of interest
- Returns:
- the Protocol in the url.
- Throws: IllegalArgumentException
- if Protocol not found.
getHost
public static String getHost(String url)
- Returns the Host from the url.
- Parameters:
- url - the url of interest
- Returns:
- the Host in the url.
- Throws: IllegalArgumentException
- if Host not found.
getFile
public static String getFile(String url)
- Returns the File from the url.
- Parameters:
- url - the url of interest
- Returns:
- the File in the url.
- Throws: IllegalArgumentException
- if problems.
All Packages Class Hierarchy This Package Previous Next Index