|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsyncConnection
This class represent a possible asynchronous connection. An asynchronous connection can always be suspended or resumed, its associated request and response objects be used to construct a response, etc.
Method Summary | |
---|---|
String |
getPushEvent()
Return the message that can be pushed back. |
GrizzletRequest |
getRequest()
Return the GrizzletRequest associated with this AsynchConnection. |
GrizzletResponse |
getResponse()
Return the GrizzletResponse associated with this AsynchConnection. |
boolean |
hasPushEvent()
Is this AsyncConnection has push events ready to push back data to its associated client. |
boolean |
isGet()
Is the current asynchronous connection defined as an HTTP Get. |
boolean |
isPost()
Is the current asynchronous connection defined as an HTTP Get. |
boolean |
isResuming()
Is this AsyncConnection being in the process of being resumed? |
boolean |
isSuspended()
Return true is the current connection associated with this event has been suspended. |
void |
push(String message)
Advises the Grizzlet Container to start intiating a push operation, using the argument message . |
void |
resume()
Resume a suspended connection. |
void |
suspend()
Suspend the current connection. |
Method Detail |
---|
boolean isSuspended()
void suspend() throws AlreadyPausedException
AlreadyPausedException
void resume() throws NotYetPausedException
NotYetPausedException
void push(String message) throws IOException
message
. All asynchronous connection that has
been suspended will have a chance to push the data back to their
associated clients.
message
- The data that will be pushed.
IOException
GrizzletRequest getRequest()
GrizzletResponse getResponse()
boolean isResuming()
boolean hasPushEvent()
String getPushEvent()
message
that can be pushed back.
boolean isGet()
boolean isPost()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |