org.richfaces.application.push.impl
Class AbstractSession

java.lang.Object
  extended by org.richfaces.application.push.impl.AbstractSession
All Implemented Interfaces:
org.richfaces.application.push.Session
Direct Known Subclasses:
SessionImpl

public abstract class AbstractSession
extends Object
implements org.richfaces.application.push.Session

Author:
Nick Belaevski

Constructor Summary
AbstractSession(String id, org.richfaces.application.push.SessionManager sessionManager)
           
 
Method Summary
 void connect(org.richfaces.application.push.Request request)
           
 void destroy()
           
 void disconnect()
           
 String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
protected  org.richfaces.application.push.Request getRequest()
           
 void invalidate()
           
protected  void processConnect(org.richfaces.application.push.Request request)
           
protected  void processDisconnect()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.richfaces.application.push.Session
getFailedSubscriptions, getSuccessfulSubscriptions, subscribe
 

Constructor Detail

AbstractSession

public AbstractSession(String id,
                       org.richfaces.application.push.SessionManager sessionManager)
Method Detail

connect

public void connect(org.richfaces.application.push.Request request)
             throws Exception
Specified by:
connect in interface org.richfaces.application.push.Session
Throws:
Exception

getRequest

protected org.richfaces.application.push.Request getRequest()

processConnect

protected void processConnect(org.richfaces.application.push.Request request)
                       throws Exception
Throws:
Exception

disconnect

public void disconnect()
                throws Exception
Specified by:
disconnect in interface org.richfaces.application.push.Session
Throws:
Exception

processDisconnect

protected void processDisconnect()
                          throws Exception
Throws:
Exception

getLastAccessedTime

public long getLastAccessedTime()
Specified by:
getLastAccessedTime in interface org.richfaces.application.push.Session

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface org.richfaces.application.push.Session

getId

public String getId()
Specified by:
getId in interface org.richfaces.application.push.Session

invalidate

public void invalidate()
Specified by:
invalidate in interface org.richfaces.application.push.Session

destroy

public void destroy()


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.