public abstract class AbstractReflectorAtmosphereHandler extends java.lang.Object implements AtmosphereHandler
AtmosphereHandler that reflect every call to
Broadcaster.broadcast(T), e.g sent the broadcasted event back to the remote client. All broadcast will be by default returned
as it is to the suspended AtmosphereResponse.getOutputStream()
or AtmosphereResponse.getWriter()| Constructor and Description |
|---|
AbstractReflectorAtmosphereHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
onStateChange(AtmosphereResourceEvent event)
Write the
AtmosphereResourceEvent.getMessage() back to the client using
the AtmosphereResponse.getOutputStream() or AtmosphereResponse.getWriter(). |
protected void |
postStateChange(AtmosphereResourceEvent event)
Inspect the event and decide if the underlying connection must be resumed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, onRequestpublic void onStateChange(AtmosphereResourceEvent event) throws java.io.IOException
AtmosphereResourceEvent.getMessage() back to the client using
the AtmosphereResponse.getOutputStream() or AtmosphereResponse.getWriter().
If a Serializer is defined, it will be invoked and the writ operation
will be delegated to to it.
By default, this method will try to use AtmosphereResponse.getWriter().onStateChange in interface AtmosphereHandlerevent - the AtmosphereResourceEvent.getMessage()java.io.IOExceptionprotected final void postStateChange(AtmosphereResourceEvent event)
event - Copyright © 2018. All Rights Reserved.