de.scheisseichfindemalkeinen.hoster
Interface IHoster

All Known Implementing Classes:
Host, HostRules, HostSortImages, HostzDefaultFiles

public interface IHoster

Interface which all host-classes have to implement


Method Summary
 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
 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
 

Method Detail

getName

java.lang.String getName()
Returns the name of this class

Returns:
Name

getVersion

java.lang.String getVersion()
Returns the version of this class

Returns:
Version

parseURLAndFilename

void parseURLAndFilename(URLParseObject upo)
                         throws HostException
Parses the URL and returns the direct URL

Parameters:
upo - URLParseObject
Throws:
HostException

isFromThisHoster

boolean isFromThisHoster(java.lang.String url)
Check if the host-class will parse the URL

Parameters:
url - Container-URL
Returns:
True/False

getFilenameFromURL

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

Parameters:
url - Container-URL
Returns:
Filename