|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.gwt.server.impl.GwtResponseWriterImpl
public abstract class GwtResponseWriterImpl
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
|
protected GwtAtmosphereResourceImpl |
resource
|
protected boolean |
shouldEscapeText
|
protected Writer |
writer
|
| Constructor Summary | |
|---|---|
protected |
GwtResponseWriterImpl(GwtAtmosphereResourceImpl resource)
|
| Method Summary | |
|---|---|
protected abstract void |
doHeartbeat()
|
protected abstract void |
doSendError(int statusCode,
String message)
|
protected abstract void |
doSuspend()
|
protected abstract void |
doTerminate()
|
protected abstract void |
doWrite(List<? extends Serializable> messages)
|
protected void |
escapeText(boolean escape)
|
protected JSONSerializer |
getJsonSerializer()
|
long |
getLastWriteTime()
Returns the last time a write has been performed |
protected OutputStream |
getOutputStream(OutputStream outputStream)
|
javax.servlet.http.HttpServletRequest |
getRequest()
|
javax.servlet.http.HttpServletResponse |
getResponse()
|
protected SerialMode |
getSerializationMode()
|
protected boolean |
hasSession()
|
void |
heartbeat()
Write a heartbeat message to the associated HTTP response. |
void |
initiate()
|
boolean |
isTerminated()
Test if this Comet response has been terminated by calling the GwtResponseWriter.terminate() method or terminated from the
HTTP client disconnecting. |
void |
sendError(int statusCode)
Send an error before the response is sent. |
void |
sendError(int statusCode,
String message)
Send an error before the response is sent. |
protected String |
serialize(Object message)
|
protected boolean |
shouldEscapeText()
|
protected boolean |
supportsDeflate()
|
void |
suspend()
|
void |
terminate()
Write a terminate message to the associated HTTP response and close the HTTP output stream/ |
void |
write(List<? extends Serializable> messages)
Write a list of message to the associated HTTP response. |
void |
write(List<? extends Serializable> messages,
boolean flush)
Write a list of message to the associated HTTP response. |
void |
write(Serializable message)
Write a single message to the associated HTTP response. |
void |
write(Serializable message,
boolean flush)
Write a single message to the associated HTTP response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Writer writer
protected final GwtAtmosphereResourceImpl resource
protected final org.slf4j.Logger logger
protected boolean shouldEscapeText
| Constructor Detail |
|---|
protected GwtResponseWriterImpl(GwtAtmosphereResourceImpl resource)
| Method Detail |
|---|
public boolean isTerminated()
GwtResponseWriterGwtResponseWriter.terminate() method or terminated from the
HTTP client disconnecting.
isTerminated in interface GwtResponseWriterprotected SerialMode getSerializationMode()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public void sendError(int statusCode)
throws IOException
GwtResponseWriter
sendError in interface GwtResponseWriterIOException
public void sendError(int statusCode,
String message)
throws IOException
GwtResponseWriter
sendError in interface GwtResponseWriterIOExceptionprotected OutputStream getOutputStream(OutputStream outputStream)
public void initiate()
throws IOException
IOException
public void suspend()
throws IOException
IOException
public void terminate()
throws IOException
GwtResponseWriter
terminate in interface GwtResponseWriterIOException
public void write(Serializable message)
throws IOException,
SerializationException
GwtResponseWriter
write in interface GwtResponseWriterIOException
SerializationException
public void write(Serializable message,
boolean flush)
throws IOException,
SerializationException
GwtResponseWriter
write in interface GwtResponseWriterIOException
SerializationException
public void write(List<? extends Serializable> messages)
throws IOException,
SerializationException
GwtResponseWriter
write in interface GwtResponseWriterIOException
SerializationException
public void write(List<? extends Serializable> messages,
boolean flush)
throws IOException,
SerializationException
GwtResponseWriter
write in interface GwtResponseWriterIOException
SerializationException
public void heartbeat()
throws IOException
GwtResponseWriter
heartbeat in interface GwtResponseWriterIOExceptionpublic long getLastWriteTime()
GwtResponseWriter
getLastWriteTime in interface GwtResponseWriter
protected abstract void doSendError(int statusCode,
String message)
throws IOException
IOException
protected abstract void doSuspend()
throws IOException
IOException
protected abstract void doWrite(List<? extends Serializable> messages)
throws IOException,
SerializationException
IOException
SerializationException
protected abstract void doHeartbeat()
throws IOException
IOException
protected abstract void doTerminate()
throws IOException
IOExceptionprotected boolean shouldEscapeText()
protected void escapeText(boolean escape)
protected boolean supportsDeflate()
protected boolean hasSession()
protected String serialize(Object message)
throws SerializationException
SerializationExceptionprotected JSONSerializer getJsonSerializer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||