org.atmosphere.vertx
Class VertxAsyncIOWriter

java.lang.Object
  extended by org.atmosphere.cpr.AsyncIOWriterAdapter
      extended by org.atmosphere.cpr.AtmosphereInterceptorWriter
          extended by org.atmosphere.vertx.VertxAsyncIOWriter
All Implemented Interfaces:
org.atmosphere.cpr.AsyncIOWriter

public class VertxAsyncIOWriter
extends org.atmosphere.cpr.AtmosphereInterceptorWriter


Field Summary
 
Fields inherited from class org.atmosphere.cpr.AtmosphereInterceptorWriter
filters
 
Constructor Summary
VertxAsyncIOWriter(org.vertx.java.core.http.HttpServerRequest request)
           
 
Method Summary
 void close(org.atmosphere.cpr.AtmosphereResponse r)
           
 boolean isClosed()
           
 long lastTick()
           
protected  byte[] transform(org.atmosphere.cpr.AtmosphereResponse response, byte[] b, int offset, int length)
           
 org.atmosphere.cpr.AsyncIOWriter write(org.atmosphere.cpr.AtmosphereResponse r, byte[] data)
           
 org.atmosphere.cpr.AsyncIOWriter write(org.atmosphere.cpr.AtmosphereResponse r, byte[] data, int offset, int length)
           
 org.atmosphere.cpr.AsyncIOWriter write(org.atmosphere.cpr.AtmosphereResponse r, String data)
           
 org.atmosphere.cpr.AsyncIOWriter writeError(org.atmosphere.cpr.AtmosphereResponse r, int errorCode, String message)
           
 
Methods inherited from class org.atmosphere.cpr.AtmosphereInterceptorWriter
flush, interceptor, invokeInterceptor, redirect, writeReady
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VertxAsyncIOWriter

public VertxAsyncIOWriter(org.vertx.java.core.http.HttpServerRequest request)
Method Detail

isClosed

public boolean isClosed()

writeError

public org.atmosphere.cpr.AsyncIOWriter writeError(org.atmosphere.cpr.AtmosphereResponse r,
                                                   int errorCode,
                                                   String message)
                                            throws IOException
Specified by:
writeError in interface org.atmosphere.cpr.AsyncIOWriter
Overrides:
writeError in class org.atmosphere.cpr.AtmosphereInterceptorWriter
Throws:
IOException

write

public org.atmosphere.cpr.AsyncIOWriter write(org.atmosphere.cpr.AtmosphereResponse r,
                                              String data)
                                       throws IOException
Specified by:
write in interface org.atmosphere.cpr.AsyncIOWriter
Overrides:
write in class org.atmosphere.cpr.AtmosphereInterceptorWriter
Throws:
IOException

write

public org.atmosphere.cpr.AsyncIOWriter write(org.atmosphere.cpr.AtmosphereResponse r,
                                              byte[] data)
                                       throws IOException
Specified by:
write in interface org.atmosphere.cpr.AsyncIOWriter
Overrides:
write in class org.atmosphere.cpr.AtmosphereInterceptorWriter
Throws:
IOException

transform

protected byte[] transform(org.atmosphere.cpr.AtmosphereResponse response,
                           byte[] b,
                           int offset,
                           int length)
                    throws IOException
Throws:
IOException

write

public org.atmosphere.cpr.AsyncIOWriter write(org.atmosphere.cpr.AtmosphereResponse r,
                                              byte[] data,
                                              int offset,
                                              int length)
                                       throws IOException
Specified by:
write in interface org.atmosphere.cpr.AsyncIOWriter
Overrides:
write in class org.atmosphere.cpr.AtmosphereInterceptorWriter
Throws:
IOException

lastTick

public long lastTick()

close

public void close(org.atmosphere.cpr.AtmosphereResponse r)
           throws IOException
Specified by:
close in interface org.atmosphere.cpr.AsyncIOWriter
Overrides:
close in class org.atmosphere.cpr.AtmosphereInterceptorWriter
Throws:
IOException


Copyright © 2013. All Rights Reserved.