|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.connector.CometEventImpl
public class CometEventImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.catalina.CometEvent |
---|
CometEvent.EventSubType, CometEvent.EventType |
Field Summary | |
---|---|
protected CometEvent.EventSubType |
eventSubType
Event sub type. |
protected CometEvent.EventType |
eventType
Event type. |
protected Request |
request
Associated request. |
protected Response |
response
Associated response. |
protected static StringManager |
sm
The string manager for this package. |
Constructor Summary | |
---|---|
CometEventImpl(Request request,
Response response)
|
Method Summary | |
---|---|
void |
clear()
Clear the event. |
void |
close()
Ends the Comet session. |
CometEvent.EventSubType |
getEventSubType()
Returns the sub type of this event. |
CometEvent.EventType |
getEventType()
Returns the event type. |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Returns the HttpServletRequest. |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Returns the HttpServletResponse. |
void |
setEventSubType(CometEvent.EventSubType eventSubType)
|
void |
setEventType(CometEvent.EventType eventType)
|
void |
setTimeout(int timeout)
Sets the timeout for this Comet connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static StringManager sm
protected Request request
protected Response response
protected CometEvent.EventType eventType
protected CometEvent.EventSubType eventSubType
Constructor Detail |
---|
public CometEventImpl(Request request, Response response)
Method Detail |
---|
public void clear()
public void setEventType(CometEvent.EventType eventType)
public void setEventSubType(CometEvent.EventSubType eventSubType)
public void close() throws java.io.IOException
CometEvent
close
in interface CometEvent
java.io.IOException
- if an IO exception occurspublic CometEvent.EventSubType getEventSubType()
CometEvent
getEventSubType
in interface CometEvent
public CometEvent.EventType getEventType()
CometEvent
getEventType
in interface CometEvent
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
CometEvent
getHttpServletRequest
in interface CometEvent
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
CometEvent
getHttpServletResponse
in interface CometEvent
public void setTimeout(int timeout) throws java.io.IOException, javax.servlet.ServletException, java.lang.UnsupportedOperationException
CometEvent
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.
setTimeout
in interface CometEvent
timeout
- The timeout in milliseconds for this connection, must be a positive value, larger than 0
java.io.IOException
- An IOException may be thrown to indicate an IO error,
or that the EOF has been reached on the connection
javax.servlet.ServletException
- An exception has occurred, as specified by the root
cause
java.lang.UnsupportedOperationException
- if per connection timeout is not supported, either at all or at this phase
of the invocation.
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |