de.scheisseichfindemalkeinen.pic
Class URL

java.lang.Object
  extended by de.scheisseichfindemalkeinen.pic.URL

public class URL
extends java.lang.Object

This class is used to store information about a download, to add them to the Download-Selection


Constructor Summary
URL(java.lang.String url)
          Constructor
URL(java.lang.String url, java.lang.String thumb)
          Constructor
 
Method Summary
 void checkURLForRedirect()
          Checks the url for redirect
 boolean equals(java.lang.Object obj)
           
 java.lang.String getFilenameCorrected()
          Get-Method
 Hoster getHost()
          Returns the host
 java.lang.String getTargetPath()
          Returns the targetPath
 java.lang.String getThreadURL()
          Returns the threadURL
 java.lang.String getThumb()
          GET-Method
 java.lang.String getURL()
          Get-Method
 boolean isAlreadyDownloaded()
          Returns the alreadyDownloaded
 boolean isBlacklisted()
          Returns the blacklisted
 void setAlreadyDownloaded(boolean alreadyDownloaded)
          Sets the alreadyDownloaded
 void setBlacklisted(boolean blacklisted)
          Sets the blacklisted
 void setFilenameCorrected(java.lang.String filenameCorrected)
          Set-Method
 void setHost(Hoster host)
          Sets the host
 void setTargetPath(java.lang.String targetPath)
          Sets the targetPath
 void setThreadURL(java.lang.String threadURL)
          Sets the threadURL
 void setThumb(java.lang.String thumb)
          SET-Method
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URL

public URL(java.lang.String url)
Constructor

Parameters:
url - Container-URL

URL

public URL(java.lang.String url,
           java.lang.String thumb)
Constructor

Parameters:
url - Container-URL
thumb - Thumbnail-URL
Method Detail

setFilenameCorrected

public void setFilenameCorrected(java.lang.String filenameCorrected)
Set-Method

Parameters:
filenameCorrected - Corrected filename

getFilenameCorrected

public java.lang.String getFilenameCorrected()
Get-Method

Returns:
Corrected filename

getURL

public java.lang.String getURL()
Get-Method

Returns:
Container-URL

getThumb

public java.lang.String getThumb()
GET-Method

Returns:
the thumb

setThumb

public void setThumb(java.lang.String thumb)
SET-Method

Parameters:
thumb - the thumb to set

checkURLForRedirect

public void checkURLForRedirect()
Checks the url for redirect


getTargetPath

public java.lang.String getTargetPath()
Returns the targetPath

Returns:
targetPath

setTargetPath

public void setTargetPath(java.lang.String targetPath)
Sets the targetPath

Parameters:
targetPath - targetPath

getHost

public Hoster getHost()
Returns the host

Returns:
host

setHost

public void setHost(Hoster host)
Sets the host

Parameters:
host - host

getThreadURL

public java.lang.String getThreadURL()
Returns the threadURL

Returns:
threadURL

setThreadURL

public void setThreadURL(java.lang.String threadURL)
Sets the threadURL

Parameters:
threadURL - threadURL

isAlreadyDownloaded

public boolean isAlreadyDownloaded()
Returns the alreadyDownloaded

Returns:
alreadyDownloaded

setAlreadyDownloaded

public void setAlreadyDownloaded(boolean alreadyDownloaded)
Sets the alreadyDownloaded

Parameters:
alreadyDownloaded - alreadyDownloaded

isBlacklisted

public boolean isBlacklisted()
Returns the blacklisted

Returns:
blacklisted

setBlacklisted

public void setBlacklisted(boolean blacklisted)
Sets the blacklisted

Parameters:
blacklisted - blacklisted

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object