org.atmosphere.gwt.server.impl
Class StreamingProtocolResponseWriter

java.lang.Object
  extended by org.atmosphere.gwt.server.impl.GwtResponseWriterImpl
      extended by org.atmosphere.gwt.server.impl.ManagedStreamResponseWriter
          extended by org.atmosphere.gwt.server.impl.StreamingProtocolResponseWriter
All Implemented Interfaces:
GwtResponseWriter
Direct Known Subclasses:
HTTPRequestResponseWriter, IEXDomainRequestResponseWriter

public abstract class StreamingProtocolResponseWriter
extends ManagedStreamResponseWriter

Author:
p.havelaar

Field Summary
 
Fields inherited from class org.atmosphere.gwt.server.impl.ManagedStreamResponseWriter
chrome, length
 
Fields inherited from class org.atmosphere.gwt.server.impl.GwtResponseWriterImpl
connectionID, logger, resource, writer
 
Constructor Summary
StreamingProtocolResponseWriter(GwtAtmosphereResourceImpl resource, com.google.gwt.user.server.rpc.SerializationPolicy serializationPolicy, com.google.gwt.rpc.server.ClientOracle clientOracle)
           
 
Method Summary
protected  void doHeartbeat()
           
protected  void doRefresh()
           
protected  void doSendError(int statusCode, String message)
           
protected  void doTerminate()
           
protected  void doWrite(List<? extends Serializable> messages)
           
protected  CharSequence getPadding(int padding)
           
 void initiate()
           
protected  boolean isOverRefreshLength(int written)
           
 
Methods inherited from class org.atmosphere.gwt.server.impl.ManagedStreamResponseWriter
doSuspend, getOutputStream, getPaddingRequired, heartbeat, write
 
Methods inherited from class org.atmosphere.gwt.server.impl.GwtResponseWriterImpl
getLastWriteTime, getRequest, getResponse, hasSession, isDeRPC, isTerminated, sendError, sendError, serialize, suspend, terminate, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamingProtocolResponseWriter

public StreamingProtocolResponseWriter(GwtAtmosphereResourceImpl resource,
                                       com.google.gwt.user.server.rpc.SerializationPolicy serializationPolicy,
                                       com.google.gwt.rpc.server.ClientOracle clientOracle)
Method Detail

initiate

public void initiate()
              throws IOException
Overrides:
initiate in class GwtResponseWriterImpl
Throws:
IOException

getPadding

protected CharSequence getPadding(int padding)
Specified by:
getPadding in class ManagedStreamResponseWriter

doSendError

protected void doSendError(int statusCode,
                           String message)
                    throws IOException
Specified by:
doSendError in class GwtResponseWriterImpl
Throws:
IOException

doWrite

protected void doWrite(List<? extends Serializable> messages)
                throws IOException
Specified by:
doWrite in class GwtResponseWriterImpl
Throws:
IOException

isOverRefreshLength

protected boolean isOverRefreshLength(int written)
Specified by:
isOverRefreshLength in class ManagedStreamResponseWriter

doHeartbeat

protected void doHeartbeat()
                    throws IOException
Specified by:
doHeartbeat in class GwtResponseWriterImpl
Throws:
IOException

doTerminate

protected void doTerminate()
                    throws IOException
Specified by:
doTerminate in class GwtResponseWriterImpl
Throws:
IOException

doRefresh

protected void doRefresh()
                  throws IOException
Specified by:
doRefresh in class ManagedStreamResponseWriter
Throws:
IOException


Copyright © 2012. All Rights Reserved.