|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.scheisseichfindemalkeinen.hoster.Hoster
de.scheisseichfindemalkeinen.hoster.Host
de.scheisseichfindemalkeinen.hoster.HostRules
public class HostRules
Host-Class for Rules
| 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 |
|---|
public static final java.lang.String VERSION
public static final java.lang.String NAME
| Constructor Detail |
|---|
public HostRules()
| Method Detail |
|---|
public void addRule(Rule rule)
rule - Rulepublic void removeRule(int index)
index - Indexpublic void saveAllRules()
public java.util.Vector<Rule> getRules()
public Rule getRule(int index)
index - Index
public java.util.Vector<java.lang.String> getDomains()
public boolean isFromThisHoster(java.lang.String url)
IHoster
isFromThisHoster in interface IHosterurl - Container-URL
public Rule getRuleForURL(java.lang.String url)
url - URL
public java.lang.String getVersion()
IHoster
getVersion in interface IHosterpublic java.lang.String getName()
IHoster
getName in interface IHosterpublic java.lang.String getFilenameFromURL(java.lang.String url)
IHoster
getFilenameFromURL in interface IHosterurl - Container-URL
public void parseURLAndFilename(URLParseObject upo)
throws HostException
IHoster
parseURLAndFilename in interface IHosterupo - URLParseObject
HostExceptionpublic java.lang.String toString()
toString in class Hoster
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||