Package com.adito.tasks

Examples of com.adito.tasks.TaskInputStream


            Task task = (Task)request.getAttribute(TaskHttpServletRequest.ATTR_TASK);
            if(task != null && request.getAttribute(TaskHttpServletRequest.ATTR_TASK_PROGRESS_HANDLED_EXTERNALLY) == null) {
                TaskProgressBar bar = new TaskProgressBar("installExtension", 0, (int)contentLength, 0); // TODO should accept longs
                task.clearProgressBars();
                task.addProgressBar(bar);
                in = new TaskInputStream(bar, in);
                ((TaskInputStream)in).getProgressBar().setNote(new BundleActionMessage("extensions", "taskProgress.downloadExtension.note", id));
                if(!task.isConfigured())
                    task.configured();
            }         
View Full Code Here


        // This action may be wrapped in a task progress monitor
        Task task = (Task)request.getAttribute(TaskHttpServletRequest.ATTR_TASK);
        if(task != null && request.getAttribute(TaskHttpServletRequest.ATTR_TASK_PROGRESS_HANDLED_EXTERNALLY) == null) {
            TaskProgressBar bar = new TaskProgressBar("updateExtension", 0, (int)contentLength, 0);
            task.addProgressBar(bar);
            in = new TaskInputStream(bar, in);
            ((TaskInputStream)in).getProgressBar().setNote(new BundleActionMessage("extensions", "taskProgress.downloadExtension.note", id));
            task.configured();
        }           

    ExtensionBundle currentBundle = getExtensionBundle(id);
View Full Code Here

TOP

Related Classes of com.adito.tasks.TaskInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.