01: /**
02: *
03: */package org.mortbay.cometd;
04:
05: import java.io.IOException;
06: import java.util.List;
07: import java.util.Map;
08:
09: import javax.servlet.http.HttpServletRequest;
10: import javax.servlet.http.HttpServletResponse;
11:
12: public interface Transport {
13: public void setResponse(HttpServletResponse response)
14: throws IOException;
15:
16: public void send(Map reply) throws IOException;
17:
18: public void send(List replies) throws IOException;
19:
20: public void complete() throws IOException;
21:
22: public boolean isPolling();
23:
24: public void setPolling(boolean polling);
25:
26: public boolean keepAlive() throws IOException;
27: }
|