|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.scheisseichfindemalkeinen.hoster.HostManager
public class HostManager
Class which holds the host-classes and provides methods to check and parse the URLs There is also a method which removes duplicates from an URL-Array
| Method Summary | |
|---|---|
boolean |
checkForImplementedMethodsOfAnInterface(java.lang.Object obj,
java.lang.String fullyQualifiedInterfaceName)
Returns true if interface is implemented and all methods are implemented |
java.util.Vector<URL> |
checkURL(URL urlObject,
BooleanWrapper bOK,
ProgressObserver progress)
Check if a hostclass accepts the url and return a nice filename for the url. |
boolean[] |
getHosterChecks()
Returns an array of all checks for the hosters |
Hoster |
getHosterForURL(java.lang.String url)
Returns the Hoster for the url or null if not found |
java.util.Vector<java.lang.String> |
getHosterInfo()
Returns an array containing Strings with name and version of the classes |
Host[] |
getHosters()
Returns an array of all hostclasses |
java.lang.String |
getHostVersion(java.lang.String name)
Returns the version of a hostclass |
HostRules |
getHr()
Return the HostRules-hostclass |
RedirectManager |
getRedirectManager()
Returns the RedirectManager |
boolean |
hasInterface(java.lang.Object obj,
java.lang.String fullyQualifiedInterfaceName)
Returns true if the object has the interface Checks not if the methods really are implemented |
static HostManager |
instance()
Returns the singleton |
URLParseObject |
parseURL(URLParseObject upo)
Parses the URL by a hostclass and return the parsed URL |
void |
reInitHosterList()
Create a sorted hostclass-array |
static java.util.ArrayList<URL> |
removeDuplicates(java.util.ArrayList<URL> vs,
boolean ignoreFirstThreeURLs)
Returns an array of URLs without duplicates |
static java.util.Vector<URL> |
removeDuplicates(java.util.Vector<URL> vs,
boolean ignoreFirstThreeURLs)
Returns an array of URLs without duplicates |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static HostManager instance()
public void reInitHosterList()
public URLParseObject parseURL(URLParseObject upo)
throws HostException
upo - URLParseObject
HostException
public java.util.Vector<URL> checkURL(URL urlObject,
BooleanWrapper bOK,
ProgressObserver progress)
urlObject - URL-ObjectbOK - Flag if there is a Hoster for this urlprogress - ProgessObserver
public java.lang.String getHostVersion(java.lang.String name)
name - Name
public Host[] getHosters()
public boolean[] getHosterChecks()
public java.util.Vector<java.lang.String> getHosterInfo()
public Hoster getHosterForURL(java.lang.String url)
url - URL
public static java.util.ArrayList<URL> removeDuplicates(java.util.ArrayList<URL> vs,
boolean ignoreFirstThreeURLs)
vs - Array of URLsignoreFirstThreeURLs - If True, the first three URLs are always added to the result-Array and are not used for comparison
public static java.util.Vector<URL> removeDuplicates(java.util.Vector<URL> vs,
boolean ignoreFirstThreeURLs)
vs - Array of URLsignoreFirstThreeURLs - Ignore the first three urls
public HostRules getHr()
public boolean hasInterface(java.lang.Object obj,
java.lang.String fullyQualifiedInterfaceName)
obj - ObjectfullyQualifiedInterfaceName - Fully qualified interface name
public boolean checkForImplementedMethodsOfAnInterface(java.lang.Object obj,
java.lang.String fullyQualifiedInterfaceName)
obj - ObjectfullyQualifiedInterfaceName - Fully qualified interface name
public RedirectManager getRedirectManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||