Methods Summary |
---|
public void | clear()Clear the event.
// --------------------------------------------------------- Public Methods
request = null;
response = null;
|
public void | close()
if (request == null) {
throw new IllegalStateException(sm.getString("cometEvent.nullRequest"));
}
request.setComet(false);
response.finishResponse();
|
public EventSubType | getEventSubType()
return eventSubType;
|
public EventType | getEventType()
return eventType;
|
public javax.servlet.http.HttpServletRequest | getHttpServletRequest()
return request.getRequest();
|
public javax.servlet.http.HttpServletResponse | getHttpServletResponse()
return response.getResponse();
|
public void | setEventSubType(EventSubType eventSubType)
this.eventSubType = eventSubType;
|
public void | setEventType(EventType eventType)
this.eventType = eventType;
|
public void | setTimeout(int timeout)
if (request.getAttribute("org.apache.tomcat.comet.timeout.support") == Boolean.TRUE) {
request.setAttribute("org.apache.tomcat.comet.timeout", new Integer(timeout));
} else {
throw new UnsupportedOperationException();
}
|