01: package vicazh.hyperpool.stream.net.http;
02:
03: import java.io.*;
04:
05: class ReconnectClientStream extends PathStream {
06:
07: ReconnectClientStream(Session session, OutputStream outputstream) {
08: super (session, outputstream);
09: }
10:
11: public void head(String method, String file, String version)
12: throws IOException {
13: synchronized (connection) {
14: if (((Connection) connection).getSessions().size() > 1)
15: try {
16: connection.wait();
17: } catch (InterruptedException e) {
18: }
19: }
20: super.head(method, file, version);
21: }
22: }
|