org.richfaces.application.push.impl
Class AtmospherePushHandler

java.lang.Object
  extended by org.richfaces.application.push.impl.AtmospherePushHandler
All Implemented Interfaces:
org.atmosphere.cpr.AtmosphereHandler<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>
Direct Known Subclasses:
PushHandlerImpl

public abstract class AtmospherePushHandler
extends Object
implements org.atmosphere.cpr.AtmosphereHandler<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>

Author:
Nick Belaevski

Constructor Summary
AtmospherePushHandler()
           
 
Method Summary
protected abstract  org.richfaces.application.push.Request createRequest(org.atmosphere.cpr.AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> resource, org.richfaces.application.push.Session session)
           
 void destroy()
           
 org.richfaces.application.push.SessionManager getSessionManager()
           
protected  ExecutorService getWorker()
           
 void init(javax.servlet.ServletConfig servletConfig)
           
 void onRequest(org.atmosphere.cpr.AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> resource)
           
 void onStateChange(org.atmosphere.cpr.AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtmospherePushHandler

public AtmospherePushHandler()
Method Detail

getSessionManager

public org.richfaces.application.push.SessionManager getSessionManager()

onRequest

public void onRequest(org.atmosphere.cpr.AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> resource)
               throws IOException
Specified by:
onRequest in interface org.atmosphere.cpr.AtmosphereHandler<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>
Throws:
IOException

onStateChange

public void onStateChange(org.atmosphere.cpr.AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> event)
                   throws IOException
Specified by:
onStateChange in interface org.atmosphere.cpr.AtmosphereHandler<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>
Throws:
IOException

createRequest

protected abstract org.richfaces.application.push.Request createRequest(org.atmosphere.cpr.AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> resource,
                                                                        org.richfaces.application.push.Session session)

getWorker

protected ExecutorService getWorker()

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws Exception
Throws:
Exception

destroy

public void destroy()
             throws Exception
Throws:
Exception


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