return response.getResponse();
}
- public void setTimeout(int timeout) throws IOException, ServletException,
- UnsupportedOperationException {
+ public void setTimeout(int timeout) throws IOException, ServletException,UnsupportedOperationException {
+ //this check should get removed as soon as connection timeout is implemented everywhere.
if (request.getAttribute("org.apache.tomcat.comet.timeout.support") == Boolean.TRUE) {
checkWorkerThread();
- Integer to = new Integer(timeout);
- request.action(ActionCode.ACTION_COMET_TIMEOUT,to);
- //request.setAttribute("org.apache.tomcat.comet.timeout", to);
+ request.action(ActionCode.ACTION_COMET_TIMEOUT,new Integer(timeout));
} else {
throw new UnsupportedOperationException();
}
public void configure(CometEvent.CometConfiguration... options)
throws IOException, IllegalStateException {
checkWorkerThread();
- if (getEventType()!=EventType.BEGIN) {
- throw new IllegalStateException("Configure can only be called during the BEGIN event.");
- }
throw new UnsupportedOperationException();
}