|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GwtResponseWriter
A Comet response provides methods for sending messages using the associated HTTP response. It also provides methods for setting up Comet sessions.
| Method Summary | |
|---|---|
long |
getLastWriteTime()
Returns the last time a write has been performed |
void |
heartbeat()
Write a heartbeat message to the associated HTTP response. |
boolean |
isTerminated()
Test if this Comet response has been terminated by calling the 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. |
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. |
| Method Detail |
|---|
void write(Serializable message)
throws IOException,
SerializationException
message -
IOException
SerializationException
void write(Serializable message,
boolean flush)
throws IOException,
SerializationException
message - flush -
IOException
SerializationException
void write(List<? extends Serializable> messages)
throws IOException,
SerializationException
messages -
IOException
SerializationException
void write(List<? extends Serializable> messages,
boolean flush)
throws IOException,
SerializationException
messages - flush -
IOException
SerializationException
void heartbeat()
throws IOException
IOException
void terminate()
throws IOException
IOExceptionboolean isTerminated()
terminate() method or terminated from the
HTTP client disconnecting.
long getLastWriteTime()
void sendError(int statusCode)
throws IOException
statusCode -
IOException
void sendError(int statusCode,
String message)
throws IOException
statusCode - message -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||