javamanager/javainstaller/installer/javasrc/com/nokia/mj/impl/installer/downloader/Downloader.java
branchRCL_3
changeset 24 0fd27995241b
parent 19 04becd199f91
equal deleted inserted replaced
20:f9bb0fca356a 24:0fd27995241b
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    38 /**
    38 /**
    39  * Downloader downloads file from specified URL.
    39  * Downloader downloads file from specified URL.
    40  * Each Downloader instance downloads one file at a time in
    40  * Each Downloader instance downloads one file at a time in
    41  * a separate thread. Parallel downloads are possible with
    41  * a separate thread. Parallel downloads are possible with
    42  * multiple Downloader instances.
    42  * multiple Downloader instances.
    43  *
       
    44  * @author Nokia Corporation
       
    45  * @version $Rev: 0 $ $Date$
       
    46  */
    43  */
    47 abstract public class Downloader implements Runnable
    44 abstract public class Downloader implements Runnable
    48 {
    45 {
    49     // Maximum number of HTTP redirects to be followed.
    46     // Maximum number of HTTP redirects to be followed.
    50     protected static final int MAX_REDIRECT_COUNT = 5;
    47     protected static final int MAX_REDIRECT_COUNT = 5;