public abstract class AbstractCometProcessor extends AbstractGravityServlet implements CometProcessor
| Constructor and Description |
|---|
AbstractCometProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
begin(CometEvent event) |
abstract CometIO |
createCometIO() |
protected void |
end(CometEvent event) |
protected void |
error(CometEvent event) |
void |
event(CometEvent event) |
abstract boolean |
handleEnd(CometEvent event) |
abstract boolean |
handleError(CometEvent event) |
abstract boolean |
handleRequest(CometEvent event,
InputStream content) |
protected void |
read(CometEvent event) |
protected void |
service(HttpServletRequest request,
HttpServletResponse response) |
cleanupRequest, deserialize, deserialize, doDelete, doGet, doHead, doOptions, doPut, doTrace, getConnectMessage, getLongPollingTimeout, init, initializeRequest, removeConnectMessage, serialize, setConnectMessagedoPost, getLastModified, servicedestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, getServletConfig, getServletInfo, init, servicepublic AbstractCometProcessor()
public abstract CometIO createCometIO()
public abstract boolean handleRequest(CometEvent event, InputStream content) throws IOException, ServletException
IOExceptionServletExceptionpublic abstract boolean handleEnd(CometEvent event) throws IOException, ServletException
IOExceptionServletExceptionpublic abstract boolean handleError(CometEvent event) throws IOException, ServletException
IOExceptionServletExceptionpublic void event(CometEvent event) throws IOException, ServletException
event in interface CometProcessorIOExceptionServletExceptionprotected void begin(CometEvent event) throws IOException, ServletException
IOExceptionServletExceptionprotected void read(CometEvent event)
protected void end(CometEvent event) throws IOException, ServletException
IOExceptionServletExceptionprotected void error(CometEvent event) throws IOException, ServletException
IOExceptionServletExceptionprotected void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
service in class HttpServletIOExceptionServletException