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".


Constructor Index

 o DKLib()

Method Index

 o getFile(String)
Returns the File from the url.
 o getHost(String)
Returns the Host from the url.
 o getProtocol(String)
Returns the Protocol from the url.

Constructors

 o DKLib
 public DKLib()

Methods

 o 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.
 o 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.
 o 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