Package org.directwebremoting.extend

Examples of org.directwebremoting.extend.TaskDispatcher.dispatchTask()


     * @param task A code block to execute
     */
    public static void withSession(String sessionId, Runnable task)
    {
        TaskDispatcher taskDispatcher = TaskDispatcherFactory.get(ServerContextFactory.get());
        taskDispatcher.dispatchTask(new IdScriptSessionFilter(sessionId), task);
    }

    /**
     * As {@link #withSession(String, Runnable)}, but for use when there is more
     * than one copy of DWR in a ServletContext.
View Full Code Here


     * @param serverContext The specific DWR context in which to execute
     */
    public static void withSession(ServerContext serverContext, String sessionId, Runnable task)
    {
        TaskDispatcher taskDispatcher = TaskDispatcherFactory.get(serverContext);
        taskDispatcher.dispatchTask(new IdScriptSessionFilter(sessionId), task);
    }

    /**
     * If a browser passes an object or function to DWR then DWR may need to
     * release the reference that DWR keeps. If the server-side manifestation of
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.