Package org.directwebremoting.event

Examples of org.directwebremoting.event.ScriptSessionListener


public class CustomSSManager extends DefaultScriptSessionManager{
  public static final String SESSION_USER = "23654895";
   public static final String SS_ID = "DWR_ScriptSession_Id"
     public CustomSSManager() { 
          addScriptSessionListener(new ScriptSessionListener(){ 
             public void sessionCreated(ScriptSessionEvent event) { 
                     ScriptSession scriptSession = event.getSession(); // ��ȡ�´�����SS 
                     HttpSession httpSession  = WebContextFactory.get().getSession();// ��ȡ����SS���û���HttpSession 
                     User user = (User)httpSession.getAttribute(SESSION_USER)
                     if(user ==null){ 
View Full Code Here


                }
                else
                {
                    @SuppressWarnings("unchecked")
                    Class<? extends ScriptSessionListener> i = (Class<? extends ScriptSessionListener>) impl;
                    ScriptSessionListener instance = i.newInstance();

                    manager.addScriptSessionListener(instance);
                }
            }
            catch (Exception ex)
View Full Code Here

TOP

Related Classes of org.directwebremoting.event.ScriptSessionListener

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.