public abstract class ChannelWriter
extends org.atmosphere.cpr.AtmosphereInterceptorWriter
| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.netty.channel.Channel |
channel |
protected static byte[] |
CHUNK_DELIMITER |
protected AtomicBoolean |
doneProcessing |
protected static String |
END |
protected static byte[] |
ENDCHUNK |
protected boolean |
keepAlive |
protected long |
lastWrite |
protected static org.slf4j.Logger |
logger |
protected org.atmosphere.util.ByteArrayAsyncWriter |
transformCacheBuffer |
protected boolean |
writeHeader |
| Constructor and Description |
|---|
ChannelWriter(org.jboss.netty.channel.Channel channel,
boolean writeHeader,
boolean keepAlive) |
| Modifier and Type | Method and Description |
|---|---|
abstract org.atmosphere.cpr.AsyncIOWriter |
asyncWrite(org.atmosphere.cpr.AtmosphereResponse response,
byte[] data,
int offset,
int length) |
protected String |
constructStatusAndHeaders(org.atmosphere.cpr.AtmosphereResponse response,
int contentLength) |
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 response,
byte[] data) |
org.atmosphere.cpr.AsyncIOWriter |
write(org.atmosphere.cpr.AtmosphereResponse response,
byte[] data,
int offset,
int length) |
org.atmosphere.cpr.AsyncIOWriter |
write(org.atmosphere.cpr.AtmosphereResponse response,
String data) |
org.atmosphere.cpr.AsyncIOWriter |
writeError(org.atmosphere.cpr.AtmosphereResponse response,
int errorCode,
String message) |
protected static final org.slf4j.Logger logger
protected static final String END
protected static final byte[] CHUNK_DELIMITER
protected static final byte[] ENDCHUNK
protected final org.jboss.netty.channel.Channel channel
protected final AtomicBoolean doneProcessing
protected final org.atmosphere.util.ByteArrayAsyncWriter transformCacheBuffer
protected final boolean writeHeader
protected long lastWrite
protected boolean keepAlive
public ChannelWriter(org.jboss.netty.channel.Channel channel,
boolean writeHeader,
boolean keepAlive)
public boolean isClosed()
public org.atmosphere.cpr.AsyncIOWriter writeError(org.atmosphere.cpr.AtmosphereResponse response,
int errorCode,
String message)
throws IOException
writeError in interface org.atmosphere.cpr.AsyncIOWriterwriteError in class org.atmosphere.cpr.AtmosphereInterceptorWriterIOExceptionpublic org.atmosphere.cpr.AsyncIOWriter write(org.atmosphere.cpr.AtmosphereResponse response,
String data)
throws IOException
write in interface org.atmosphere.cpr.AsyncIOWriterwrite in class org.atmosphere.cpr.AtmosphereInterceptorWriterIOExceptionpublic org.atmosphere.cpr.AsyncIOWriter write(org.atmosphere.cpr.AtmosphereResponse response,
byte[] data)
throws IOException
write in interface org.atmosphere.cpr.AsyncIOWriterwrite in class org.atmosphere.cpr.AtmosphereInterceptorWriterIOExceptionprotected byte[] transform(org.atmosphere.cpr.AtmosphereResponse response,
byte[] b,
int offset,
int length)
throws IOException
IOExceptionpublic org.atmosphere.cpr.AsyncIOWriter write(org.atmosphere.cpr.AtmosphereResponse response,
byte[] data,
int offset,
int length)
throws IOException
write in interface org.atmosphere.cpr.AsyncIOWriterwrite in class org.atmosphere.cpr.AtmosphereInterceptorWriterIOExceptionpublic long lastTick()
protected String constructStatusAndHeaders(org.atmosphere.cpr.AtmosphereResponse response, int contentLength)
public abstract org.atmosphere.cpr.AsyncIOWriter asyncWrite(org.atmosphere.cpr.AtmosphereResponse response,
byte[] data,
int offset,
int length)
throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.