org.richfaces.application.push.impl
Class AbstractRequest
java.lang.Object
org.richfaces.application.push.impl.AbstractRequest
- All Implemented Interfaces:
- org.richfaces.application.push.Request
- Direct Known Subclasses:
- RequestImpl
public abstract class AbstractRequest
- extends Object
- implements org.richfaces.application.push.Request
- Author:
- Nick Belaevski
Constructor Summary |
AbstractRequest(org.atmosphere.cpr.AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> atmosphereResource,
org.richfaces.application.push.Session session,
ExecutorService executorService)
|
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.Request |
getMessageListener |
AbstractRequest
public AbstractRequest(org.atmosphere.cpr.AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> atmosphereResource,
org.richfaces.application.push.Session session,
ExecutorService executorService)
flushMessages
public void flushMessages()
throws IOException
- Specified by:
flushMessages
in interface org.richfaces.application.push.Request
- Throws:
IOException
postMessage
public void postMessage(org.richfaces.application.push.TopicKey topicKey,
String serializedMessage)
suspend
public void suspend()
throws IOException
- Specified by:
suspend
in interface org.richfaces.application.push.Request
- Throws:
IOException
resume
public void resume()
throws IOException
- Specified by:
resume
in interface org.richfaces.application.push.Request
- Throws:
IOException
isSuspended
public boolean isSuspended()
- Specified by:
isSuspended
in interface org.richfaces.application.push.Request
isPolling
public boolean isPolling()
- Specified by:
isPolling
in interface org.richfaces.application.push.Request
getSession
public org.richfaces.application.push.Session getSession()
- Specified by:
getSession
in interface org.richfaces.application.push.Request
getResource
protected org.atmosphere.cpr.AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> getResource()
onSuspend
protected void onSuspend()
onResume
protected void onResume()
onDisconnect
protected void onDisconnect()
onBroadcast
protected void onBroadcast()
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.