Package de.innovationgate.utils

Examples of de.innovationgate.utils.TransientMap


    public synchronized String addTemporaryDownload(HttpSession session, TemporaryFile file) {

        String name = UIDGenerator.generateUID();
        Map temporaryDownloads = (Map) session.getAttribute(SESSION_TEMPORARYDOWNLOADS);
        if (temporaryDownloads == null) {
            temporaryDownloads = new TransientMap(new HashMap());
            session.setAttribute(SESSION_TEMPORARYDOWNLOADS, temporaryDownloads);
        }

        TemporaryDownload tempDownload = new TemporaryDownload(name, file);
        temporaryDownloads.put(name, tempDownload);
View Full Code Here


       
        public Map getPersistentForms() {
            Map forms = (Map) _pageContext.getSession().getAttribute(WGACore.ATTRIB_TMLFORM);
            if (forms == null) {
                // create transient map to prevent persistent forms from session serialization
                forms = new TransientMap(new HashMap());
                _pageContext.getSession().setAttribute(WGACore.ATTRIB_TMLFORM, forms);
            }
            return forms;
        }
View Full Code Here

            HttpSession session = getMainContext().gethttpsession();
           
            synchronized (session) {
                Map<String, ProcessContext> contexts = (Map<String, ProcessContext>) session.getAttribute(PROCESSCONTEXTS_ATTRIBUTE);
                if (contexts == null) {
                    contexts = new TransientMap(new ConcurrentHashMap<String, ProcessContext>());
                    session.setAttribute(PROCESSCONTEXTS_ATTRIBUTE, contexts);
                }
                return contexts;
            }
        }
View Full Code Here

TOP

Related Classes of de.innovationgate.utils.TransientMap

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.