de.scheisseichfindemalkeinen.hoster
Class HostRules

java.lang.Object
  extended by de.scheisseichfindemalkeinen.hoster.Hoster
      extended by de.scheisseichfindemalkeinen.hoster.Host
          extended by de.scheisseichfindemalkeinen.hoster.HostRules
All Implemented Interfaces:
IHoster

public class HostRules
extends Host
implements IHoster

Host-Class for Rules

Version:
0.3

Field Summary
static java.lang.String NAME
          Name dieser Klasse
static java.lang.String VERSION
          Version dieser Klasse
 
Constructor Summary
HostRules()
          Konstruktor
 
Method Summary
 void addRule(Rule rule)
          Regel hinzufuegen
 java.util.Vector<java.lang.String> getDomains()
          Get-Method
 java.lang.String getFilenameFromURL(java.lang.String url)
          Returns the filename from the URL This method is to display a nice filename in the Download-Selection-Dialog
 java.lang.String getName()
          Returns the name of this class
 Rule getRule(int index)
          Get-Methode
 Rule getRuleForURL(java.lang.String url)
          Returns the rule which is responsible to parse the url
 java.util.Vector<Rule> getRules()
          Get-Methode
 java.lang.String getVersion()
          Returns the version of this class
 boolean isFromThisHoster(java.lang.String url)
          Check if the host-class will parse the URL
 void parseURLAndFilename(URLParseObject upo)
          Parses the URL and returns the direct URL
 void removeRule(int index)
          Regel loeschen
 void saveAllRules()
          Alle Regeln speichern
 java.lang.String toString()
           
 
Methods inherited from class de.scheisseichfindemalkeinen.hoster.Hoster
isDeveloper, removeDuplicateEqualsMethod, setDeveloper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
Version dieser Klasse

See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
Name dieser Klasse

See Also:
Constant Field Values
Constructor Detail

HostRules

public HostRules()
Konstruktor

Method Detail

addRule

public void addRule(Rule rule)
Regel hinzufuegen

Parameters:
rule - Rule

removeRule

public void removeRule(int index)
Regel loeschen

Parameters:
index - Index

saveAllRules

public void saveAllRules()
Alle Regeln speichern


getRules

public java.util.Vector<Rule> getRules()
Get-Methode

Returns:
Rules

getRule

public Rule getRule(int index)
Get-Methode

Parameters:
index - Index
Returns:
Rule

getDomains

public java.util.Vector<java.lang.String> getDomains()
Get-Method

Returns:
Domains

isFromThisHoster

public boolean isFromThisHoster(java.lang.String url)
Description copied from interface: IHoster
Check if the host-class will parse the URL

Specified by:
isFromThisHoster in interface IHoster
Parameters:
url - Container-URL
Returns:
True/False

getRuleForURL

public Rule getRuleForURL(java.lang.String url)
Returns the rule which is responsible to parse the url

Parameters:
url - URL
Returns:
Rule

getVersion

public java.lang.String getVersion()
Description copied from interface: IHoster
Returns the version of this class

Specified by:
getVersion in interface IHoster
Returns:
Version

getName

public java.lang.String getName()
Description copied from interface: IHoster
Returns the name of this class

Specified by:
getName in interface IHoster
Returns:
Name

getFilenameFromURL

public java.lang.String getFilenameFromURL(java.lang.String url)
Description copied from interface: IHoster
Returns the filename from the URL This method is to display a nice filename in the Download-Selection-Dialog

Specified by:
getFilenameFromURL in interface IHoster
Parameters:
url - Container-URL
Returns:
Filename

parseURLAndFilename

public void parseURLAndFilename(URLParseObject upo)
                         throws HostException
Description copied from interface: IHoster
Parses the URL and returns the direct URL

Specified by:
parseURLAndFilename in interface IHoster
Parameters:
upo - URLParseObject
Throws:
HostException

toString

public java.lang.String toString()
Specified by:
toString in class Hoster