org.atmosphere.gwt.server.impl
Class IFrameResponseWriter

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.IFrameResponseWriter
All Implemented Interfaces:
GwtResponseWriter
Direct Known Subclasses:
IEHTMLFileResponseWriter

public class IFrameResponseWriter
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
IFrameResponseWriter(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)
           
protected  int getPaddingRequired()
           
 void initiate()
           
protected  boolean isOverRefreshLength(int written)
           
 
Methods inherited from class org.atmosphere.gwt.server.impl.ManagedStreamResponseWriter
doSuspend, getOutputStream, 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

IFrameResponseWriter

public IFrameResponseWriter(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

getPaddingRequired

protected int getPaddingRequired()
Specified by:
getPaddingRequired in class ManagedStreamResponseWriter

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

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

isOverRefreshLength

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


Copyright © 2012. All Rights Reserved.