public class HttpDownload extends AbstractCancellableDownload
Download.StatecaughtException, directory, downloadFuture, fileToSaveTo, log, started, status, title| Constructor and Description |
|---|
HttpDownload()
StandardConstructor defined for usage by subclasse like the ButlerDownload.
|
HttpDownload(URL url,
String request,
HashMap<String,String> headers,
String directory,
String title,
String filename,
String extension)
Constructor for Download.
|
HttpDownload(URL url,
String request,
String directory,
String title,
String filename,
String extension)
Constructor for Download.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
downloadStream()
DOCUMENT ME!
|
protected void |
downloadStream(InputStream src,
OutputStream dest)
DOCUMENT ME!
|
boolean |
equals(Object obj) |
JPanel |
getExceptionPanel(Exception exception)
Returns a JPanel which visualizes the given exception.
|
protected InputStream |
getUrlInputStreamWithWebAcessManager(URL url)
DOCUMENT ME!
|
int |
hashCode() |
void |
run() |
cancelcompareTo, determineDestinationFile, error, getCaughtException, getDownloadsCompleted, getDownloadsErroneous, getDownloadsTotal, getFileToSaveTo, getStatus, getTitle, setParallelDownloads, startDownload, stateChanged, titleChangedaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddObserver, deleteObserver, getProgresspublic HttpDownload()
public HttpDownload(URL url, String request, String directory, String title, String filename, String extension)
url - The URL of the server to download from.request - The request to send.directory - Specifies in which directory to save the file. This should be specified relative to the
general download directory.title - The title of the download.filename - A String containing the filename.extension - A String containing the file extension.public HttpDownload(URL url, String request, HashMap<String,String> headers, String directory, String title, String filename, String extension)
url - The URL of the server to download from.request - The request to send.headers - A map containing key/value String pairs which are used as request headers.directory - Specifies in which directory to save the file. This should be specified relative to the
general download directory.title - The title of the download.filename - A String containing the filename.extension - A String containing the file extension.protected void downloadStream(InputStream src, OutputStream dest) throws IOException
src - DOCUMENT ME!dest - DOCUMENT ME!IOException - DOCUMENT ME!protected InputStream getUrlInputStreamWithWebAcessManager(URL url) throws URISyntaxException, FileNotFoundException, AccessMethodIsNotSupportedException, RequestFailedException, NoHandlerForURLException, Exception
url - DOCUMENT ME!URISyntaxException - DOCUMENT ME!FileNotFoundException - DOCUMENT ME!AccessMethodIsNotSupportedException - DOCUMENT ME!RequestFailedException - DOCUMENT ME!NoHandlerForURLException - DOCUMENT ME!Exception - DOCUMENT ME!protected void downloadStream()
public void run()
run in interface Runnablerun in class AbstractDownloadpublic JPanel getExceptionPanel(Exception exception)
DownloadgetExceptionPanel in interface DownloadgetExceptionPanel in class AbstractDownloadexception - The exception to visualize.public boolean equals(Object obj)
equals in class AbstractDownloadpublic int hashCode()
hashCode in class AbstractDownloadCopyright © 2012–2026 cismet GmbH. All rights reserved.