1 17 18 19 package org.apache.catalina; 20 21 import java.io.IOException ; 22 23 import javax.servlet.ServletException ; 24 import javax.servlet.http.HttpServletRequest ; 25 import javax.servlet.http.HttpServletResponse ; 26 27 33 public interface CometEvent { 34 35 66 public enum EventType {BEGIN, READ, END, ERROR} 67 68 69 79 public enum EventSubType { TIMEOUT, CLIENT_DISCONNECT, IOEXCEPTION, WEBAPP_RELOAD, SERVER_SHUTDOWN, SESSION_END } 80 81 82 87 public HttpServletRequest getHttpServletRequest(); 88 89 94 public HttpServletResponse getHttpServletResponse(); 95 96 101 public EventType getEventType(); 102 103 108 public EventSubType getEventSubType(); 109 110 119 public void close() throws IOException ; 120 121 140 public void setTimeout(int timeout) 141 throws IOException , ServletException , UnsupportedOperationException ; 142 143 } 144 | Popular Tags |