Java Reference
In-Depth Information
/**
* Clear the workload.
*
* @throws WorkloadException
* An error prevented the workload from being
* cleared.
*/
public void clear() throws WorkloadException;
/**
* Determine if the workload contains the specified URL.
*
* @param url
* @return
* @throws WorkloadException
*/
public boolean contains(URL url) throws WorkloadException;
/**
* Convert the specified String to a URL. If the string is
* too long or has other issues, throw a
* WorkloadException.
*
* @param url
* A String to convert into a URL.
* @return The URL.
* @throws WorkloadException
* Thrown if, The String could not be
* converted.
*/
public URL convertURL(String url) throws WorkloadException;
/**
* Get the current host.
*
* @return The current host.
*/
public String getCurrentHost();
/**
* Get the depth of the specified URL.
*
* @param url
* The URL to get the depth of.
* @return The depth of the specified URL.
* @throws WorkloadException
Search WWH ::




Custom Search