public interface HttpEvent
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpEvent.EventType |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Ends the Comet session.
|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Returns the HttpServletRequest.
|
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Returns the HttpServletResponse.
|
HttpEvent.EventType |
getType()
Returns the event type.
|
void |
setTimeout(int timeout)
Sets the timeout for this Comet connection.
|
javax.servlet.http.HttpServletRequest getHttpServletRequest()
javax.servlet.http.HttpServletResponse getHttpServletResponse()
HttpEvent.EventType getType()
void close()
throws IOException
IOException - if an IO exception occursvoid setTimeout(int timeout)
throws IOException,
javax.servlet.ServletException,
UnsupportedOperationException
response.flushBuffer(). If a timeout occurs, the
error(HttpServletRequest, HttpServletResponse) method is invoked. The
web application SHOULD NOT attempt to reuse the request and response objects after a timeout
as the error(HttpServletRequest, HttpServletResponse) method indicates.timeout - The timeout in milliseconds for this connection, must be a positive value, larger than 0IOException - An IOException may be thrown to indicate an IO error,
or that the EOF has been reached on the connectionjavax.servlet.ServletException - An exception has occurred, as specified by the root
causeUnsupportedOperationException - if per connection timeout is not supported, either at all or at this phase
of the invocation.Copyright © 2013. All Rights Reserved.